New RNG, eliminate item ID collisions, start working on Anchor Stone
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ability / Tornado.as
blobaf1fcbe8c6ab19aa9c1d3973bc94bc952f80860e
1 package org.sevenchan.dongs.ability
3 import org.sevenchan.dongs.Ability;
4 import org.sevenchan.dongs.Creature;
5 import org.sevenchan.dongs.screens.InfoScreen;
7 /**
8 * ...
9 * @author Harbinger
11 public class Tornado extends Ability
14 public function Tornado()
16 this.manaCost = 75;
17 this.description = "Summons a tornado to return player to barn.";
18 this.label = "Tornado";
19 this.name = "Tornado";
20 this.cannotBeRestrainedToUse = false;
23 override public function activate(activator:Creature, rapee:Creature):Boolean
25 if (rapee.hasItem(ItemRegistry.ANCHOR_STONE.id))
26 return false;
27 var text:String = "<h2>Tornado</h2>";
28 text += "<p>The ghastly spirit's face splits in two as it bares its enormous, foot-long ";
29 text += "shark-like teeth. Strands of ethereal saliva bridge the gaps, and a foul odor ";
30 text += "slams into you like a train full of corpses.";
31 text += "You then realize, to your sheer horror, that the Ala is <i>smiling</i>. ";
32 text += "This revelation comes far too late, as a strong wind slams into you like a brick";
33 text += " wall. It picks up strength, and you have to brace your legs to keep your ";
34 text += "footing. Even that doesn’t hold on for long, however. You’re soon swept off ";
35 text += "your feet in a massive, black whirlwind. Deep, taunting laughter fills the ";
36 text += "wind as you’re carried away.</p>";
37 InfoScreen.push(text);
38 activator.mana = 0;
39 rapee.HP = 0;
40 return true;