Fix death animation frames for Warrior/Barbarian (#3954)
This commit is contained in:
parent
34266ff4c7
commit
e0cd19c011
1 changed files with 5 additions and 0 deletions
|
|
@ -2436,6 +2436,7 @@ void SetPlrAnims(Player &player)
|
|||
player._pSFNum = PlrGFXAnimLens[static_cast<std::size_t>(pc)][10];
|
||||
|
||||
auto gn = static_cast<PlayerWeaponGraphic>(player._pgfxnum & 0xF);
|
||||
int armorGraphicIndex = player._pgfxnum & ~0xF;
|
||||
if (pc == HeroClass::Warrior) {
|
||||
if (gn == PlayerWeaponGraphic::Bow) {
|
||||
if (leveltype != DTYPE_TOWN) {
|
||||
|
|
@ -2449,6 +2450,8 @@ void SetPlrAnims(Player &player)
|
|||
player._pAFrames = 16;
|
||||
player._pAFNum = 11;
|
||||
}
|
||||
if (armorGraphicIndex > 0)
|
||||
player._pDFrames = 15;
|
||||
} else if (pc == HeroClass::Rogue) {
|
||||
if (gn == PlayerWeaponGraphic::Axe) {
|
||||
player._pAFrames = 22;
|
||||
|
|
@ -2520,6 +2523,8 @@ void SetPlrAnims(Player &player)
|
|||
} else if (gn == PlayerWeaponGraphic::Mace || gn == PlayerWeaponGraphic::MaceShield) {
|
||||
player._pAFNum = 8;
|
||||
}
|
||||
if (armorGraphicIndex > 0)
|
||||
player._pDFrames = 15;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue