- fixed: "take armor" cheat should only deplete the armor, not destroy it.

- fixed: Hexen armor cannot be depleted by the common function, it needs an override to achieve that.
This commit is contained in:
Christoph Oelckers 2016-02-24 10:50:42 +01:00
commit 21c55a090a
3 changed files with 12 additions and 3 deletions

View file

@ -550,3 +550,11 @@ void AHexenArmor::AbsorbDamage (int damage, FName damageType, int &newdamage)
}
}
void AHexenArmor::DepleteOrDestroy()
{
for (int i = 0; i < 4; i++)
{
Slots[i] = 0;
}
}