Added Lightning to Ala's repetoire.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / creature / Ala.as
blob0ef3c4182aa9dc34c4b475934c481cfcc33bf62f
1 package org.sevenchan.dongs.creature
3 import org.sevenchan.dongs.Ability;
4 import org.sevenchan.dongs.ability.AbilityRegistry;
5 import org.sevenchan.dongs.bodyparts.Eye;
6 import org.sevenchan.dongs.bodyparts.Gender;
7 import org.sevenchan.dongs.Creature;
8 /**
9 * An ala or hala (plural: ale or hali) is a demon of bad weather recorded in
10 * the folklore of Bulgarians, Macedonians, and Serbs.
11 * (Monsterpedia)
13 * @author N3X15
15 public class Ala extends Creature
18 public function Ala()
20 abilities = [
21 AbilityRegistry.sandstorm,
22 AbilityRegistry.lightning,
23 AbilityRegistry.tornado
25 abilityUseProbability = 1;
26 this._eyes.push(
27 BodyPartRegistry.eyes.ghost_yellow,
28 BodyPartRegistry.eyes.ghost_yellow
30 this._gender = Gender.ASEXUAL;
34 override public function combatDescr(subj:Creature):String
36 var text:String = "<p>While bumbling about, the sky darkens as ominous clouds roll in.";
37 text += "You groan in frustration at the impending storm and begin to unpack your camp, ";
38 text += " when you remember that storms do not have gigantic, red eyes, and they generally ";
39 text += "do not form clouds at ground level, and they definately do not laugh evilly.</p>"
40 if (subj.intellect > 35)
41 text += "<p>You remember from your studies at home that this is an Ala, a weather demon. This experience, however, does NOT change the fact that it is hungry for blood and that you are completely fucked.</p>";
42 return gender.doReplace(text);
45 override public function getTypeName():String
47 return "Ala";
50 override public function getHostile(subj:Creature):Boolean
52 return true;
55 override public function getInterested(subj:Creature):Boolean
57 return false;