Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ability / Sandstorm.as
bloba52d0b4364b3b40d81c6dd0b74cd123b9fd74f9a
1 package org.sevenchan.dongs.ability
3 import org.sevenchan.dongs.Ability;
4 import org.sevenchan.dongs.Creature;
5 import org.sevenchan.dongs.creature.Player;
6 import org.sevenchan.dongs.screens.InfoScreen;
8 /**
9 * ...
10 * @author Harbinger
12 public class Sandstorm extends Ability
15 public function Sandstorm()
17 this.manaCost = 15;
18 this.description = "Summons a massive sandstorm to blind your enemies.";
19 this.label = "Sandstrm";
20 this.name = "Sandstorm";
21 this.cannotBeRestrainedToUse = false;
24 override public function activate(activator:Creature, rapee:Creature):Boolean
26 var text:String = "<h2>Sandstorm</h2>";
27 text += "<p>"+((activator is Player) ? "You summon ":"The " + activator.getTypeName() + " summons ") + " a powerful whirlwind of blinding sand and dust.</p>";
28 rapee.speed /= 2;
29 text += rapee.gender.doReplace("<p><b>%CPOS% speed was cut in half!</b></p>");
30 InfoScreen.push(text);
31 activator.mana -= 2;
32 return true;