// This item NO exist in original Duke Nukem 3D

ACTOR "Icon of Invulnerability" : CustomInventory Replaces InvulnerabilitySphere 31041 
{
    //$Category DN3D Items //Item Doom
	Inventory.PickupMessage "\cgIcon of Invulnerability"
	Inventory.PickupSound "Misc/Atomic"
	Inventory.Icon "INVDUKE"
    Inventory.Amount 100
    Inventory.MaxAmount 100
	Inventory.InterHubAmount 100 
	+INVENTORY.PERSISTENTPOWER
    +INVENTORY.INVBAR
	+COUNTITEM
    Scale 1.0
	Tag "Icon of Invulnerability"
    States
    {
    Spawn:
        INVD ABCDEFG 3 Bright
        Loop
	Pickup:
	    TNT1 A 1 A_JumpIfInventory("Icon of Invulnerability",100,"Nope")
		TNT1 A 1 A_GiveInventory("IconofInvulnerabilityAmmo",100)
		TNT1 A 1 ACS_Execute(537,0,0,0,0)
		Stop
	Nope:
	    TNT1 A 1
	    Fail
    Use:
   	    TNT1 A 1 ACS_NamedExecuteAlways("ActivateIconofInvulnerability")
		Fail
    }
}

ACTOR IconofInvulnerabilityAmmo : Ammo
{
	+IGNORESKILL
	Inventory.Amount 1
	Inventory.MaxAmount 100
}

ACTOR IconofInvulnerabilityActive : PuzzleItem
{	
    Inventory.MaxAmount 1		
    -INVENTORY.INVBAR	
}

ACTOR IconofInvulnerabilityEffect : PowerupGiver
{
    Powerup.Duration -4
    Powerup.Type "Invulnerable"
    Powerup.Color "GoldMap" 
    +INVENTORY.AUTOACTIVATE
    +INVENTORY.ALWAYSPICKUP
    -INVENTORY.INVBAR
    +INVENTORY.QUIET
}