summaryrefslogtreecommitdiff
path: root/src/map/homunculus.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-28 23:48:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-28 23:48:06 +0300
commitcb6e0f1b68ad76402f00968ea6ea65758daa8fbd (patch)
treebbb13e6d59b0143817e559c9fb8f6a9656fe864e /src/map/homunculus.c
parent296e6c04a4c1a01a233c937bd198a31fa849f49c (diff)
parentf1afe0dfee7f97d46f6dad924f75d08956d17620 (diff)
downloadhercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.tar.gz
hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.tar.bz2
hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.tar.xz
hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.zip
Merge pull request #955 from HerculesWS/src-id-constants
Replaced several numeric constants with enums
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r--src/map/homunculus.c34
1 files changed, 21 insertions, 13 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c
index 2e74800a3..ac1c4052b 100644
--- a/src/map/homunculus.c
+++ b/src/map/homunculus.c
@@ -73,23 +73,31 @@ struct view_data* homunculus_get_viewdata(int class_) {
enum homun_type homunculus_class2type(int class_) {
switch(class_) {
// Normal Homunculus
- case 6001: case 6005:
- case 6002: case 6006:
- case 6003: case 6007:
- case 6004: case 6008:
+ case HOMID_LIF:
+ case HOMID_AMISTR:
+ case HOMID_FILIR:
+ case HOMID_VANILMIRTH:
+ case HOMID_LIF2:
+ case HOMID_AMISTR2:
+ case HOMID_FILIR2:
+ case HOMID_VANILMIRTH2:
return HT_REG;
// Evolved Homunculus
- case 6009: case 6013:
- case 6010: case 6014:
- case 6011: case 6015:
- case 6012: case 6016:
+ case HOMID_LIF_E:
+ case HOMID_AMISTR_E:
+ case HOMID_FILIR_E:
+ case HOMID_VANILMIRTH_E:
+ case HOMID_LIF2_E:
+ case HOMID_AMISTR2_E:
+ case HOMID_FILIR2_E:
+ case HOMID_VANILMIRTH2_E:
return HT_EVO;
// Homunculus S
- case 6048:
- case 6049:
- case 6050:
- case 6051:
- case 6052:
+ case HOMID_EIRA:
+ case HOMID_BAYERI:
+ case HOMID_SERA:
+ case HOMID_DIETR:
+ case HOMID_ELEANOR:
return HT_S;
default:
return HT_INVALID;