Files
abysmal-isle/Scripts/Misc/CurrentExpansion.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

50 lines
1.2 KiB
C#

#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
}
Mobile.ActionDelay = Core.TOL ? 500 : Core.AOS ? 1000 : 500;
Mobile.AOSStatusHandler = AOS.GetStatus;
}
}
}