Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / towns / TownBarn.as
blob98acf0a0d4ed7f545cf4d1d790fc83b926e632c1
1 package org.sevenchan.dongs.towns
3 import org.sevenchan.dongs.Creature;
4 import org.sevenchan.dongs.creature.Player;
5 import org.sevenchan.dongs.Item;
6 import org.sevenchan.dongs.screens.Shop;
7 import org.sevenchan.dongs.Town;
9 /**
10 * ...
11 * @author Harbinger
13 public class TownBarn extends Town
15 public function TownBarn()
17 super();
18 ID = "barn";
19 name = "The Barn";
20 //inhabitants = [];
21 isWilds = false;
22 freeRest = true;
23 connectedTowns = [
24 "banala"
27 this.shops = {
28 CART: new Shop("CART","The old demon's cart of wonders","CART","The old demon's cart of wonders",this, 0.3, [
29 ItemRegistry.BERRY_WHITE
34 override public function onRevelation():Boolean
36 text = (<![CDATA[
37 <h2>Welcome to Ora</h2>
38 <p>You slowly awaken.</p>
39 <p>
40 You stand up, cursing from both pain and frustration as you survey your surroundings. You appear to have landed
41 in an ancient wooden barn, heavily damaged by an equally ancient fire. The roof is gone, and the blackened walls have
42 immense cracks through which you can see slivers of the outside world. Looking out through the warped windows, all you
43 can see are rolling red sand dunes beneath a bright, red sky that shimmers in the heat. The sun looms above, taking up
44 about two - thirds of the sky. The horizon is filled with shimmering mirages. You tense when you realize that one is
45 coming closer and growing larger, and your heart races. Besides the demons known to populate this land, you have no idea
46 what to expect, and duck behind a charred windowsill to be safe. You peek over the top, nervously observing.
47 </p>
48 <p>
49 The mirage slowly takes the form of an old, frail sunburnt man atop an old, rickety merchant's wagon pulled by unseen, but
50 apparently domesticated creatures. As he draws nearer, a wheel creaks, and then snaps off, throwing the cursing old man
51 into the soft sand below. You cringe, praying that he'd okay, and sure enough, he stands and mutters in frustration. He
52 examines the remains of his wagons axle before sighing and initiating the process of setting up his shop in the back of
53 the wagon, still cursing under his breath.
54 </p>
55 <p>
56 Satisfied that hes probably not a threat, you quietly set up camp in the shaded back of the barn. However, you decide to
57 take your time and observe the merchant some more before approaching him for wares. This is Ora, after all. Who knows
58 what could happen?
59 </p>
60 ]]>).toString();
62 return true;
65 override public function onEnter():void
67 text = (<![CDATA[
68 <p>
69 You've managed to do some cleaning in the barn, mostly clearing out the old sawdust and hay so you can breathe without
70 erupting into a fit of coughing. Your camp, with a new fire pit, is set up in the rear of the barn, where most of the
71 roof still remains and a small hand pump still dispenses surprisingly clean water.
72 </p>
73 ]]>).toString();
76 override public function onSuccessfulRest():void
78 text = (<![CDATA[
79 <p>
80 You ease yourself into your tent and curl up in the clean wool blanket, possibly the only surviving item left from Aldoria.
81 The smell of it soothes you into sleep, and you dream of your home. You wake up 8 hours later, refreshed and alert.
82 </p>
83 ]]>).toString();
86 override public function onExplore(bumpedInto:Creature):void
88 text = (<![CDATA[
89 <p>
90 The barn is extremely old, and appears to have once stored horses, judging by the horseshoes on racks by the door. No
91 horses exist anymore; the structure was largely gutted by fire some time ago, so only the walls and a portion of the
92 ceiling still stand.
93 </p>
94 <p>
95 Sometime during the night, the merchant decided to move into the barn, and you suddenly notice that he has red skin,
96 like the demons, but doesn’t seem to have bothered you during your sleep. Maybe there are multiple species, or factions
97 of demons? You might be able to use this to your advantage.
98 </p>
99 ]]>).toString();
102 override public function onShopBuyMenu():String
104 return "<p>The old demon smiles, revealing a few yellowed teeth behind his dirty white beard, his eyes displaying a faint glimmer of dumb happiness. &quot;Great! What can I get'ya?&quot;</p>";
107 override public function onShopSellMenu():String
109 return "<p>He nods understandingly, and leans over to peer in your bag. He's so close that you can smell how old he is. &quot;Okay, let's see what you've got.&quot;</p>";
112 override public function onShopWelcome():String
114 return "<p>The merchant is a short, ancient demon, with a wispy white beard that blows across his face in the dry, dusty wind as he works to maintain his equally old wagon of wares. Startled, he whips around and flattens his back against the wagon. Seeing that you are of no threat, he relaxes, letting out a whistly sigh. &quot;Good lord, kid, you nearly scared me to redeath.. Gonna have ta' put a bell on ya' so I can hear you comin'.&quot; A wheazy chuckle escapes his red chest. &quot;So... What can I do ya' for?&quot;";