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

@ -38,10 +38,11 @@ namespace Server
{
int v = from.Virtues.GetValue( (int)virtue );
int vl;
int vmax = GetMaxAmount( virtue );
if ( v < 4000 )
vl = 0;
else if ( v >= 20000 )
else if ( v >= vmax)
vl = 3;
else
vl = ( v + 9999 ) / 10000;