mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
XEEN: Fix MonsterStruct _accuracy to be _armorClass
Thanks to Leprosy57 in the GOG forums for pointing it out
This commit is contained in:
parent
8d4230df21
commit
549b90481a
@ -1670,7 +1670,7 @@ bool Combat::hitMonster(Character &c, RangeType rangeType) {
|
||||
if (monster._damageType != DT_PHYSICAL)
|
||||
chance += 20;
|
||||
|
||||
return chance >= (monsterData._accuracy + 10);
|
||||
return chance >= (monsterData._armorClass + 10);
|
||||
}
|
||||
|
||||
void Combat::getWeaponDamage(Character &c, RangeType rangeType) {
|
||||
|
@ -1019,7 +1019,7 @@ void IdentifyMonster::execute() {
|
||||
monsterDesc[monIndex] = Common::String::format(Res.MONSTER_DETAILS,
|
||||
monsterData._name.c_str(),
|
||||
_vm->printK2(monster._hp).c_str(),
|
||||
monsterData._accuracy, monsterData._numberOfAttacks,
|
||||
monsterData._armorClass, monsterData._numberOfAttacks,
|
||||
Res.MONSTER_SPECIAL_ATTACKS[monsterData._specialAttack]
|
||||
);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ const char *const MUSIC_FILES2[6][7] = {
|
||||
MonsterStruct::MonsterStruct() {
|
||||
_experience = 0;
|
||||
_hp = 0;
|
||||
_accuracy = 0;
|
||||
_armorClass = 0;
|
||||
_speed = 0;
|
||||
_numberOfAttacks = 0;
|
||||
_hatesClass = CLASS_KNIGHT;
|
||||
@ -88,7 +88,7 @@ MonsterStruct::MonsterStruct() {
|
||||
_fx = 0;
|
||||
}
|
||||
|
||||
MonsterStruct::MonsterStruct(Common::String name, int experience, int hp, int accuracy,
|
||||
MonsterStruct::MonsterStruct(Common::String name, int experience, int hp, int armorClass,
|
||||
int speed, int numberOfAttacks, CharacterClass hatesClass, int strikes,
|
||||
int dmgPerStrike, DamageType attackType, SpecialAttack specialAttack,
|
||||
int hitChance, int rangeAttack, MonsterType monsterType,
|
||||
@ -97,7 +97,7 @@ MonsterStruct::MonsterStruct(Common::String name, int experience, int hp, int ac
|
||||
int phsyicalResistence, int field29, int gold, int gems, int itemDrop,
|
||||
bool flying, int imageNumber, int loopAnimation, int animationEffect,
|
||||
int fx, Common::String attackVoc):
|
||||
_name(name), _experience(experience), _hp(hp), _accuracy(accuracy),
|
||||
_name(name), _experience(experience), _hp(hp), _armorClass(armorClass),
|
||||
_speed(speed), _numberOfAttacks(numberOfAttacks), _hatesClass(hatesClass),
|
||||
_strikes(strikes), _dmgPerStrike(dmgPerStrike), _attackType(attackType),
|
||||
_specialAttack(specialAttack), _hitChance(hitChance), _rangeAttack(rangeAttack),
|
||||
@ -118,7 +118,7 @@ void MonsterStruct::synchronize(Common::SeekableReadStream &s) {
|
||||
|
||||
_experience = s.readUint32LE();
|
||||
_hp = s.readUint16LE();
|
||||
_accuracy = s.readByte();
|
||||
_armorClass = s.readByte();
|
||||
_speed = s.readByte();
|
||||
_numberOfAttacks = s.readByte();
|
||||
_hatesClass = (CharacterClass)s.readByte();
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
Common::String _name;
|
||||
int _experience;
|
||||
int _hp;
|
||||
int _accuracy;
|
||||
int _armorClass;
|
||||
int _speed;
|
||||
int _numberOfAttacks;
|
||||
int _hatesClass;
|
||||
|
Loading…
x
Reference in New Issue
Block a user