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
.*;
13 public class WildsLake
extends Town
16 public function WildsLake
()
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;
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));
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;
49 text
= "<p>You casually jog around the shore of the lake, slightly improving your speed.</p>";
50 this.main
.player
.speed
+= 1;
54 text
= "<p>You find a pair of sweet, white berries.</p>";
55 main
.player
.addToInventory
(new WhiteBerries
(2));
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>";
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));
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
();
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>";