A little more work. FINISHED HAARA TEXT, THANKS PRESIDENT BOTIS.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / screens / NewGameScreen.as
blobc1aebc0822938d71bc003e0cb3890758484bcfc6
1 package org.sevenchan.dongs.screens
3 import flash.utils.ByteArray;
4 import org.sevenchan.dongs.creature.*;
5 import org.sevenchan.dongs.bodyparts.*;
6 import org.sevenchan.dongs.*;
7 import org.sevenchan.dongs.creature.Bova;
9 /**
10 * ...
11 * @author Harbinger
13 public class NewGameScreen extends Screen
15 private var stage:int = -1;
16 private var text:String = "";
18 [Embed(source="txt/bsd-license.txt",mimeType="application/octet-stream")]
19 private var License:Class;
21 [Embed(source="txt/intro.txt",mimeType="application/octet-stream")]
22 private var Introduction:Class;
24 public function NewGameScreen()
26 this.appearanceButton = false;
27 this.debugMenuButton = true;
28 this.exportGameButton = false;
29 this.loadOrSaveButton = false;
30 this.newGameButton = false;
31 this.importGameButton = true;
33 this.clearButtons();
34 this.setButton(NEXT_BUTTON, "Next");
37 override public function processButtonPress(id:int):Boolean
39 var done:Boolean = false;
40 switch (stage)
42 case-1: // License
43 stage = 0;
44 text = new License();
45 this.clearButtons();
46 this.setButton(NEXT_BUTTON, "Next");
47 updateScreen();
48 break;
49 case 0: // Species selection
50 this.stage = 1;
51 this.clearButtons();
52 setButton(0, "Human");
53 setButton(1, "Bova");
54 setButton(2, "Demon");
55 text = "<h2>What are you?</h2>";
56 text += "<p><b>Human:</b> You were born human. If you’re playing this, you probably know what a human looks like.</p>"; // Added commas, reworded a bit - Harb
57 text += "<p><b>Bova:</b> You were born as a Bova, more widely known as a cow-girl. Bovae are cow-morphs with predominantly human features save for hoofs, larger than usual breasts and milk output (assuming they're female, of course), floppy cow ears, and a black and white tail.</p>"; // s/bovine/bova/
58 text += "<p><b>Demon:</b> You were born a demon, with an unusual skin color compared to humans and bovae as well as a high libido, leaving you more easily aroused. However, you are quite capable of “exciting” your lovers and foes.</p>"; // Grammatical fixes
59 updateScreen();
60 break;
61 case 1: // Gender selection
62 this.stage = 2;
63 text = "<h2>Gender Selection</h2>";
64 switch (id)
66 case 0:
67 main.player.setBaseType(new Human());
68 text += "<p>As a simple human, you can either be male or female as you start out.</p>";
69 text += "<ul><li><b>Male</b> - You gain a dick and a couple of balls.</li><li><b>Female</b> - A vagina and randomly-sized boobs.</li></ul>";
70 text += "<p>Humans also get randomly colored skin, hair, and eyes.</p>";
71 clearButtons();
72 setButton(0, "Male");
73 setButton(2, "Female");
74 break;
75 case 1:
76 main.player.setBaseType(new Bova());
77 text += "<p>You are a Bova, a race of cow-girls that was once enslaved by man. Throwing off their shackles, they formed their own nation after a bloody war.</p>";
78 text += "<p>Bovae can be Male or Female.</p>";
79 text += "<p>Males (bulls) are very strong, yet not very smart.</p>";
80 text += "<p>Females are more cunning, yet they need their bulls for protection.</p>";
81 clearButtons();
82 setButton(0, "Male");
83 setButton(2, "Female");
84 break;
85 case 2:
86 main.player.setBaseType(new Demon());
87 text += "<p>You have chosen to become a Demon. Demons can infect other creatures with an STD that eventually changes them into demons, as well.</p>";
88 text += "<p>Demons can be any gender except asexual.</p>";
89 clearButtons();
90 setButton(0, "Male");
91 setButton(1, "Hermaphrodite");
92 setButton(2, "Female");
93 break;
95 updateScreen();
96 break;
97 case 2: // Skin color
98 stage = 3;
99 switch (id)
101 case 0:
102 main.player.gender = Gender.MALE;
103 break;
104 case 1:
105 main.player.gender = Gender.HERM;
106 break;
107 case 2:
108 main.player.gender = Gender.FEMALE;
109 break;
111 main.player.initialGenderSetup();
112 text = "<h2>Skin color</h2>";
113 text += "<p>What color is your skin?</p>";
114 var isDemon:Boolean = main.player.getTypeName() == "demon";
115 clearButtons();
116 if(!isDemon){
117 setButton(0, "White");
118 setButton(1, "Brown");
119 setButton(2, "Black");
120 setButton(3, "Tan");
121 setButton(4, "Albino");
122 } else {
123 // idfk
124 setButton(0, "RedishBrown");
125 setButton(1, "Violet");
126 setButton(2, "Dark Red");
128 updateScreen();
129 break;
130 case 3: // Hair type
131 stage = 4;
132 var isDemon:Boolean = main.player.getTypeName() == "demon";
133 if (!isDemon) {
134 switch(id)
136 case 0: main.player.skin.color = "white"; break;
137 case 1: main.player.skin.color = "brown"; break;
138 case 2: main.player.skin.color = "black"; break;
139 case 3: main.player.skin.color = "tan"; break;
140 case 4: main.player.skin.color = "albino"; break;
143 else
145 switch(id) {
146 case 0: main.player.skin.color = "reddish brown"; break;
147 case 1: main.player.skin.color = "violet"; break;
148 case 2: main.player.skin.color = "dark red"; break;
151 text = "<h2>Hair Style</h2>";
152 text += "<p>What kind of hair do you want, assuming you want any at all?</p>";
153 setButton(0, "Plain");
154 setButton(1, "Bob cut");
155 setButton(2, "Wild&Proud");
156 setButton(3, "Ponytail");
157 setButton(4, "Bald");
158 setButton(5, "Shaven");
159 updateScreen();
160 break;
161 case 4:
162 this.stage = 5;
163 main.player.hair = new Hair();
164 // TODO: Add public set member for hair description.
165 switch(id) {
166 case 0: // Plain
167 main.player.hair.style = "plain";
168 break;
169 case 1: // Bob cut
170 main.player.hair.style = "bob-cut";
171 break;
172 case 2: // Wild and proud
173 main.player.hair.style = "wild";
174 break;
175 case 3: // Ponytail
176 main.player.hair.style = "ponytail";
177 break;
178 case 4: // Bald
179 main.player.hair.style = "bald";
180 break;
181 case 5: // Shaven
182 main.player.hair.style = "close-shaven";
183 break;
185 clearButtons();
186 text = "<h2>Class Selection</h2>";
187 text += "<p>Here, you choose your initial startup benefits and weapons.</p>";
188 text += "<ul>";
189 setButton(0, "Avg. Joe");
190 text += "<li>Avg. Joe - Just go in with the clothes on your back. (1 STR, 1 INT, 1 SPD)</li>";
191 setButton(1, "Soldier");
192 text += "<li>Soldier - You spent more time on swordplay than books. This lets you dive right into the combat. (+3 STR, Cheap Sword, Leather Armor)</li>";
193 setButton(2, "Bookworm");
194 text += "<li>Bookworm - You read a lot of scrolls as a kid, and paid attention in class. Strength, however, is not your forte. (+3 INT, Glasses, Daemonology Book)</li>";
196 text += "</ul>";
197 updateScreen();
198 break;
199 case 3:
200 stage = 4;
201 main.player.strength = 5;
202 main.player.speed = 5;
203 main.player.intellect = 5;
205 switch (id)
207 case 0:
208 main.player.strength += 1;
209 main.player.speed += 1;
210 main.player.intellect += 1;
211 break;
212 case 1:
213 main.player.strength += 3;
214 break;
215 case 2:
216 main.player.intellect += 2;
217 main.player.speed += 1;
218 break;
219 case 3:
220 main.player.balls.push(main.player.balls[0]);
221 main.player.strength += 1;
222 main.player.speed += 1;
223 break;
225 main.player.clothing.push(ItemRegistry.BROWN_TUNIC, ItemRegistry.GRAY_PANTS);
227 text = new Introduction();
228 clearButtons();
229 main.setupStatsPanel();
230 setButton(NEXT_BUTTON, "Next");
231 updateScreen();
232 done = false;
233 break;
234 case 4:
235 return true;
237 trace(id, stage, done);
238 return done;
241 override public function getScreenText():String
243 return text;