Selaa lähdekoodia

Migrated all broadcast constants to source exports

Lemongrass3110 9 vuotta sitten
vanhempi
commit
2ee3765456
2 muutettua tiedostoa jossa 11 lisäystä ja 10 poistoa
  1. 0 10
      db/const.txt
  2. 11 0
      src/map/script_constants.h

+ 0 - 10
db/const.txt

@@ -14,16 +14,6 @@
 //                  in field Value. Depending on the implementation values assigned by scripts to parameters will affect
 //                  runtime values, such as Zeny, as well (see pc_readparam/pc_setparam).
 
-bc_all	0
-bc_map	1
-bc_area	2
-bc_self	3
-bc_pc	0
-bc_npc	8
-bc_yellow	0
-bc_blue	16
-bc_woe	32
-
 mf_nomemo	0
 mf_noteleport	1
 mf_nosave	2

+ 11 - 0
src/map/script_constants.h

@@ -317,6 +317,17 @@
 	script_set_constant("EAJ_SUPER_NOVICE_E",MAPID_SUPER_NOVICE_E,false);
 	script_set_constant("EAJ_SUPER_BABY_E",MAPID_SUPER_BABY_E,false);
 
+	/* broadcasts */
+	export_constant(BC_ALL);
+	export_constant(BC_MAP);
+	export_constant(BC_AREA);
+	export_constant(BC_SELF);
+	export_constant(BC_PC);
+	export_constant(BC_NPC);
+	export_constant(BC_YELLOW);
+	export_constant(BC_BLUE);
+	export_constant(BC_WOE);
+
 	/* status options */
 	export_constant(OPTION_NOTHING);
 	export_constant(OPTION_SIGHT);