Browse Source

Rules Global Expansion Flag

Partial code for Issue #104
Image 4 years ago
parent
commit
29a98cfcb5
2 changed files with 7 additions and 2 deletions
  1. 2 0
      EQ2/source/WorldServer/Rules/Rules.cpp
  2. 5 2
      EQ2/source/WorldServer/Rules/Rules.h

+ 2 - 0
EQ2/source/WorldServer/Rules/Rules.cpp

@@ -292,6 +292,8 @@ RuleManager::RuleManager() {
 
 	RULE_INIT(R_Spells, NoInterruptBaseChance, "50");
 
+	RULE_INIT(R_Expansion, GlobalExpansionFlag, "0");
+
 	#undef RULE_INIT
 }
 

+ 5 - 2
EQ2/source/WorldServer/Rules/Rules.h

@@ -39,7 +39,8 @@ enum RuleCategory {
 	R_World,
 	R_Zone,
 	R_Loot,
-	R_Spells
+	R_Spells,
+	R_Expansion
 };
 
 enum RuleType {
@@ -158,7 +159,9 @@ enum RuleType {
 	ClientSaveTimer,
 	DefaultZoneShutdownTimer,
 	WeatherTimer,
-	SpawnDeleteTimer
+	SpawnDeleteTimer,
+
+	GlobalExpansionFlag
 };
 
 class Rule {