diff options
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/character.h | 6 | ||||
-rw-r--r-- | engines/xeen/combat.cpp | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/xeen/character.h b/engines/xeen/character.h index 77e3360748..6639d837f3 100644 --- a/engines/xeen/character.h +++ b/engines/xeen/character.h @@ -51,7 +51,11 @@ enum Race { HUMAN = 0, ELF = 1, DWARF = 2, GNOME = 3, HALF_ORC = 4 }; enum CharacterClass { CLASS_KNIGHT = 0, CLASS_PALADIN = 1, CLASS_ARCHER = 2, CLASS_CLERIC = 3, CLASS_SORCERER = 4, CLASS_ROBBER = 5, CLASS_NINJA = 6, CLASS_BARBARIAN = 7, - CLASS_DRUID = 8, CLASS_RANGER = 9, TOTAL_CLASSES = 10, CLASS_12 = 12, CLASS_15 = 15, CLASS_16 = 16 + CLASS_DRUID = 8, CLASS_RANGER = 9, TOTAL_CLASSES = 10 +}; + +enum HatesClass { + HATES_DWARF = 12, HATES_ALL_CLASSES = 15, HATES_NO_CLASSES = 16 }; enum Attribute { diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp index baff2f1f34..5f9d7610a7 100644 --- a/engines/xeen/combat.cpp +++ b/engines/xeen/combat.cpp @@ -821,7 +821,7 @@ void Combat::doMonsterTurn(int monsterId) { bool isHated = false; if (monsterData._hatesClass != -1) { - if (monsterData._hatesClass == 15) + if (monsterData._hatesClass == HATES_ALL_CLASSES) // Monster hates all classes goto loop; @@ -845,7 +845,7 @@ void Combat::doMonsterTurn(int monsterId) { case CLASS_RANGER: isHated = c._class == monsterData._hatesClass; break; - case 12: + case HATES_DWARF: isHated = c._race == DWARF; break; default: |