Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ability / Flatulence.as
blobce4ac315da590ed713b22d133ee8d9b71a681fd5
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;
8 /**
9 * ...
10 * @author Harbinger
12 public class Flatulence extends Ability
15 public function Flatulence()
17 this.manaCost = 75;
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>";
34 ineffective = true;
36 else
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>";
43 } else {
44 text += "<p><b>You are paralyzed by the smell!</b></p>";
45 rapee.loseTurns(activator.getEffectivenessMultiplier(rapee) * 5);
48 InfoScreen.push(text);
49 return true;