- 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.
34 lines
889 B
C#
34 lines
889 B
C#
using System;
|
|
using Server.Network;
|
|
|
|
namespace Server
|
|
{
|
|
public class CurrentExpansion
|
|
{
|
|
private static readonly Expansion Expansion = Expansion.HS;
|
|
|
|
public static void Configure()
|
|
{
|
|
Core.Expansion = Expansion;
|
|
|
|
bool Enabled = Core.AOS;
|
|
|
|
Mobile.InsuranceEnabled = Enabled;
|
|
ObjectPropertyList.Enabled = Enabled;
|
|
Mobile.VisibleDamageType = Enabled ? VisibleDamageType.Related : VisibleDamageType.None;
|
|
Mobile.GuildClickMessage = !Enabled;
|
|
Mobile.AsciiClickMessage = !Enabled;
|
|
|
|
if ( Enabled )
|
|
{
|
|
AOS.DisableStatInfluences();
|
|
|
|
if ( ObjectPropertyList.Enabled )
|
|
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 );
|
|
}
|
|
}
|
|
}
|
|
}
|