Allow for Basic and Hexen armor replacing

This commit is contained in:
Boondorl 2024-03-29 19:49:16 -04:00 committed by Rachael Alexanderson
commit 0d43272c8f
21 changed files with 56 additions and 34 deletions

View file

@ -436,7 +436,7 @@ static bool DoSubstitution (FString &out, const char *in)
{
if (strnicmp(a, "armor", 5) == 0)
{
auto armor = player->mo->FindInventory(NAME_BasicArmor);
auto armor = player->mo->FindInventory(NAME_BasicArmor, true);
out.AppendFormat("%d", armor != NULL ? armor->IntVar(NAME_Amount) : 0);
}
}