-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathExpansionConfiguration.cs
31 lines (27 loc) · 1.22 KB
/
ExpansionConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Server.Mobiles;
using Server.Network;
namespace Server
{
public static class ExpansionConfiguration
{
public static void Configure()
{
Mobile.InsuranceEnabled = ServerConfiguration.GetSetting("insurance.enable", Core.AOS);
ObjectPropertyList.Enabled = ServerConfiguration.GetSetting("opl.enable", Core.AOS);
var visibleDamage = ServerConfiguration.GetSetting("visibleDamage", Core.AOS);
Mobile.VisibleDamageType = visibleDamage ? VisibleDamageType.Related : VisibleDamageType.None;
PlayerMobile.GuildClickMessage = ServerConfiguration.GetSetting("guildClickMessage", !Core.AOS);
Mobile.AsciiClickMessage = ServerConfiguration.GetSetting("asciiClickMessage", !Core.AOS);
Mobile.ActionDelay = ServerConfiguration.GetSetting("actionDelay", Core.AOS ? 1000 : 500);
if (Core.AOS)
{
if (ObjectPropertyList.Enabled)
{
// single click for everything is overridden to check object property list
IncomingEntityPackets.SingleClickProps = true;
}
Mobile.AOSStatusHandler = AOS.GetStatus;
}
}
}
}