Fix creature registry
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / towns / WildsHorusSpine.as
blob9dfd0115323435671a4fb61157faf364544eb610
1 package org.sevenchan.dongs.towns
3 import org.sevenchan.dongs.items.WhiteBerries;
4 import org.sevenchan.dongs.Town;
5 import org.sevenchan.dongs.Creature;
6 import org.sevenchan.dongs.creature.*;
7 /**
8 * ...
9 * @author N3X15
11 public class WildsHorusSpine extends Town
14 public function WildsHorusSpine()
16 super();
17 ID = "horus";
18 name = "Horus' Spine";
19 inhabitants = [
20 Creature.CreatureRegistry.arachnid,
21 Creature.CreatureRegistry.morel,
22 Creature.CreatureRegistry.harpy,
23 Creature.CreatureRegistry.harpy_dark
25 isWilds = true;
26 freeRest = true;
27 connectedTowns = [
28 "banala"
34 override public function onEnter():void
36 text = "<p>The mountains wait, as they have since the beginning of time.</p>";
39 override public function onExplore(bumpedInto:Creature):void
41 var re:Number = Math.round(MathUtils.rand(0, 3));
42 switch(re) {
43 case 0:
44 text = "<p>The serene landscape clears your thoughts, and tests your muscles.</p><p><b>+1 INT, +1 STR</b></p>";
45 this.main.player.intellect += 1;
46 this.main.player.strength += 1;
47 break;
48 case 1:
49 text = "<p>A rock falls onto your head while you explore, eliciting a long string of curses that echo across the landscape.</p>";
50 main.player.HP -= 5;
51 break;
52 case 2:
53 text = "<p>You see harpies circling over a mountain peak, probably preparing to swoop down on some poor bastard. You take a turn to avoid them.</p>";
54 return;
55 break;
56 case 3:
57 text = "<p>You find some sweet, white berries.</p>";
58 main.player.addToInventory(new WhiteBerries(2));
59 return;
60 break;
62 main.player.mana += 10;
64 text += "<p>Not much else happens during your exploration";
65 if(bumpedInto!=null) {
66 text += ", except for bumping into a " + bumpedInto.getTypeName();
67 text += ", who nearly tumbles off a cliff";
69 text += ".</p>";
73 override public function onRevelation():void
75 text = "<h2>Horus' Spine</h2>";
76 text += "<p>It's not hard to see how the travelers who crossed these mountains long ago gave them their name. Gigantic white rocks stretch into the sky. You assume them to be limestone, not that it matters here. For all you know, it could be the dried semen that the lustful creatures here collect and dump into massive piles that reach into the sky. You shudder at the thought.</p>";
77 text += "<p>Gripping a random branch on the ground as a walking stick, you begin your ascent into the unknown.</p>";