-nocache option added

BaseCreatures skillcap increased to accommodate skills over 100
Cliloc fix
This commit is contained in:
asayre 2006-06-18 05:17:31 +00:00
parent 720c1caaa3
commit c89964aed6
4 changed files with 504 additions and 269 deletions

View file

@ -273,7 +273,7 @@ namespace Server.Engines.Plants
else
{
// a decorative ~1_COLOR~ ~2_TYPE~ plant
list.Add( 1070973, string.Format( "#{0}\t#{1}", title, typeInfo.Name ) );
list.Add( hueInfo.IsBright() ? 1074267 : 1070973, string.Format( "#{0}\t#{1}", title, typeInfo.Name ) );
}
}
else if ( m_PlantStatus >= PlantStatus.Seed )

View file

@ -197,11 +197,18 @@ namespace Server.SkillHandlers
}
public static void AdjustSkillCaps( BaseCreature bc )
{
int totalCapIncrease = 0;
for ( int i = 0; i < bc.Skills.Length; ++i )
{
if ( bc.Skills[i].Base > bc.Skills[i].Cap )
if( bc.Skills[i].Base > bc.Skills[i].Cap )
{
totalCapIncrease += (bc.Skills[i].BaseFixedPoint - bc.Skills[i].CapFixedPoint);
bc.Skills[i].Cap = bc.Skills[i].Base;
}
}
bc.SkillsCap += totalCapIncrease;
}
private class InternalTimer : Timer