Files
The-Forging/Scripts/Misc/CurrentExpansion.cs
T

50 lines
1.3 KiB
C#
Raw Normal View History

2026-06-19 00:00:16 -04:00
#region References
using System;
using Server.Accounting;
using Server.Network;
using Server.Services.TownCryer;
#endregion
namespace Server
{
public class CurrentExpansion
{
public static readonly Expansion Expansion = Config.GetEnum("Expansion.CurrentExpansion", Expansion.EJ);
[CallPriority(Int32.MinValue)]
public static void Configure()
{
Core.Expansion = Expansion;
AccountGold.Enabled = Core.TOL;
AccountGold.ConvertOnBank = true;
AccountGold.ConvertOnTrade = false;
VirtualCheck.UseEditGump = true;
TownCryerSystem.Enabled = Core.TOL;
ObjectPropertyList.Enabled = Core.AOS;
Mobile.InsuranceEnabled = Core.AOS && !Siege.SiegeShard;
Mobile.VisibleDamageType = Core.AOS ? VisibleDamageType.Related : VisibleDamageType.None;
Mobile.GuildClickMessage = !Core.AOS;
Mobile.AsciiClickMessage = !Core.AOS;
if (!Core.AOS)
{
return;
}
AOS.DisableStatInfluences();
if (ObjectPropertyList.Enabled)
{
PacketHandlers.SingleClickProps = true; // single click for everything is overriden to check object property list
}
2026-07-07 13:40:15 -04:00
Mobile.ActionDelay = Core.TOL ? 500 : Core.AOS ? 1000 : 500;
2026-06-19 00:00:16 -04:00
Mobile.AOSStatusHandler = AOS.GetStatus;
}
}
}