Переглянути джерело

Migrated all setcell and getcell constants to source exports

Lemongrass3110 9 роки тому
батько
коміт
a1b08c380a
2 змінених файлів з 30 додано та 29 видалено
  1. 0 29
      db/const.txt
  2. 30 0
      src/map/script_constants.h

+ 0 - 29
db/const.txt

@@ -14,35 +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).
 
-//'setcell' types
-cell_walkable	0
-cell_shootable	1
-cell_water	2
-cell_npc	3
-cell_basilica	4
-cell_landprotector	5
-cell_novending	6
-cell_nochat	7
-cell_maelstrom	8
-cell_icewall	9
-
-//cell_gettype	0
-cell_chkwall	1
-cell_chkwater	2
-cell_chkcliff	3
-cell_chkpass	4
-cell_chkreach	5
-cell_chknopass	6
-cell_chknoreach	7
-//cell_chkstack	8
-cell_chknpc	9
-cell_chkbasilica	10
-cell_chklandprotector	11
-cell_chknovending	12
-cell_chknochat	13
-cell_chkmaelstrom	14
-cell_chkicewall	15
-
 StatusPoint	9	1
 BaseLevel	11	1
 SkillPoint	12	1

+ 30 - 0
src/map/script_constants.h

@@ -393,6 +393,36 @@
 	export_constant(MF_NOTOMB);
 	export_constant(MF_SKILL_DAMAGE);
 
+	/* setcell types */
+	export_constant(CELL_WALKABLE);
+	export_constant(CELL_SHOOTABLE);
+	export_constant(CELL_WATER);
+	export_constant(CELL_NPC);
+	export_constant(CELL_BASILICA);
+	export_constant(CELL_LANDPROTECTOR);
+	export_constant(CELL_NOVENDING);
+	export_constant(CELL_NOCHAT);
+	export_constant(CELL_MAELSTROM);
+	export_constant(CELL_ICEWALL);
+
+	/* getcell types */
+	export_constant(CELL_CHKWALL);
+	export_constant(CELL_CHKWATER);
+	export_constant(CELL_CHKCLIFF);
+	export_constant(CELL_CHKPASS);
+	export_constant(CELL_CHKREACH);
+	export_constant(CELL_CHKNOPASS);
+	export_constant(CELL_CHKNOREACH);
+	// TODO: Check why this was commented until now
+	//export_constant(CELL_CHKSTACK);
+	export_constant(CELL_CHKNPC);
+	export_constant(CELL_CHKBASILICA);
+	export_constant(CELL_CHKLANDPROTECTOR);
+	export_constant(CELL_CHKNOVENDING);
+	export_constant(CELL_CHKNOCHAT);
+	export_constant(CELL_CHKMAELSTROM);
+	export_constant(CELL_CHKICEWALL);
+
 	/* status options */
 	export_constant(OPTION_NOTHING);
 	export_constant(OPTION_SIGHT);