From 7ba25854904a9fcc92696b3377bfd91e3b39c063 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 24 May 2022 00:01:51 +0200 Subject: [PATCH] =?UTF-8?q?-=20exclude=20keys=20from=20=E2=80=9Aartifact?= =?UTF-8?q?=E2=80=98=20cheats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wadsrc/static/zscript/actors/player/player_cheat.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/actors/player/player_cheat.zs b/wadsrc/static/zscript/actors/player/player_cheat.zs index efb1cc948..cd80d2976 100644 --- a/wadsrc/static/zscript/actors/player/player_cheat.zs +++ b/wadsrc/static/zscript/actors/player/player_cheat.zs @@ -208,7 +208,7 @@ extend class PlayerPawn { let def = GetDefaultByType (type); if (def.Icon.isValid() && (def.MaxAmount > 1 || def.bAutoActivate == false) && - !(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor")) + !(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor") && !(type is "Key")) { // Do not give replaced items unless using "give everything" if (giveall == ALL_YESYES || GetReplacement(type) == type) @@ -364,7 +364,7 @@ extend class PlayerPawn for (int i = 0; i < AllActorClasses.Size(); ++i) { type = (class)(AllActorClasses[i]); - if (type!= null && !(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor")) + if (type!= null && !(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor") && !(type is "Key")) { let pack = FindInventory(type); if (pack) pack.Destroy();