- allow artifacts that do not automatically activate to be given by the 'give artifacts' cheat

This commit is contained in:
Rachael Alexanderson 2022-04-11 15:59:20 -04:00
parent a97a2ec133
commit 36245ae598

View file

@ -207,7 +207,7 @@ extend class PlayerPawn
if (type!= null)
{
let def = GetDefaultByType (type);
if (def.Icon.isValid() && def.MaxAmount > 1 &&
if (def.Icon.isValid() && (def.MaxAmount > 1 || def.bAutoActivate == false) &&
!(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor"))
{
// Do not give replaced items unless using "give everything"