mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-20 19:12:07 +00:00
- exclude keys from ‚artifact‘ cheats
This commit is contained in:
parent
b218b8de6a
commit
7ba2585490
1 changed files with 2 additions and 2 deletions
|
@ -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<Inventory>)(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();
|
||||
|
|
Loading…
Reference in a new issue