Add cooldown for wall busting oneliner.
This commit is contained in:
parent
4739708289
commit
635c736080
3 changed files with 13 additions and 5 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r586 \cu(Mon 24 Oct 18:21:02 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r586 \cu(2022-10-24 18:21:02)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r587 \cu(Mon 24 Oct 20:33:17 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r587 \cu(2022-10-24 20:33:17)\c-";
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ Class Demolitionist : PlayerPawn
|
|||
|
||||
int invwipe; // inventory wipe flags for next level
|
||||
|
||||
transient int lastbang;
|
||||
transient int lastbang, lastbust;
|
||||
|
||||
transient bool ingivecheat;
|
||||
|
||||
|
|
|
|||
|
|
@ -337,7 +337,11 @@ Class BusterWall : Thinker
|
|||
if ( s ) s.busts++;
|
||||
SWWMUtility.AchievementProgressInc("bustin",1,Instigator.player);
|
||||
if ( (Instigator is 'Demolitionist') && !Random[DemoLines](0,3) && (int(girthitude**.15) >= 3) )
|
||||
SWWMHandler.AddOneliner("bustkill",2,50);
|
||||
{
|
||||
if ( gametic > Demolitionist(Instigator).lastbust )
|
||||
SWWMHandler.AddOneliner("bustkill",2,50);
|
||||
Demolitionist(Instigator).lastbust = gametic+350;
|
||||
}
|
||||
}
|
||||
// call hit fx for devastation sigil (if any)
|
||||
AngeryPower as = instigator?AngeryPower(instigator.FindInventory("AngeryPower")):null;
|
||||
|
|
@ -508,7 +512,11 @@ Class BusterWall : Thinker
|
|||
if ( s ) s.busts++;
|
||||
SWWMUtility.AchievementProgressInc("bustin",1,Instigator.player);
|
||||
if ( (Instigator is 'Demolitionist') && !Random[DemoLines](0,3) && (int(girthitude**.15) >= 3) )
|
||||
SWWMHandler.AddOneliner("bustkill",2,50);
|
||||
{
|
||||
if ( gametic > Demolitionist(Instigator).lastbust )
|
||||
SWWMHandler.AddOneliner("bustkill",2,50);
|
||||
Demolitionist(Instigator).lastbust = gametic+350;
|
||||
}
|
||||
}
|
||||
// call hit fx for devastation sigil (if any)
|
||||
AngeryPower as = instigator?AngeryPower(instigator.FindInventory("AngeryPower")):null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue