diff options
author | Paul Gilbert | 2018-01-16 20:59:05 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-01-16 20:59:05 -0500 |
commit | e96d32e07ff9cef1d1d08144ee81fad1357d9bc8 (patch) | |
tree | afbba0afe6d4ab7ad09f107891f929a6f763a87a /engines/xeen | |
parent | ce6eb1636b7cdc44f483bfea201acc19e0fdb8c8 (diff) | |
download | scummvm-rg350-e96d32e07ff9cef1d1d08144ee81fad1357d9bc8.tar.gz scummvm-rg350-e96d32e07ff9cef1d1d08144ee81fad1357d9bc8.tar.bz2 scummvm-rg350-e96d32e07ff9cef1d1d08144ee81fad1357d9bc8.zip |
XEEN: Fix armor class calculations
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/character.cpp | 7 | ||||
-rw-r--r-- | engines/xeen/combat.cpp | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp index 7e36e54190..7372c87917 100644 --- a/engines/xeen/character.cpp +++ b/engines/xeen/character.cpp @@ -1192,13 +1192,6 @@ int Character::itemScan(int itemId) const { if (mIndex == itemId) result += Res.ELEMENTAL_RESISTENCES[item._material]; } - - if (itemId == 9) { - result += Res.ARMOR_STRENGTHS[item._id]; - if (item._material >= 37 && item._material <= 58) { - result += Res.METAL_LAC[item._material - 37]; - } - } } } diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp index 34246b69d1..7b50ae8bf5 100644 --- a/engines/xeen/combat.cpp +++ b/engines/xeen/combat.cpp @@ -929,9 +929,11 @@ void Combat::doMonsterTurn(int monsterId) { } else { int v = _vm->getRandomNumber(1, 20); if (v == 1) { + // Critical Save sound.playFX(6); } else { if (v == 20) + // Critical failure doCharDamage(c, charNum, monsterId); v += monsterData._hitChance / 4 + _vm->getRandomNumber(1, monsterData._hitChance); |