Przeglądaj źródła

Migrated all item type constants to source exports

Lemongrass3110 9 lat temu
rodzic
commit
a2a13eeee3
2 zmienionych plików z 14 dodań i 13 usunięć
  1. 0 13
      db/const.txt
  2. 14 0
      src/map/script_constants.h

+ 0 - 13
db/const.txt

@@ -2690,19 +2690,6 @@ DIR_SOUTHEAST	5
 DIR_EAST	6
 DIR_NORTHEAST	7
 
-IT_HEALING	0
-IT_USABLE	2
-IT_ETC	3
-IT_ARMOR	4
-IT_WEAPON	5
-IT_CARD	6
-IT_PETEGG	7
-IT_PETARMOR	8
-IT_AMMO	10
-IT_DELAYCONSUME	11
-IT_SHADOWGEAR	12
-IT_CASH	18
-
 Bound_None	0
 Bound_Account	1
 Bound_Guild	2

+ 14 - 0
src/map/script_constants.h

@@ -2260,6 +2260,20 @@
 	export_constant(SPEAR_MERC_GUILD);
 	export_constant(SWORD_MERC_GUILD);
 
+	/* item types */
+	export_constant(IT_HEALING);
+	export_constant(IT_USABLE);
+	export_constant(IT_ETC);
+	export_constant(IT_ARMOR);
+	export_constant(IT_WEAPON);
+	export_constant(IT_CARD);
+	export_constant(IT_PETEGG);
+	export_constant(IT_PETARMOR);
+	export_constant(IT_AMMO);
+	export_constant(IT_DELAYCONSUME);
+	export_constant(IT_SHADOWGEAR);
+	export_constant(IT_CASH);
+
 	/* status options */
 	export_constant(OPTION_NOTHING);
 	export_constant(OPTION_SIGHT);