- Fixed Bola item drop bug for Core.SE.

- Added 'dead only' and 'no ethereals in pack' to ConditionTeleporter.
- Fixed tournaments discarding leftover participants for participant numbers greater than 2.
- Added support for the extended status packet.
- Fixed items not being placeable on tiles occupied by hidden staff mobiles.
This commit is contained in:
eos@runuo.com 2013-08-20 16:17:01 +00:00
parent 8818ffdc80
commit 030ad1db5b
8 changed files with 193 additions and 55 deletions

View file

@ -205,6 +205,30 @@ namespace Server
{
return (input * percent) / 100;
}
public static int GetStatus( Mobile from, int index )
{
switch ( index )
{
// TODO: Account for buffs/debuffs
case 0: return from.GetMaxResistance( ResistanceType.Physical );
case 1: return from.GetMaxResistance( ResistanceType.Fire );
case 2: return from.GetMaxResistance( ResistanceType.Cold );
case 3: return from.GetMaxResistance( ResistanceType.Poison );
case 4: return from.GetMaxResistance( ResistanceType.Energy );
case 5: return AosAttributes.GetValue( from, AosAttribute.DefendChance );
case 6: return 45;
case 7: return AosAttributes.GetValue( from, AosAttribute.AttackChance );
case 8: return AosAttributes.GetValue( from, AosAttribute.WeaponSpeed );
case 9: return AosAttributes.GetValue( from, AosAttribute.WeaponDamage );
case 10: return AosAttributes.GetValue( from, AosAttribute.LowerRegCost );
case 11: return AosAttributes.GetValue( from, AosAttribute.SpellDamage );
case 12: return AosAttributes.GetValue( from, AosAttribute.CastRecovery );
case 13: return AosAttributes.GetValue( from, AosAttribute.CastSpeed );
case 14: return AosAttributes.GetValue( from, AosAttribute.LowerManaCost );
default: return 0;
}
}
}
[Flags]

View file

@ -27,6 +27,7 @@ namespace Server
PacketHandlers.SingleClickProps = true; // single click for everything is overriden to check object property list
Mobile.ActionDelay = TimeSpan.FromSeconds( 1.0 );
Mobile.AOSStatusHandler = new AOSStatusHandler( AOS.GetStatus );
}
}
}