GCS activates 3-second invuln on autoactivation.
This commit is contained in:
parent
fb078b7232
commit
fb56bc50ed
2 changed files with 4 additions and 4 deletions
|
|
@ -1,2 +1,2 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cxSWWM GZ\c- r338 (Sat 13 Jun 21:32:28 CEST 2020)";
|
||||
SWWM_MODVER="\cxSWWM GZ\c- r339 (Sat 13 Jun 21:34:28 CEST 2020)";
|
||||
|
|
|
|||
|
|
@ -51,9 +51,6 @@ Class GrilledCheeseSandwich : Inventory
|
|||
SWWMLoreLibrary.Add(Owner.player,"Nugget");
|
||||
SWWMLoreLibrary.Add(Owner.player,"BlastSuit");
|
||||
SWWMLoreLibrary.Add(Owner.player,"WarArmor");
|
||||
let s = Owner.FindInventory("GrilledCheeseSafeguard");
|
||||
if ( !s ) Owner.GiveInventory("GrilledCheeseSafeguard",1);
|
||||
else Powerup(s).EffectTics = Powerup(s).default.EffectTics;
|
||||
}
|
||||
override bool Use( bool pickup )
|
||||
{
|
||||
|
|
@ -76,6 +73,9 @@ Class GrilledCheeseSandwich : Inventory
|
|||
newdamage = 0;
|
||||
if ( (Owner.player == players[consoleplayer]) || bBigPowerup ) Owner.A_StartSound(UseSound,CHAN_ITEMEXTRA);
|
||||
DoTheThing();
|
||||
let s = Owner.FindInventory("GrilledCheeseSafeguard");
|
||||
if ( !s ) Owner.GiveInventory("GrilledCheeseSafeguard",1);
|
||||
else Powerup(s).EffectTics = Powerup(s).default.EffectTics;
|
||||
Amount--;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue