Преглед изворни кода

Moved mob random groups constants

Added/Moved the two missing groups into src.
All of them are exported now directly through script_constants.h
Lemongrass3110 пре 9 година
родитељ
комит
9558ef0868
3 измењених фајлова са 12 додато и 9 уклоњено
  1. 0 6
      db/const.txt
  2. 5 3
      src/map/mob.h
  3. 7 0
      src/map/script_constants.h

+ 0 - 6
db/const.txt

@@ -2455,9 +2455,3 @@ THANATOS_KEEP	10009
 4_F_REBELLION2	10201
 4_F_REBELLION3	10202
 4_M_ILYA	10203
-
-MOBG_Branch_Of_Dead_Tree	0
-MOBG_Poring_Box	1
-MOBG_Bloody_Dead_Branch	2
-MOBG_Red_Pouch_Of_Surprise	3
-MOBG_ClassChange	4

+ 5 - 3
src/map/mob.h

@@ -117,9 +117,11 @@ enum size {
 
 /// Used hardcoded Random Monster group in src
 enum e_Random_Monster {
-	MOBG_Branch_Of_Dead_Tree = 0,
-	MOBG_Bloody_Dead_Branch  = 2,
-	MOBG_ClassChange         = 4,
+	MOBG_Branch_Of_Dead_Tree	= 0,
+	MOBG_Poring_Box				= 1,
+	MOBG_Bloody_Dead_Branch		= 2,
+	MOBG_Red_Pouch_Of_Surprise	= 3,
+	MOBG_ClassChange			= 4,
 };
 
 struct mob_skill {

+ 7 - 0
src/map/script_constants.h

@@ -3069,6 +3069,13 @@
 	export_constant(IM_PARTY);
 	export_constant(IM_GUILD);
 
+	/* mob random groups */
+	export_constant(MOBG_Branch_Of_Dead_Tree);
+	export_constant(MOBG_Poring_Box);
+	export_constant(MOBG_Bloody_Dead_Branch);
+	export_constant(MOBG_Red_Pouch_Of_Surprise);
+	export_constant(MOBG_ClassChange);
+
 	#undef export_constant
 
 #endif /* _SCRIPT_CONSTANTS_H_ */