Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / towns / WildsLake.as
blob7e11fb49f6e092c7724d4c663ca8045bd2fde491
1 package org.sevenchan.dongs.towns
3 import org.sevenchan.dongs.items.Fish;
4 import org.sevenchan.dongs.items.WhiteBerries;
5 import org.sevenchan.dongs.Town;
6 import org.sevenchan.dongs.Creature;
7 import org.sevenchan.dongs.creature.*;
9 /**
10 * ...
11 * @author Harbinger
13 public class WildsLake extends Town
16 public function WildsLake()
18 super();
19 ID = "lake";
20 name = "The Black Lake";
21 inhabitants[CreatureRegistry.scylla]=0.2;
22 inhabitants[CreatureRegistry.harpy_dark]=0.1;
23 inhabitants[CreatureRegistry.arachnid]=0.1;
24 inhabitants[CreatureRegistry.arachnid_pregnant]=0.1;
25 inhabitants[CreatureRegistry.witch]=0.1;
26 isWilds = true;
27 freeRest = true;
28 connectedTowns = ["damned"];
31 override public function onEnter():void
33 text = "<p>The water is not really inviting.</p>";
36 override public function onExplore(bumpedInto:Creature):void
38 var re:Number = Math.round(MathUtils.rand(0, 3));
39 switch (re)
41 case 0:
42 text = "<p>The sound of water rythmically rapping at the shore of the lake helps relax you.</p><p><b>+1 INT, +5 HP, +5 XP</b></p>";
44 this.main.player.intellect += 1;
45 this.main.player.XP += 5;
46 this.main.player.HP += 5;
47 break;
48 case 1:
49 text = "<p>You casually jog around the shore of the lake, slightly improving your speed.</p>";
50 this.main.player.speed += 1;
51 return;
52 break;
53 case 2:
54 text = "<p>You find a pair of sweet, white berries.</p>";
55 main.player.addToInventory(new WhiteBerries(2));
56 return;
57 break;
58 case 3:
59 text = "<p>You try to catch what appears to be a kind of fish with your bare hands. ";
60 if (main.player.speed < 50)
62 text += "Unfortunately, you're too slow, and it darts off.</p>";
64 else
66 text += "You breathe, and, after slowly getting your hand near the fish, you snatch it from the water and toss it into your bag.</p>";
67 main.player.addToInventory(new Fish(1));
69 return;
70 break;
72 main.player.mana += 10;
74 text += "<p>Not much else happens during your exploration";
75 if (bumpedInto != null)
77 text += ", except for bumping into a " + bumpedInto.getTypeName();
79 text += ".</p>";
83 override public function onRevelation():Boolean
85 text = "<h2>The Black Lake</h2>";
86 text += "<p>As you walk along the path leading away from the city, you enter ";
87 text += "a dense forest, surrounded on two sides by snow-capped mountains. ";
88 text += "You hear crows calling out amongst the dark, foggy treetops, echoing";
89 text += " against the hills.</p>";
90 text += "<p>As you continue, the fog gets thicker, until you can barely see in ";
91 text += "front of you. At that moment, your feet sink into sand. Cautiously ";
92 text += "continuing forward, the air clears, and you find yourself looking at ";
93 text += "a large lake, framed by mountains on all side. The water is ";
94 text += "impenetrably dark, and you see movement beneath the waves.</p>";
96 return true;