diff options
author | Paul Gilbert | 2015-01-27 22:04:23 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-27 22:04:23 -0500 |
commit | 689776d922ca719e5a6749c0e3ec0b6d1884852d (patch) | |
tree | 27b39f64a456c36a09c481501936c0051a22c826 /engines/xeen/party.cpp | |
parent | 5030d0046f9f36965c5479d0fd0006461d32e5f4 (diff) | |
download | scummvm-rg350-689776d922ca719e5a6749c0e3ec0b6d1884852d.tar.gz scummvm-rg350-689776d922ca719e5a6749c0e3ec0b6d1884852d.tar.bz2 scummvm-rg350-689776d922ca719e5a6749c0e3ec0b6d1884852d.zip |
XEEN: Implemented doTownOptions
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 1baa25404f..66ba405909 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -60,7 +60,7 @@ Character::Character() { _lloydSide = 0; Common::fill(&_conditions[0], &_conditions[16], 0); _townUnknown = 0; - _unknown2 = 0; + _savedMazeId = 0; _currentHp = 0; _currentSp = 0; _ybDay = 0; @@ -140,7 +140,7 @@ void Character::synchronize(Common::Serializer &s) { s.syncAsByte(_conditions[i]); s.syncAsUint16LE(_townUnknown); - s.syncAsByte(_unknown2); + s.syncAsByte(_savedMazeId); s.syncAsUint16LE(_currentHp); s.syncAsUint16LE(_currentSp); s.syncAsUint16LE(_ybDay); @@ -381,7 +381,7 @@ int Character::getArmorClass(bool baseOnly) const { int result = statBonus(getStat(SPEED)) + itemScan(9); if (!baseOnly) - result += (party._blessedActive ? 1 : 0) + _ACTemp; + result += party._blessed + _ACTemp; return MAX(result, 0); } @@ -842,10 +842,10 @@ Party::Party(XeenEngine *vm) { _wizardEyeActive = false; _clairvoyanceActive = false; _walkOnWaterActive = false; - _blessedActive = false; - _powerShieldActive = false; - _holyBonusActive = false; - _heroismActive = false; + _blessed = 0; + _powerShield = 0; + _holyBonus = 0; + _heroism = 0; _difficulty = ADVENTURER; _cloudsEnd = false; _darkSideEnd = false; @@ -912,10 +912,10 @@ void Party::synchronize(Common::Serializer &s) { s.syncAsByte(_wizardEyeActive); s.syncAsByte(_clairvoyanceActive); s.syncAsByte(_walkOnWaterActive); - s.syncAsByte(_blessedActive); - s.syncAsByte(_powerShieldActive); - s.syncAsByte(_holyBonusActive); - s.syncAsByte(_heroismActive); + s.syncAsByte(_blessed); + s.syncAsByte(_powerShield); + s.syncAsByte(_holyBonus); + s.syncAsByte(_heroism); s.syncAsByte(_difficulty); for (int i = 0; i < ITEMS_COUNT; ++i) @@ -1194,10 +1194,10 @@ void Party::resetTemps() { _walkOnWaterActive = false; _wizardEyeActive = false; _clairvoyanceActive = false; - _heroismActive = false; - _holyBonusActive = false; - _powerShieldActive = false; - _blessedActive = false; + _heroism = 0; + _holyBonus = 0; + _powerShield = 0; + _blessed = 0; } void Party::handleLight() { |