-nocache option added
BaseCreatures skillcap increased to accommodate skills over 100 Cliloc fix
This commit is contained in:
parent
720c1caaa3
commit
c89964aed6
4 changed files with 504 additions and 269 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue