1 package org
.sevenchan
.dongs
.ability
3 import org
.sevenchan
.dongs
.Ability
;
4 import org
.sevenchan
.dongs
.Creature
;
5 import org
.sevenchan
.dongs
.creature
.Bova
;
6 import org
.sevenchan
.dongs
.screens
.InfoScreen
;
12 public class Flatulence
extends Ability
15 public function Flatulence
()
18 this.description
= "Paralyzes your enemy with a cloud of noxious gas.";
19 this.label
= "Flatulence";
20 this.name
= "Flatulence";
21 this.cannotBeRestrainedToUse
= false;
24 override public function activate
(activator
:Creature
, rapee
:Creature
):Boolean
26 var text
:String = "<h2>Flatulence</h2>";
27 var ineffective
:Boolean = false;
28 if (activator
is Bova
)
30 text
+= "<p>The Bova strains, grunting audibly";
31 if (activator
.assholes
[0].isPenetrated
())
33 text
+= ".</p><p><b>However, %SUB% can't complete the attack!</b></p>";
38 text
+= ", and passes gas.</p>";
40 if (rapee
.hasItem
(ItemRegistry
.GAS_MASK
.id
) || ineffective
)
42 text
+= "<p><b>The ability is ineffective!</b></p>";
44 text
+= "<p><b>You are paralyzed by the smell!</b></p>";
45 rapee
.loseTurns
(activator
.getEffectivenessMultiplier
(rapee
) * 5);
48 InfoScreen
.push
(text
);