aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2019-09-01 20:12:33 -0700
committerPaul Gilbert2019-09-01 20:12:40 -0700
commite6e70b2042d222b81498fc2cc6be2aa6d7655f39 (patch)
treea75a6776a65a5ffb7a90e9b3c3b86efff8ed50fb /engines/xeen
parent34a948aa0a533eb0c410d23749fb20b8f6aca75f (diff)
downloadscummvm-rg350-e6e70b2042d222b81498fc2cc6be2aa6d7655f39.tar.gz
scummvm-rg350-e6e70b2042d222b81498fc2cc6be2aa6d7655f39.tar.bz2
scummvm-rg350-e6e70b2042d222b81498fc2cc6be2aa6d7655f39.zip
XEEN: Don't de-equip armor/acccessories when broken
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/combat.cpp3
-rw-r--r--engines/xeen/item.cpp8
2 files changed, 7 insertions, 4 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 1452719c2b..2dca3b0648 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -385,7 +385,8 @@ void Combat::doCharDamage(Character &c, int charNum, int monsterDataIndex) {
XeenItem &weapon = c._weapons[idx];
if (weapon._id < XEEN_SLAYER_SWORD && weapon._id != 0 && weapon._frame != 0) {
weapon._state._broken = true;
- weapon._frame = 0;
+ // WORKAROUND: For consistency, we don't de-equip broken items
+ //weapon._frame = 0;
}
}
sound.playFX(37);
diff --git a/engines/xeen/item.cpp b/engines/xeen/item.cpp
index a384d615e2..bd08dcd494 100644
--- a/engines/xeen/item.cpp
+++ b/engines/xeen/item.cpp
@@ -740,14 +740,16 @@ void InventoryItemsGroup::breakAllItems() {
for (int idx = 0; idx < INV_ITEMS_TOTAL; ++idx) {
if (_owner->_weapons[idx]._id < XEEN_SLAYER_SWORD) {
_owner->_weapons[idx]._state._broken = true;
- _owner->_weapons[idx]._frame = 0;
+ // WORKAROUND: For consistency, we don't de-equip broken items
+ //_owner->_weapons[idx]._frame = 0;
}
_owner->_armor[idx]._state._broken = true;
_owner->_accessories[idx]._state._broken = true;
_owner->_misc[idx]._state._broken = true;
- _owner->_armor[idx]._frame = 0;
- _owner->_accessories[idx]._frame = 0;
+ // WORKAROUND: For consistency, we don't de-equip broken items
+ //_owner->_armor[idx]._frame = 0;
+ //_owner->_accessories[idx]._frame = 0;
}
}