forked from Kaltharos/RPGMods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
369 lines (308 loc) · 22.4 KB
/
Plugin.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
using BepInEx;
using BepInEx.Configuration;
using BepInEx.IL2CPP;
using BepInEx.Logging;
using HarmonyLib;
using RPGMods.Commands;
using RPGMods.Hooks;
using RPGMods.Systems;
using RPGMods.Utils;
using System.IO;
using System.Reflection;
using UnhollowerRuntimeLib;
using Unity.Entities;
using UnityEngine;
#if WETSTONE
using Wetstone.API;
#endif
namespace RPGMods
{
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
#if WETSTONE
[BepInDependency("xyz.molenzwiebel.wetstone")]
[Reloadable]
public class Plugin : BasePlugin, IRunOnInitialized
#else
public class Plugin : BasePlugin
#endif
{
public static Harmony harmony;
private static ConfigEntry<string> Prefix;
private static ConfigEntry<string> DisabledCommands;
private static ConfigEntry<float> DelayedCommands;
private static ConfigEntry<int> WaypointLimit;
private static ConfigEntry<bool> EnableVIPSystem;
private static ConfigEntry<bool> EnableVIPWhitelist;
private static ConfigEntry<int> VIP_Permission;
private static ConfigEntry<double> VIP_InCombat_ResYield;
private static ConfigEntry<double> VIP_InCombat_DurabilityLoss;
private static ConfigEntry<double> VIP_InCombat_MoveSpeed;
private static ConfigEntry<double> VIP_InCombat_GarlicResistance;
private static ConfigEntry<double> VIP_InCombat_SilverResistance;
private static ConfigEntry<double> VIP_OutCombat_ResYield;
private static ConfigEntry<double> VIP_OutCombat_DurabilityLoss;
private static ConfigEntry<double> VIP_OutCombat_MoveSpeed;
private static ConfigEntry<double> VIP_OutCombat_GarlicResistance;
private static ConfigEntry<double> VIP_OutCombat_SilverResistance;
private static ConfigEntry<bool> AnnouncePvPKills;
private static ConfigEntry<bool> EnablePvPToggle;
private static ConfigEntry<bool> EnablePvPLadder;
private static ConfigEntry<int> PvPLadderLength;
private static ConfigEntry<bool> HonorSortLadder;
private static ConfigEntry<bool> EnablePvPPunish;
private static ConfigEntry<bool> EnablePvPPunishAnnounce;
private static ConfigEntry<bool> ExcludeOfflineKills;
private static ConfigEntry<int> PunishLevelDiff;
private static ConfigEntry<float> PunishDuration;
private static ConfigEntry<int> PunishOffenseLimit;
private static ConfigEntry<float> PunishOffenseCooldown;
private static ConfigEntry<bool> EnableHonorSystem;
private static ConfigEntry<bool> EnableHonorTitle;
private static ConfigEntry<int> MaxHonorGainPerSpan;
private static ConfigEntry<bool> EnableHonorBenefit;
private static ConfigEntry<int> HonorSiegeDuration;
private static ConfigEntry<bool> EnableHostileGlow;
private static ConfigEntry<bool> UseProximityGlow;
private static ConfigEntry<bool> BuffSiegeGolem;
private static ConfigEntry<float> GolemPhysicalReduction;
private static ConfigEntry<float> GolemSpellReduction;
private static ConfigEntry<bool> HunterHuntedEnabled;
private static ConfigEntry<int> HeatCooldown;
private static ConfigEntry<int> BanditHeatCooldown;
private static ConfigEntry<int> CoolDown_Interval;
private static ConfigEntry<int> Ambush_Interval;
private static ConfigEntry<int> Ambush_Chance;
private static ConfigEntry<float> Ambush_Despawn_Unit_Timer;
private static ConfigEntry<bool> EnableExperienceSystem;
private static ConfigEntry<int> MaxLevel;
private static ConfigEntry<float> EXPMultiplier;
private static ConfigEntry<float> VBloodEXPMultiplier;
private static ConfigEntry<double> EXPLostOnDeath;
private static ConfigEntry<float> EXPFormula_1;
private static ConfigEntry<double> EXPGroupModifier;
private static ConfigEntry<float> EXPGroupMaxDistance;
private static ConfigEntry<bool> EnableWeaponMaster;
private static ConfigEntry<bool> EnableWeaponMasterDecay;
private static ConfigEntry<float> WeaponMasterMultiplier;
private static ConfigEntry<int> WeaponDecayInterval;
private static ConfigEntry<int> WeaponMaxMastery;
private static ConfigEntry<float> WeaponMastery_VBloodMultiplier;
private static ConfigEntry<int> Offline_Weapon_MasteryDecayValue;
private static ConfigEntry<int> MasteryCombatTick;
private static ConfigEntry<int> MasteryMaxCombatTicks;
private static ConfigEntry<bool> EnableWorldDynamics;
public static bool isInitialized = false;
public static ManualLogSource Logger;
private static World _serverWorld;
public static World Server
{
get
{
if (_serverWorld != null) return _serverWorld;
_serverWorld = GetWorld("Server")
?? throw new System.Exception("There is no Server world (yet). Did you install a server mod on the client?");
return _serverWorld;
}
}
public static bool IsServer => Application.productName == "VRisingServer";
private static World GetWorld(string name)
{
foreach (var world in World.s_AllWorlds)
{
if (world.Name == name)
{
return world;
}
}
return null;
}
public void InitConfig()
{
Prefix = Config.Bind("Config", "Prefix", ".", "The prefix used for chat commands.");
DelayedCommands = Config.Bind("Config", "Command Delay", 5f, "The number of seconds user need to wait out before sending another command.\n" +
"Admin will always bypass this.");
DisabledCommands = Config.Bind("Config", "Disabled Commands", "", "Enter command names to disable them, abbreviation are included automatically. Seperated by commas.\n" +
"Ex.: save,godmode");
WaypointLimit = Config.Bind("Config", "Waypoint Limit", 3, "Set a waypoint limit per user.");
EnableVIPSystem = Config.Bind("VIP", "Enable VIP System", false, "Enable the VIP System.");
EnableVIPWhitelist = Config.Bind("VIP", "Enable VIP Whitelist", false, "Enable the VIP user to ignore server capacity limit.");
VIP_Permission = Config.Bind("VIP", "Minimum VIP Permission", 10, "The minimum permission level required for the user to be considered as VIP.");
VIP_InCombat_DurabilityLoss = Config.Bind("VIP.InCombat", "Durability Loss Multiplier", 0.5, "Multiply durability loss when user is in combat. -1.0 to disable.\n" +
"Does not affect durability loss on death.");
VIP_InCombat_GarlicResistance = Config.Bind("VIP.InCombat", "Garlic Resistance Multiplier", -1.0, "Multiply garlic resistance when user is in combat. -1.0 to disable.");
VIP_InCombat_SilverResistance = Config.Bind("VIP.InCombat", "Silver Resistance Multiplier", -1.0, "Multiply silver resistance when user is in combat. -1.0 to disable.");
VIP_InCombat_MoveSpeed = Config.Bind("VIP.InCombat", "Move Speed Multiplier", -1.0, "Multiply move speed when user is in combat. -1.0 to disable.");
VIP_InCombat_ResYield = Config.Bind("VIP.InCombat", "Resource Yield Multiplier", 2.0, "Multiply resource yield (not item drop) when user is in combat. -1.0 to disable.");
VIP_OutCombat_DurabilityLoss = Config.Bind("VIP.OutCombat", "Durability Loss Multiplier", 0.5, "Multiply durability loss when user is out of combat. -1.0 to disable.\n" +
"Does not affect durability loss on death.");
VIP_OutCombat_GarlicResistance = Config.Bind("VIP.OutCombat", "Garlic Resistance Multiplier", 2.0, "Multiply garlic resistance when user is out of combat. -1.0 to disable.");
VIP_OutCombat_SilverResistance = Config.Bind("VIP.OutCombat", "Silver Resistance Multiplier", 2.0, "Multiply silver resistance when user is out of combat. -1.0 to disable.");
VIP_OutCombat_MoveSpeed = Config.Bind("VIP.OutCombat", "Move Speed Multiplier", 1.25, "Multiply move speed when user is out of combat. -1.0 to disable.");
VIP_OutCombat_ResYield = Config.Bind("VIP.OutCombat", "Resource Yield Multiplier", 2.0, "Multiply resource yield (not item drop) when user is out of combat. -1.0 to disable.");
AnnouncePvPKills = Config.Bind("PvP", "Announce PvP Kills", true, "Make a server wide announcement for all PvP kills.");
EnableHonorSystem = Config.Bind("PvP", "Enable Honor System", false, "Enable the honor system.");
EnableHonorTitle = Config.Bind("PvP", "Enable Honor Title", true, "When enabled, the system will append the title to their name.\nHonor system will leave the player name untouched if disabled.");
MaxHonorGainPerSpan = Config.Bind("PvP", "Max Honor Gain/Hour", 250, "Maximum amount of honor points the player can gain per hour.");
EnableHonorBenefit = Config.Bind("PvP", "Enable Honor Benefit & Penalties", true, "If disabled, the hostility state and custom siege system will be disabled.\n" +
"All other bonus is also not applied.");
HonorSiegeDuration = Config.Bind("PvP", "Custom Siege Duration", 180, "In minutes. Player will automatically exit siege mode after this many minutes has passed.\n" +
"Siege mode cannot be exited while duration has not passed.");
EnableHostileGlow = Config.Bind("PvP", "Enable Hostile Glow", true, "When set to true, hostile players will glow red.");
UseProximityGlow = Config.Bind("PvP", "Enable Proximity Hostile Glow", true, "If enabled, hostile players will only glow when they are close to other online player.\n" +
"If disabled, hostile players will always glow red.");
EnablePvPLadder = Config.Bind("PvP", "Enable PvP Ladder", true, "Enables the PvP Ladder in the PvP command.");
PvPLadderLength = Config.Bind("PvP", "Ladder Length", 10, "How many players should be displayed in the PvP Ladders.");
HonorSortLadder = Config.Bind("PvP", "Sort PvP Ladder by Honor", true, "This will automatically be false if honor system is not enabled.");
EnablePvPToggle = Config.Bind("PvP", "Enable PvP Toggle", false, "Enable/disable the pvp toggle feature in the pvp command.");
EnablePvPPunish = Config.Bind("PvP", "Enable PvP Punishment", false, "Enables the punishment system for killing lower level player.");
EnablePvPPunishAnnounce = Config.Bind("PvP", "Enable PvP Punish Announcement", true, "Announce all grief-kills that occured.");
ExcludeOfflineKills = Config.Bind("PvP", "Exclude Offline Grief", true, "Do not punish the killer if the victim is offline.");
PunishLevelDiff = Config.Bind("PvP", "Punish Level Difference", -10, "Only punish the killer if the victim level is this much lower.");
PunishOffenseLimit = Config.Bind("PvP", "Offense Limit", 3, "Killer must make this many offense before the punishment debuff is applied.");
PunishOffenseCooldown = Config.Bind("PvP", "Offense Cooldown", 300f, "Reset the offense counter after this many seconds has passed since last offense.");
PunishDuration = Config.Bind("PvP", "Debuff Duration", 1800f, "Apply the punishment debuff for this amount of time.");
BuffSiegeGolem = Config.Bind("Siege", "Buff Siege Golem", false, "Enabling this will reduce all incoming physical and spell damage according to config.");
GolemPhysicalReduction = Config.Bind("Siege", "Physical Damage Reduction", 0.5f, "Reduce incoming damage by this much. Ex.: 0.25 -> 25%");
GolemSpellReduction = Config.Bind("Siege", "Spell Damage Reduction", 0.5f, "Reduce incoming spell damage by this much. Ex.: 0.75 -> 75%");
HunterHuntedEnabled = Config.Bind("HunterHunted", "Enable", true, "Enable/disable the HunterHunted system.");
HeatCooldown = Config.Bind("HunterHunted", "Heat Cooldown", 25, "Set the reduction value for player heat for every cooldown interval.");
BanditHeatCooldown = Config.Bind("HunterHunted", "Bandit Heat Cooldown", 5, "Set the reduction value for player heat from the bandits faction for every cooldown interval.");
CoolDown_Interval = Config.Bind("HunterHunted", "Cooldown Interval", 60, "Set every how many seconds should the cooldown interval trigger.");
Ambush_Interval = Config.Bind("HunterHunted", "Ambush Interval", 300, "Set how many seconds player can be ambushed again since last ambush.");
Ambush_Chance = Config.Bind("HunterHunted", "Ambush Chance", 50, "Set the percentage that an ambush may occur for every cooldown interval.");
Ambush_Despawn_Unit_Timer = Config.Bind("HunterHunted", "Ambush Despawn Timer", 300f, "Despawn the ambush squad after this many second if they are still alive.\n" +
"Must be higher than 1.");
EnableExperienceSystem = Config.Bind("Experience", "Enable", true, "Enable/disable the the Experience System.");
MaxLevel = Config.Bind("Experience", "Max Level", 80, "Configure the experience system max level.");
EXPMultiplier = Config.Bind("Experience", "Multiplier", 1.0f, "Multiply the EXP gained by player.\n" +
"Ex.: 0.7f -> Will reduce the EXP gained by 30%\nFormula: UnitKilledLevel * EXPMultiplier");
VBloodEXPMultiplier = Config.Bind("Experience", "VBlood Multiplier", 15f, "Multiply EXP gained from VBlood kill.\n" +
"Formula: EXPGained * VBloodMultiplier * EXPMultiplier");
EXPLostOnDeath = Config.Bind("Experience", "EXP Lost / Death", 0.10, "Percentage of experience the player lost for every death by NPC, no EXP is lost for PvP.\nFormula: TotalPlayerEXP - (EXPNeeded * EXPLost)");
EXPFormula_1 = Config.Bind("Experience", "Constant", 0.2f, "Increase or decrease the required EXP to level up.\n" +
"Formula: (level/constant)^2\n" +
"EXP Table & Formula: https://bit.ly/3npqdJw");
EXPGroupModifier = Config.Bind("Experience", "Group Modifier", 0.75, "Set the modifier for EXP gained for each ally(player) in vicinity.\n" +
"Example if you have 2 ally nearby, EXPGained = ((EXPGained * Modifier)*Modifier)");
EXPGroupMaxDistance = Config.Bind("Experience", "Ally Max Distance", 50f, "Set the maximum distance an ally(player) has to be from the player for them to share EXP with the player");
EnableWeaponMaster = Config.Bind("Mastery", "Enable Weapon Mastery", true, "Enable/disable the weapon mastery system.");
EnableWeaponMasterDecay = Config.Bind("Mastery", "Enable Mastery Decay", true, "Enable/disable the decay of weapon mastery when the user is offline.");
WeaponMaxMastery = Config.Bind("Mastery", "Max Mastery Value", 100000, "Configure the maximum mastery the user can atain. (100000 is 100%)");
MasteryCombatTick = Config.Bind("Mastery", "Mastery Value/Combat Ticks", 5, "Configure the amount of mastery gained per combat ticks. (5 -> 0.005%)");
MasteryMaxCombatTicks = Config.Bind("Mastery", "Max Combat Ticks", 12, "Mastery will no longer increase after this many ticks is reached in combat. (1 tick = 5 seconds)");
WeaponMasterMultiplier = Config.Bind("Mastery", "Mastery Multiplier", 1f, "Multiply the gained mastery value by this amount.");
WeaponMastery_VBloodMultiplier = Config.Bind("Mastery", "VBlood Mastery Multiplier", 15f, "Multiply Mastery gained from VBlood kill.");
WeaponDecayInterval = Config.Bind("Mastery", "Decay Interval", 60, "Every amount of seconds the user is offline by the configured value will translate as 1 decay tick.");
Offline_Weapon_MasteryDecayValue = Config.Bind("Mastery", "Decay Value", 1, "Mastery will decay by this amount for every decay tick.(1 -> 0.001%)");
EnableWorldDynamics = Config.Bind("World Dynamics", "Enable Faction Dynamics", true, "All other faction dynamics data & config is withing /RPGMods/Saves/factionstats.json file.");
if (!Directory.Exists("BepInEx/config/RPGMods")) Directory.CreateDirectory("BepInEx/config/RPGMods");
if (!Directory.Exists("BepInEx/config/RPGMods/Saves")) Directory.CreateDirectory("BepInEx/config/RPGMods/Saves");
if (!File.Exists("BepInEx/config/RPGMods/kits.json"))
{
var stream = File.Create("BepInEx/config/RPGMods/kits.json");
stream.Dispose();
}
}
public override void Load()
{
InitConfig();
Logger = Log;
harmony = new Harmony(PluginInfo.PLUGIN_GUID);
harmony.PatchAll(Assembly.GetExecutingAssembly());
TaskRunner.Initialize();
Log.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
public override bool Unload()
{
AutoSaveSystem.SaveDatabase();
Config.Clear();
harmony.UnpatchSelf();
TaskRunner.Destroy();
return true;
}
public void OnGameInitialized()
{
Initialize();
}
public static void Initialize()
{
//-- Initialize System
Helper.CreatePlayerCache();
Helper.GetServerGameSettings(out Helper.SGS);
Helper.GetServerGameManager(out Helper.SGM);
Helper.GetUserActivityGridSystem(out Helper.UAGS);
ProximityLoop.UpdateCache();
PvPSystem.Interlocked.isSiegeOn = false;
if (isInitialized) return;
//-- Commands Related
AutoSaveSystem.LoadDatabase();
//-- Apply configs
CommandHandler.Prefix = Prefix.Value;
CommandHandler.DisabledCommands = DisabledCommands.Value;
CommandHandler.delay_Cooldown = DelayedCommands.Value;
Waypoint.WaypointLimit = WaypointLimit.Value;
PermissionSystem.isVIPSystem = EnableVIPSystem.Value;
PermissionSystem.isVIPWhitelist = EnableVIPWhitelist.Value;
PermissionSystem.VIP_Permission = VIP_Permission.Value;
PermissionSystem.VIP_InCombat_ResYield = VIP_InCombat_ResYield.Value;
PermissionSystem.VIP_InCombat_DurabilityLoss = VIP_InCombat_DurabilityLoss.Value;
PermissionSystem.VIP_InCombat_MoveSpeed = VIP_InCombat_MoveSpeed.Value;
PermissionSystem.VIP_InCombat_GarlicResistance = VIP_InCombat_GarlicResistance.Value;
PermissionSystem.VIP_InCombat_SilverResistance = VIP_InCombat_SilverResistance.Value;
PermissionSystem.VIP_OutCombat_ResYield = VIP_OutCombat_ResYield.Value;
PermissionSystem.VIP_OutCombat_DurabilityLoss = VIP_OutCombat_DurabilityLoss.Value;
PermissionSystem.VIP_OutCombat_MoveSpeed = VIP_OutCombat_MoveSpeed.Value;
PermissionSystem.VIP_OutCombat_GarlicResistance = VIP_OutCombat_GarlicResistance.Value;
PermissionSystem.VIP_OutCombat_SilverResistance = VIP_OutCombat_SilverResistance.Value;
HunterHuntedSystem.isActive = HunterHuntedEnabled.Value;
HunterHuntedSystem.heat_cooldown = HeatCooldown.Value;
HunterHuntedSystem.bandit_heat_cooldown = BanditHeatCooldown.Value;
HunterHuntedSystem.cooldown_timer = CoolDown_Interval.Value;
HunterHuntedSystem.ambush_interval = Ambush_Interval.Value;
HunterHuntedSystem.ambush_chance = Ambush_Chance.Value;
if (Ambush_Despawn_Unit_Timer.Value < 1) Ambush_Despawn_Unit_Timer.Value = 300f;
HunterHuntedSystem.ambush_despawn_timer = Ambush_Despawn_Unit_Timer.Value + 0.44444f;
PvPSystem.isPvPToggleEnabled = EnablePvPToggle.Value;
PvPSystem.isAnnounceKills = AnnouncePvPKills.Value;
PvPSystem.isHonorSystemEnabled = EnableHonorSystem.Value;
PvPSystem.isHonorTitleEnabled = EnableHonorTitle.Value;
PvPSystem.MaxHonorGainPerSpan = MaxHonorGainPerSpan.Value;
PvPSystem.SiegeDuration = HonorSiegeDuration.Value;
PvPSystem.isHonorBenefitEnabled = EnableHonorBenefit.Value;
PvPSystem.isEnableHostileGlow = EnableHostileGlow.Value;
PvPSystem.isUseProximityGlow = UseProximityGlow.Value;
PvPSystem.isLadderEnabled = EnablePvPLadder.Value;
PvPSystem.LadderLength = PvPLadderLength.Value;
PvPSystem.isSortByHonor = HonorSortLadder.Value;
PvPSystem.isPunishEnabled = EnablePvPPunish.Value;
PvPSystem.isAnnounceGrief = EnablePvPPunishAnnounce.Value;
PvPSystem.isExcludeOffline = ExcludeOfflineKills.Value;
PvPSystem.PunishLevelDiff = PunishLevelDiff.Value;
PvPSystem.PunishDuration = PunishDuration.Value;
PvPSystem.OffenseLimit = PunishOffenseLimit.Value;
PvPSystem.Offense_Cooldown = PunishOffenseCooldown.Value;
SiegeSystem.isSiegeBuff = BuffSiegeGolem.Value;
SiegeSystem.GolemPDef.Value = GolemPhysicalReduction.Value;
SiegeSystem.GolemSDef.Value = GolemSpellReduction.Value;
ExperienceSystem.isEXPActive = EnableExperienceSystem.Value;
ExperienceSystem.MaxLevel = MaxLevel.Value;
ExperienceSystem.EXPMultiplier = EXPMultiplier.Value;
ExperienceSystem.VBloodMultiplier = VBloodEXPMultiplier.Value;
ExperienceSystem.EXPLostOnDeath = EXPLostOnDeath.Value;
ExperienceSystem.EXPConstant = EXPFormula_1.Value;
ExperienceSystem.GroupModifier = EXPGroupModifier.Value;
ExperienceSystem.GroupMaxDistance = EXPGroupMaxDistance.Value;
WeaponMasterSystem.isMasteryEnabled = EnableWeaponMaster.Value;
WeaponMasterSystem.isDecaySystemEnabled = EnableWeaponMasterDecay.Value;
WeaponMasterSystem.Offline_DecayValue = Offline_Weapon_MasteryDecayValue.Value;
WeaponMasterSystem.DecayInterval = WeaponDecayInterval.Value;
WeaponMasterSystem.VBloodMultiplier = WeaponMastery_VBloodMultiplier.Value;
WeaponMasterSystem.MasteryMultiplier = WeaponMasterMultiplier.Value;
WeaponMasterSystem.MaxMastery = WeaponMaxMastery.Value;
WeaponMasterSystem.MasteryCombatTick = MasteryCombatTick.Value;
WeaponMasterSystem.MaxCombatTick = MasteryMaxCombatTicks.Value;
WorldDynamicsSystem.isFactionDynamic = EnableWorldDynamics.Value;
isInitialized = true;
}
}
}