diff options
author | Paul Gilbert | 2015-02-16 19:58:53 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-16 19:58:53 -0500 |
commit | c045adae76e414a8e6b57e48a651ea6c29ed280a (patch) | |
tree | a670a69209db79e8344d060c07f44b84c96f6804 /engines/xeen/map.cpp | |
parent | 30d94950beb02188644dcfd71f3c3a067d0a0c5a (diff) | |
download | scummvm-rg350-c045adae76e414a8e6b57e48a651ea6c29ed280a.tar.gz scummvm-rg350-c045adae76e414a8e6b57e48a651ea6c29ed280a.tar.bz2 scummvm-rg350-c045adae76e414a8e6b57e48a651ea6c29ed280a.zip |
XEEN: Implementing more combat logic
Diffstat (limited to 'engines/xeen/map.cpp')
-rw-r--r-- | engines/xeen/map.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp index 1c7cbd8a39..01c050a10a 100644 --- a/engines/xeen/map.cpp +++ b/engines/xeen/map.cpp @@ -67,7 +67,7 @@ MonsterStruct::MonsterStruct() { _imageNumber = 0; _loopAnimation = 0; _animationEffect = 0; - _field32 = 0; + _fx = 0; } MonsterStruct::MonsterStruct(Common::String name, int experience, int hp, int accuracy, @@ -78,7 +78,7 @@ MonsterStruct::MonsterStruct(Common::String name, int experience, int hp, int ac int poisonResistence, int energyResistence, int magicResistence, int phsyicalResistence, int field29, int gold, int gems, int itemDrop, bool flying, int imageNumber, int loopAnimation, int animationEffect, - int field32, Common::String attackVoc): + int fx, Common::String attackVoc): _name(name), _experience(experience), _hp(hp), _accuracy(accuracy), _speed(speed), _numberOfAttacks(numberOfAttacks), _hatesClass(hatesClass), _strikes(strikes), _dmgPerStrike(dmgPerStrike), _attackType(attackType), @@ -89,10 +89,9 @@ MonsterStruct::MonsterStruct(Common::String name, int experience, int hp, int ac _magicResistence(magicResistence), _phsyicalResistence(phsyicalResistence), _field29(field29), _gold(gold), _gems(gems), _itemDrop(itemDrop), _flying(flying), _imageNumber(imageNumber), _loopAnimation(loopAnimation), - _animationEffect(animationEffect), _field32(field32), _attackVoc(attackVoc) { + _animationEffect(animationEffect), _fx(fx), _attackVoc(attackVoc) { } - void MonsterStruct::synchronize(Common::SeekableReadStream &s) { char name[16]; s.read(name, 16); @@ -127,7 +126,7 @@ void MonsterStruct::synchronize(Common::SeekableReadStream &s) { _imageNumber = s.readByte(); _loopAnimation = s.readByte(); _animationEffect = s.readByte(); - _field32 = s.readByte(); + _fx = s.readByte(); char attackVoc[10]; s.read(attackVoc, 9); |