Explorar o código

Migrated all boolean constants to source exports

Lemongrass3110 %!s(int64=9) %!d(string=hai) anos
pai
achega
65347041c1
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 0 3
      db/const.txt
  2. 4 0
      src/map/script_constants.h

+ 0 - 3
db/const.txt

@@ -2395,6 +2395,3 @@ MOBG_Poring_Box	1
 MOBG_Bloody_Dead_Branch	2
 MOBG_Red_Pouch_Of_Surprise	3
 MOBG_ClassChange	4
-
-false	0
-true	1

+ 4 - 0
src/map/script_constants.h

@@ -22,6 +22,10 @@
 	export_constant(VIP_SCRIPT);
 	export_constant(MIN_STORAGE);
 
+	/* boolean values */
+	export_constant(true);
+	export_constant(false);
+
 	/* jobs */
 	export_constant(JOB_NOVICE);
 	export_constant(JOB_SWORDMAN);