Guardian support and a refactor. Also damned.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / towns / WildsHaaraWastes.as
blobd265b72058a50a2af1c7bd26f7e0fd2975675fe7
1 package org.sevenchan.dongs.towns
3 import org.sevenchan.dongs.Creature;
4 import org.sevenchan.dongs.creature.*;
5 import org.sevenchan.dongs.Town;
6 /**
7 * ...
8 * @author N3X15
9 */
10 public class WildsHaaraWastes extends Town
12 [Embed(source="txt/haara/intro.htm",mimeType="application/octet-stream")]
13 private var Intro:Class;
15 public function WildsHaaraWastes()
17 super();
18 ID = "haara";
19 name = "Haara Wastes";
20 inhabitants = [
21 Creature.CreatureRegistry.oldspace,
22 Creature.CreatureRegistry.arachnid
24 isWilds = true;
25 freeRest = true;
26 connectedTowns = [
27 "banala"
32 override public function onEnter():void
34 text = "<p>The desert stretches from horizon to horizon before you, beckoning you forwards.</p>";
37 override public function onExplore(bumpedInto:Creature):void
39 text = "<p>The Haara is what you'd generally expect from deserts. Although the area nearest Banala is primarily endless sand dunes in every direction, the rest of the desert are sand-blasted rock plains, with plenty of places for the various inhabitants of the wastes to hide and lay ambush.</p>";
40 var re:Number = Math.round(MathUtils.rand(0, 3));
41 trace("HAARA EVENT #"+re);
42 switch(re) {
43 case 0:
44 text += "<p>Your trip through the desert is enlightening.</p><p>+1 INT</p>";
45 this.main.player.intellect += 1;
46 return;
47 break;
48 case 1:
49 text = "<p>While exploring, the sands suddenly swirl about you in a blinding sandstorm. You wrap your shirt about your face to filter the air, and set about trying to establish a camp for shelter, when you hear a high-pitched laugh pierce the howling winds. You think you see a woman for brief moment, but she vanishes and the winds subside. Confused, you return to exploring.</p>";
50 main.player.lust += 2;
51 return;
52 break;
53 case 2:
54 text += "<p>You trip over a rock and scrape up your hands and face, but otherwise, nothing else happens.</p>";
55 main.player.HP -= 2;
56 return;
57 break;
58 case 3:
59 break;
61 text += "<p>Not much happens during your exploration";
62 if(bumpedInto!=null)
63 text += ", except for bumping into a " + bumpedInto.getTypeName();
64 text +=".</p>";
67 override public function onRevelation():Boolean
69 text = new Intro();
70 return true;