general cleanup, fixed a slightly improbably crash issue
This commit is contained in:
parent
6780b3c2e7
commit
b9e3476d8b
26 changed files with 62 additions and 67 deletions
|
|
@ -173,8 +173,8 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
int y = 276;
|
||||
|
||||
if ( Core.SE )
|
||||
{
|
||||
if ( Core.SE )
|
||||
{
|
||||
double bd = Items.BaseInstrument.GetBaseDifficulty( c );
|
||||
if ( c.Uncalmable )
|
||||
bd = 0;
|
||||
|
|
@ -183,7 +183,7 @@ namespace Server.SkillHandlers
|
|||
AddHtml( 320, y, 35, 18, FormatDouble( bd ), false, false );
|
||||
|
||||
y += 18;
|
||||
}
|
||||
}
|
||||
|
||||
AddImage( 128, y + 2, 2086 );
|
||||
AddHtmlLocalized( 147, y, 160, 18, 1049594, 200, false, false ); // Loyalty Rating
|
||||
|
|
|
|||
|
|
@ -57,28 +57,28 @@ namespace Server.SkillHandlers
|
|||
}
|
||||
|
||||
public static void ScaleStats( BaseCreature bc, double scalar )
|
||||
{
|
||||
if ( bc.RawStr > 0 )
|
||||
bc.RawStr = (int)Math.Max( 1, bc.RawStr * scalar );
|
||||
{
|
||||
if ( bc.RawStr > 0 )
|
||||
bc.RawStr = (int)Math.Max( 1, bc.RawStr * scalar );
|
||||
|
||||
if ( bc.RawDex > 0 )
|
||||
bc.RawDex = (int)Math.Max( 1, bc.RawDex * scalar );
|
||||
if ( bc.RawDex > 0 )
|
||||
bc.RawDex = (int)Math.Max( 1, bc.RawDex * scalar );
|
||||
|
||||
if ( bc.RawInt > 0 )
|
||||
bc.RawInt = (int)Math.Max( 1, bc.RawInt * scalar );
|
||||
|
||||
if ( bc.HitsMaxSeed > 0 )
|
||||
{
|
||||
bc.HitsMaxSeed = (int)Math.Max( 1, bc.HitsMaxSeed * scalar );
|
||||
bc.Hits = bc.Hits;
|
||||
if ( bc.HitsMaxSeed > 0 )
|
||||
{
|
||||
bc.HitsMaxSeed = (int)Math.Max( 1, bc.HitsMaxSeed * scalar );
|
||||
bc.Hits = bc.Hits;
|
||||
}
|
||||
|
||||
if ( bc.StamMaxSeed > 0 )
|
||||
{
|
||||
bc.StamMaxSeed = (int)Math.Max( 1, bc.StamMaxSeed * scalar );
|
||||
bc.Stam = bc.Stam;
|
||||
}
|
||||
if ( bc.StamMaxSeed > 0 )
|
||||
{
|
||||
bc.StamMaxSeed = (int)Math.Max( 1, bc.StamMaxSeed * scalar );
|
||||
bc.Stam = bc.Stam;
|
||||
}
|
||||
}
|
||||
|
||||
public static void ScaleSkills( BaseCreature bc, double scalar )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue