- Added a new Assemblies.cfg file (Assemblies_4_0.cfg) specific for .NET 4.0, which includes System.Core.dll by default.
- Fixed cu sidhe and reptalon trade statuettes. - Made IAccount comparable, to be able to sort by account in-game. - Fixed item leak in ChampionSpawn and Harrower. - Added ChampionSpawn and Harrower leaked item types to Cleanup. - Added a helper for handling validation after deserialization, and converted classes using that technique to the new system. - Fixed bulletin board item leak, and the core bug that caused it. Leaked items will be cleaned up on server boot. - Fixed bulletin board message content packet to compensate for a client bug. - Monster AI is now deactivated on the internal map, like it is on inactive sectors. - Monster AI activity is now checked on map changes as well, not just location changes. - Corrected hiding requirement needed to train stealth from an NPC for Core.ML. - Fixed a SendLocalizedMessage overload calling itself.
This commit is contained in:
parent
65536e1667
commit
9f0a67e5d7
20 changed files with 191 additions and 101 deletions
|
|
@ -11,7 +11,9 @@ namespace Server.SkillHandlers
|
|||
SkillInfo.Table[(int)SkillName.Stealth].Callback = new SkillUseCallback( OnUse );
|
||||
}
|
||||
|
||||
public static int[,] ArmorTable{ get { return m_ArmorTable; } }
|
||||
public static double HidingRequirement { get { return ( Core.ML ? 30.0 : ( Core.SE ? 50.0 : 80.0 ) ); } }
|
||||
|
||||
public static int[,] ArmorTable { get { return m_ArmorTable; } }
|
||||
private static int[,] m_ArmorTable = new int[,]
|
||||
{
|
||||
// Gorget Gloves Helmet Arms Legs Chest Shield
|
||||
|
|
@ -32,7 +34,7 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
if( !Core.AOS )
|
||||
return (int)m.ArmorRating;
|
||||
|
||||
|
||||
int ar = 0;
|
||||
|
||||
for( int i = 0; i < m.Items.Count; i++ )
|
||||
|
|
@ -61,7 +63,7 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
m.SendLocalizedMessage( 502725 ); // You must hide first
|
||||
}
|
||||
else if ( m.Skills[SkillName.Hiding].Base < ((Core.ML) ? 30.0 : (Core.SE) ? 50.0 : 80.0) )
|
||||
else if ( m.Skills[SkillName.Hiding].Base < HidingRequirement )
|
||||
{
|
||||
m.SendLocalizedMessage( 502726 ); // You are not hidden well enough. Become better at hiding.
|
||||
m.RevealingAction();
|
||||
|
|
@ -75,7 +77,7 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
int armorRating = GetArmorRating( m );
|
||||
|
||||
if( armorRating >= (Core.AOS ? 42 : 26) ) //I have a hunch '42' was chosen cause someone's a fan of DNA
|
||||
if( armorRating >= (Core.AOS ? 42 : 26) ) //I have a hunch '42' was chosen cause someone's a fan of DNA
|
||||
{
|
||||
m.SendLocalizedMessage( 502727 ); // You could not hope to move quietly wearing this much armor.
|
||||
m.RevealingAction();
|
||||
|
|
@ -92,7 +94,7 @@ namespace Server.SkillHandlers
|
|||
PlayerMobile pm = m as PlayerMobile; // IsStealthing should be moved to Server.Mobiles
|
||||
|
||||
if( pm != null )
|
||||
pm.IsStealthing = true;
|
||||
pm.IsStealthing = true;
|
||||
|
||||
m.SendLocalizedMessage( 502730 ); // You begin to move quietly.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue