Numerous corrections and fixes to the honor virtue.

http://www.runuo.com/community/threads/ready-honour-virtue-bugs.428439/
This commit is contained in:
xavier 2011-06-26 20:49:50 +00:00
parent f5e7b9ed30
commit d530fa2ffa
7 changed files with 137 additions and 76 deletions

View file

@ -136,20 +136,22 @@ namespace Server
if( value >= 30000 )
value = 20000; //Sanity
/*
int vl;
vl = (value/10000)
if( value < 10000 )
vl = 0;
else if( value > 20000 )
else if( value >= 20000 && index == 5)
vl = 2;
else if( value >= 21000 && index != 1)
vl = 2;
else if( value >= 22000 && index == 1)
vl = 2;
else
vl = 1;
*/
return m_Table[(index * 3) + (int)(value/10000)];
return m_Table[(index * 3) + (int) vl];
}
private class InternalEntry : GumpImage