-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
1985 lines (1814 loc) · 93.8 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
var box = document.getElementById("box");
var options = document.getElementById("options");
var CMD={
console:document.getElementById("cmd"),
prompt:document.getElementById("cmdprompt"),
keychecker:function(){},
handler:function(){},
log:"",
navigate:false,
inputs:[],
input_pointer:0
}
var player = {inventory:{poops:0,keyboard:0,fedora:0}};
var kakure = {};
var queue = {queue:[],supress:false,pointer:-1,
add:function(enc){
if(!queue.supress){queue.pointer++
queue.queue.push(enc)
} else{
queue.supress=false;
}
},
previous:function(){queue.queue.pop();queue.pointer-=1;queue.supress=true;queue.queue[queue.pointer].gen()}
};
//==============================================================================
// Encounter Class
//==============================================================================
function Encounter(argument){
for(key in argument){
this[key]=argument[key]
}
this.gen = function(){
CMD.navigate=true;
if(this.callback){
this.callback();
}
queue.add(this)
if(this.title){
document.getElementById("title").innerHTML=this.title;
document.getElementById("Title").innerHTML=this.title;
}
box.innerHTML = this.boxed_text;
options.innerHTML = "<ul>";
for(k=0;k<this.choices.length;k++){
options.innerHTML+="<li><a id=option"+k+" onclick=\""+this.outcomes[k].name+".gen()\">"+this.choices[k]+"</a></li>";
//console.log(this.outcomes[k])
}
options.innerHTML+="</ul>"
}
}
//==============================================================================
// Encounters
//==============================================================================
var diarrhea=function(){};
var carrots=function(){};
var frontdoor=function(){};
var foyer1=function(){};
var foyer2a=function(){};
var foyer2b=function(){};
var samsroom=function(){};
var samsroom1=function(){};
var samsroom2=function(){};
var samsroom3=function(){};
var fishtank=function(){};
var sambath=function(){};
var selfesteem=function(){};
var samtub=function(){};
var samtoilet=function(){};
var kitchen=function(){};
var cupboard=function(){};
var livingroom=function(){};
var livingtable=function(){};
var livingsarah=function(){};
var livingloving=function(){};
var livingnailedit=function(){};
var livingtrapped=function(){};
var livingjack=function(){};
var bladder=function(){};
var lyreharp=function(){};
var warmbox=function(){};
var backdoor=function(){};
var shed=function(){};
var _monogram=function(){};
var foyerblank=function(){};
var basement=function(){};
var situps=function(){};
var crunchpartner=function(){};
var jssitups=function(){};
var jjsitups=function(){};
var situp=function(){};
var nextset=function(){};
var bonezone=function(){};
var pasokon=function(){};
var _steam=function(){};
var _files=function(){};
var _discord=function(){};
var _cmd=function(){};
var _finallyawake=function(){};
kakure.files={}
kakure.files.jpg134={gen:function(){}}
var diarrhea = new Encounter({
name:"diarrhea",
title:"The Runs",
boxed_text:"I have diarrhea real bad. What should I do?",
choices:["go","don't go"],
outcomes:[carrots,diarrhea]
})
var carrots = new Encounter({
name:"carrots",
title:"Tasty Treat",
boxed_text:"I go to the bathroom. Should I eat carrots?",
choices:["Yes"],
outcomes:[diarrhea],
callback: function(){player.inventory.poops+=1}
})
kakure.bashcounter = -1
var frontdoor = new Encounter({
name:"frontdoor",
title:"Front Door",
boxed_text:"Travelling along the downhill grade of Catherine street, you finally take a sharp left turn to avert your gaze from the holy glow St. Andrew\'s Episcopal Church, only to witness the ramshackle white columns and billowing porch-hammock of 502 Catherine Street. You make your way up the stairs and try the front door, finding it unlocked, but still somehow impossible to open.",
choices:["Make peace with your god and heave your entire frame against the door. ","Scream \"Fire, Fire!!!\" until someone comes to let you in."],
outcomes:[frontdoor,foyer1],
callback:function(){
kakure.bashcounter++
switch(kakure.bashcounter){
case 0:
break;
case 1:
frontdoor.boxed_text="One with your maker, you throw your weight into the glass, and feel the door budge a little, but remain shut."
break;
case 2:
frontdoor.boxed_text="Persistent and devout, you get a little runup this time, and mildly concuss yourself. But the door does budge a little more."
frontdoor.outcomes[0]=foyer1
break;
}
}
})
foyer1 = new Encounter({
name:"foyer1",
title:"Enter the Foyer",
boxed_text:"\"Hello, Traveler. Excuse me: my vision seems to be failing me... Are you a boy or a girl?\"",
choices:["\"Yes\"","\"No\"","Heave your frame against the set of double doors to your right, thoroughly avoiding the question. "],
outcomes:[foyer2a,foyer2b,samsroom],
callback:function(){
if(kakure.bashcounter>0){
foyer1.boxed_text="True to your beliefs of living and not learning, you choose your hill to die on, and yeet yourself into the yet unswinging door. With a mighty crash, you sprawl onto a sea of mismatched shoes and unread mail. Looking up, you see a black-haired man in khakis sitting at a card table, in the middle of eating honeycombs, staring at you with wide eyes.<br /><br />"+foyer1.boxed_text
} else {
foyer1.boxed_text="You throw your head back and exercise your first amendment right as loudly as you can. After the brief sound of shuffling shoes, and muttered curses just out of earshot, the door opens to reveal a black-haired man in a blue shirt and khakis.<br /><br />"+foyer1.boxed_text
}
}
})
foyer2a = new Encounter({
name:"foyer2a",
title:"In the Foyer",
boxed_text:"The man looks for a flashing second irked by the petty semantics of your response, but doesn\'t press the matter further. \"Welcome to 502! You caught me in the middle of breakfast, but showing a new guest around is worth the soggy honeycombs. Let me show you to the kitchen!",
choices:["\"Yes please Sir Jim, lead me to your kitchen.\""],
outcomes:[kitchen],
callback:function(){
}
})
foyer2b = new Encounter({
name:"foyer2b",
title:"In the Foyer",
boxed_text:"The steel-trap mentality of this lad takes your unorthodox semantics in stride. \"Fair enough. Whelp, I\'ll have to leave for the lab soon, but I have to at least show a houseguest around the first floor. Come with me to the kitchen, would you?",
choices:["\"Yes please Sir Jim, lead me to your kitchen.\""],
outcomes:[kitchen],
callback:function(){
}
})
samsroom = new Encounter({
name:"samsroom",
title:"Sam\'s Room",
boxed_text:"You complicate the decision tree as much as possible and cast your mortal frame against doors which, immediately upon impact, prove less sturdy by far than the hearty slab of maple with which you first engaged. The doors give way to a faint splintering sound, and you find yourself in a room with a huge window on the north side, a desk with a black laptop on it, and another door on the south side.",
choices:["Look out the window.","Investigate the Laptop.","One more door, one more flunge.","Leave"],
outcomes:[samsroom1,samsroom2,samsroom3,foyerblank],
callback:function(){
}
})
samsroom1 = new Encounter({
name:"samsroom1",
title:"Looking out Sam\'s Window",
boxed_text:"St. Andrew\'s Episcopal Church, in all its glory, takes up the full of your periphery. You think you see a dude in a flannel with a beanie hat staring longingly at you from across the street, but you blink and see that it was just a conspicuously placed plastic bag. How beautiful.",
choices:["Go back"],
outcomes:[samsroom],
callback:function(){
}
})
samsroom2 = new Encounter({
name:"samsroom2",
title:"Laptop",
boxed_text:"You try to look through the laptop, but everything\'s in spanish. In fact, it looks like it\'s in the middle of a zoom class, but the camera\'s off and it\'s muted. It dawns upon you that this is what passes for attendance these days. Pathetic.",
choices:["Go back"],
outcomes:[samsroom],
callback:function(){
}
})
samsroom3 = new Encounter({
name:"samsroom3",
title:"Sam\'s Corridor",
boxed_text:"If you\'re going through, you\'re going through hard. The flimsy white door easily relents to a trashed hallway of cords and cleaning supplies. A bathroom door is already open to your right, a small alcove with a fishtank in it caves out to your left. The living room is visible at the end of the hallway, but the amassed junk makes traversing there right now impossible.",
choices:["With unprecedented delicacy and grace, step into the bathroom.","Snoop around the fish tank.","This hallway is gross and you need have nothing to do with it."],
outcomes:[sambath,fishtank,samsroom],
callback:function(){
}
})
fishtank = new Encounter({
name:"fishtank",
title:"The Fishtank",
boxed_text:"You try and make sense of this lifeless, fishless, tragic looking thing in the alcove. It\'s full of more junk, but enough junk to conceivably hide in if you ever had to play hide and seek here. Noteworthy. That said, it was still probably a terrible idea to buy and store in this hallway. Like, what do we even do with the thing after we move out? Mercy mild...",
choices:["Get all worked up over this.","Don\'t bother"],
outcomes:[samsroom3,samsroom3],
callback:function(){
}
})
sambath = new Encounter({
name:"sambath",
title:"Sam\'s Bathroom",
boxed_text:"So vile an intersection of plastic, hair, and dust has never presented itself before you. A sink and mirror fill the north side, a dustbowl bathtub the west side, and a toilet between them. ",
choices:["Check yourself out, gorgeous.","Peer over the edge and into the bathtub.","Well, while you\'re here.","Leave"],
outcomes:[selfesteem,samtub,samtoilet,samsroom3],
callback:function(){
}
})
selfesteem = new Encounter({
name:"selfesteem",
title:"Looking into the Mirror",
boxed_text:"What you can see of yourself through the water stained glass looks really, I mean really, good.",
choices:["Go back"],
outcomes:[sambath],
callback:function(){
}
})
samtub = new Encounter({
name:"samtub",
title:"Gazing into the Abyss",
boxed_text:"You sneak a glance into the effective Grand Canyon of what might have once been a place of hygiene. Dark, dry thoughts fill your head. Why did you come to this dark corner of 502? What forces of evil preside over this small pocket of an otherwise orderly and kind domain? The questions find no resolution.",
choices:["Snap back to reality."],
outcomes:[sambath],
callback:function(){
}
})
samtoilet = new Encounter({
name:"samtoilet",
title:"Dumptown USA",
boxed_text:"Biology, baby. You handle your business, wash your hands, and leave the place only marginally dirtier than you entered it. Which, by this long-abandoned room\'s standards, is a thorough victory. ",
choices:["Wash your hands."],
outcomes:[sambath],
callback:function(){
player.inventory.poops-=1;
}
})
kitchen = new Encounter({
name:"kitchen",
title:"The Kitchen",
boxed_text:"Ah, the intersectional heart of the entirety of 502 Catherine. This clean, modest, dare I even call it quaint space allows you access to the living room, the basement, the foyer, the back door, and any ancient food reserves which may or may not have been abandoned to slowly curdle in dank cupboards. If ever you find yourself lost or confused amidst the throngs of weirdos and steep staircases, just wind your way back here. ",
choices:["I want to live.","Go down to Goblin Town, where you hear a faint grunting.","They\'ll never see you leavin\' by the backdoor.","You\'re nasty hungry: get all up in those cupboards.","The place your story began. Your ancestral home. Trace your umbilicus back to that foyer."],
outcomes:[livingroom,situps,backdoor,cupboard,foyerblank],
callback:function(){
}
})
foyerblank = new Encounter({
name:"foyerblank",
title:"Back in the Foyer",
boxed_text:"You return to the foyer. Where do you want to go?",
choices:["Kitchen"],
outcomes:[kitchen],
callback:function(){
}
})
livingroom = new Encounter({
name:"livingroom",
title:"Into the Living Room",
boxed_text:"You shuffle into the living room. Ahead of you, blocking the massive window on the west wall of the room, a TV balances precariously on a kitchen table. In the northwest corner, next to the TV, an armchair plays host to a raven-haired maiden, who sits looking at a tablet with her legs crossed. The North face of the room opens into a sub-room with a black table, at which a man sits intent upon his laptop, practicing a card trick. A sign reading \"Karl Skid\/Marx\" presides over the room, with a hammer and sickle drawn in red marker.",
choices:["Fool around with the table because you lack social skills.","Entreat the attention of the raven-haired maiden.","See what, precisely is the deal with that funky card trick.","The land of the living is no kind host to your ilk."],
outcomes:[livingtable,livingsarah,livingjack,kitchen],
callback:function(){
}
})
livingtable = new Encounter({
name:"livingtable",
title:"Living Room Table",
boxed_text:"Ah, you\'re just casing the place first. Nothing wrong with that. On the table in front of the TV is a tube of Icy Hot, a bunch of stray essential oils without a diffuser, and a solved Rubik\'s cube. ",
choices:["Make a silent, informed judgment about the kind of people that live here, and then work yourself up to the social encounters."],
outcomes:[livingroom],
callback:function(){
}
})
livingsarah = new Encounter({
name:"livingsarah",
title:"Meeting Sarah",
boxed_text:"You approach the raven-haired maiden henceforth known to you as Sarah. \"Hi, I\'m Sarah!\" she says. \"How\'s the house treating you?\" ",
choices:["Lie and say you\'re loving it.","It\'s icy, It\'s hot, and it\'s totally tubular. It\'s got a great fragrance to it, too. It\'s complex, like a Rubik\'s Cube, but unthreatening, like a solved Rubik\'s Cube.","Honestly? Is there a way out of this whole thing because I just d--"],
outcomes:[livingloving,livingnailedit,livingtrapped],
callback:function(){
}
})
livingloving = new Encounter({
name:"livingloving",
title:"Chatting with Sarah",
boxed_text:"She totally buys it. \"I\'m really glad! The guys all get kinda stir crazy without company, so it\'ll be good to see a new face around. Be sure to check out the roof if you have the time!\"",
choices:["Say that you definitely will with your fingers crossed, and move on without missing a beat.","Make a slightly longer eye contact than usual with her, and whisper \"Oh, I\'m getting to that roof.\" Then step back."],
outcomes:[livingroom,livingroom],
callback:function(){
}
})
livingnailedit = new Encounter({
name:"livingnailedit",
title:"Chatting with Sarah",
boxed_text:"Sarah\'s expression of polite joy deepens into one of understanding awe. \"I\'ve never heard it put so perfectly like that...Wow, you really have a good sense for this place. Welcome.\" You feel like if any supernatural governance kept track of how various housemates felt about you, they\'d see this response as a smashing success.",
choices:["Dispel such silly agnosticism and get on with your day."],
outcomes:[livingroom],
callback:function(){
}
})
livingtrapped = new Encounter({
name:"livingtrapped",
title:"Chatting with Sarah",
boxed_text:"The music you hadn\'t even realized was playing faintly in the background cuts, as Sarah tilts her head in mild confusion. \"You aren\'t here to stay... forever?\" she asks. Then, breaking back into a smile, she continues \"Nah, if you wanna leave literally just go ahead.\" There was never any music playing: you\'re sure you don\'t know what you were thinking.",
choices:["Figure yourself out and move on."],
outcomes:[livingroom],
callback:function(){
}
})
livingjack = new Encounter({
name:"livingjack",
title:"What\'s Jack Pointing At?",
boxed_text:"You can spin a pen through your fingers if you think really hard about it, you\'ve fallen into the purgatory of Penn and Teller\'s \'Fool Us\' on Youtube: you can probably talk to guys who do card tricks. Jack catches your eyes as you approach, and points imperatively to something behind you in the room before saying a word. You turn around to get what he was indicating, and see a range of things it could reasonably be: a water bladder, a lyre harp, and a warm box on the card table. ",
choices:["Go after that ever-practical water bladder.","Finesse the funky lyre harp.","Acquire ye olde warm box on the card table"],
outcomes:[bladder,lyreharp,warmbox],
callback:function(){
}
})
bladder = new Encounter({
name:"bladder",
title:"Water Bladder",
boxed_text:"It\'s the coolest thing in the room, maybe the world, so of course you\'re going right for that water bladder. Problem is, as you grab it and turn back to Jack, he coolly shakes his head, and points again at that general zone of the room. Must not have been what he meant. ",
choices:["His loss, man."],
outcomes:[livingjack],
callback:function(){
}
})
lyreharp = new Encounter({
name:"lyreharp",
title:"The Lyre Harp",
boxed_text:"It seems reasonable to you that during his political science zoom class, Jack might want to have one state-of-the-art 16 string lyre harp on hand. Only problem is, once you grab it and turn back to him, his yet inexpressive face turns into one of mild embafflement, with just a twinge of pity. Jack\'s eyebrows scrunch together, as if they might find in his glabella the faintest suggestion of an explanation for why you thought he meant the lyre harp. Wrong call.",
choices:["I can\'t conceive of not wanting this, but very well."],
outcomes:[livingjack],
callback:function(){
}
})
warmbox = new Encounter({
name:"warmbox",
title:"The Warm Box",
boxed_text:"You trod over to that warm, beige box on the card table, which you realize upon getting close smells of potatoes and pepper. Looking back at Jack, he gives you a sure but casual thumbs up, as if to say \"Go at it, boss.\" He brought you lunch from the dining hall! What a real one. ",
choices:["Do his delivery honor, and go completely bonobos on those fries."],
outcomes:[livingroom],
callback:function(){
player.inventory.poops+=1
}
})
backdoor = new Encounter({
name:"backdoor",
title:"Out the Back Door",
boxed_text:"You step out of the bustling network of this college house to see what exists out the back door. The recycling bins get in your way a little bit, but you can step around them. There\'s a foam cutout of a cat mask pressed to the glass, but you can angle your sight past that too, and win your eyes out to that pebbled mudpit of a backyard. A meager garage stands to your left, with its plastic deathtrap of a door lockjawed shut. To the right, a blue car and a silver car rest parked at competing angles in the muck. The windfall light streams down and left through the wiry maple that overhangs most of the shed. Little moments like this don\'t cost or give you anything. But you\'ll remember them.",
choices:["Realize that the front door is the way to leave, when you want to.","Enter the shed."],
outcomes:[kitchen,shed],
callback:function(){
}
})
cupboard = new Encounter({
name:"cupboard",
title:"Checking the Cupboards",
boxed_text:"Alas, that the voice of hunger should thrum through your gut, and draw you for even a moment away from this place with yet so many secrets. Oh well. You open the cupboard, and the sheer olfactory force of this nasty smell cripples every single one of your senses. A moment you uncertain stand in groty paralysis, before a pang of adrenaline compels you to shut the cupboard drawer, and not come back until you find some way to withstand whatever just happened here.",
choices:["Go back"],
outcomes:[kitchen],
callback:function(){
}
})
shed = new Encounter({
name:"shed",
title:"In the Shed",
boxed_text:"You open the door to the shed to see a small dimly-lit room, which is mostly occupied by a black 2011 Lexus Hybrid CT200H.",
choices:["Go back"],
outcomes:[backdoor],
callback:function(){
if(player.inventory.fedora>0){
this.choices=["Don fedora","Go back"];
this.outcomes=[_monogram,backdoor];
}
}
})
//==============================================================================
// True Love, Presidents Edition
//==============================================================================
//NOTE: for kakure minigames, the main encounter that leads to the first kakure encounter must come after all of them in the code
kakure.presidents={hearts:2.5,ending:"",mission:false};
kakure.presidents.kokoro=function(obj,H){
kakure.presidents.hearts+=H;
console.log(kakure.presidents.hearts);
var heartsbar="";
for(h=0;h<Math.floor(kakure.presidents.hearts);h++){
heartsbar+="💕"
}
switch (kakure.presidents.hearts%1){
case 0:
heartsbar+="";
break;
case 0.25:
heartsbar+="💔";
break;
case 0.5:
heartsbar+="❤";
break;
case 0.75:
heartsbar+="💖";
break;
}
obj.title=heartsbar;
}
kakure.presidents.start=function(){}
kakure.presidents.opening=function(){}
kakure.presidents.library=function(){};
kakure.presidents.mall=function(){};
kakure.presidents.bar=function(){};
kakure.presidents.obama=function(){};
kakure.presidents.o_hello=function(){};
kakure.presidents.o_sup=function(){};
kakure.presidents.o_shirt=function(){};
kakure.presidents.o_slam=function(){};
kakure.presidents.o_good=function(){};
kakure.presidents.o_shit=function(){};
kakure.presidents.o_better=function(){};
kakure.presidents.o_great=function(){};
kakure.presidents.o_unsure=function(){};
kakure.presidents.o_yourplace=function(){};
kakure.presidents.o_dongxi=function(){};
kakure.presidents.o_chicken=function(){};
kakure.presidents.o_tuna=function(){};
kakure.presidents.o_body=function(){};
kakure.presidents.o_degree=function(){};
kakure.presidents.o_wpm=function(){};
kakure.presidents.o_sleptaround=function(){};
kakure.presidents.o_picnic=function(){};
kakure.presidents.o_internship=function(){};
kakure.presidents.o_underdesk=function(){};
kakure.presidents.o_teamplayer=function(){};
kakure.presidents.o_notwell=function(){};
kakure.presidents.o_pleaser=function(){};
kakure.presidents.o_care=function(){};
kakure.presidents.o_politics=function(){};
kakure.presidents.o_you=function(){};
kakure.presidents.o_nextmonth=function(){};
kakure.presidents.o_michelle=function(){};
kakure.presidents.o_tonight=function(){};
kakure.presidents.bushjr=function(){};
kakure.presidents.b_hello=function(){};
kakure.presidents.b_sup=function(){};
kakure.presidents.b_pants=function(){};
kakure.presidents.b_great=function(){};
kakure.presidents.b_yessir=function(){};
kakure.presidents.b_whatever=function(){};
kakure.presidents.b_dongxi=function(){};
kakure.presidents.b_chicken=function(){};
kakure.presidents.b_tuna=function(){};
kakure.presidents.b_body=function(){};
kakure.presidents.b_cat=function(){};
kakure.presidents.b_sorry=function(){};
kakure.presidents.b_punch=function(){};
kakure.presidents.b_tired=function(){};
kakure.presidents.b_hungry=function(){};
kakure.presidents.b_eat=function(){};
kakure.presidents.b_goodidea=function(){};
kakure.presidents.b_perv=function(){};
kakure.presidents.b_myown=function(){};
kakure.presidents.b_tea=function(){};
kakure.presidents.b_thanks=function(){};
kakure.presidents.b_laid=function(){};
kakure.presidents.bushsr=function(){};
kakure.presidents.clinton=function(){};
kakure.presidents.c_hello=function(){};
kakure.presidents.c_bubba=function(){};
kakure.presidents.c_pants=function(){};
kakure.presidents.c_23=function(){};
kakure.presidents.c_18=function(){};
kakure.presidents.c_17=function(){};
kakure.presidents.c_great=function(){};
kakure.presidents.c_paying=function(){};
kakure.presidents.c_slap=function(){};
kakure.presidents.c_hello=function(){};
kakure.presidents.c_bubba=function(){};
kakure.presidents.c_pants=function(){};
kakure.presidents.c_dongxi=function(){};
kakure.presidents.c_hello=function(){};
kakure.presidents.c_bubba=function(){};
kakure.presidents.c_pants=function(){};
kakure.presidents.c_job=function(){};
kakure.presidents.c_drop=function(){};
kakure.presidents.c_tease=function(){};
kakure.presidents.c_pickup=function(){};
kakure.presidents.quit=function(){};
kakure.presidents.gameover=function(){};
/*
bodyslam
*/
kakure.presidents.start= new Encounter({
name:"kakure.presidents.start",
title:"Going Undercover",
boxed_text:"For this mission, you will need to go undercover.",
choices:["Get into character"],
outcomes:[_monogram],
callback:function(){
this.outcomes=[kakure.presidents.opening]
}
})
kakure.presidents.opening = new Encounter({
name:"kakure.presidents.opening",
title:" ",
boxed_text:"You are a 23-year-old college graduate. You\'ve been unemployed and living in your parents\' house in Washington, D.C. ever since you graduated with an advertising and marketing degree worth less than the paper its\' printed on.<br \/><br \/>You can\'t impress anybody with a pointless degree like that.<br \/><br \/>It looks like you\'ll have to set out today to find a job on your own!<br \/><br \/>Where do you want to go first?",
choices:["The library","The mall","The bar"],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
this.outcomes=[kakure.presidents.library,kakure.presidents.mall,kakure.presidents.bar];
kakure.presidents.hearts=2.5;
this.title=""
}
})
kakure.presidents.library = new Encounter({
name:"kakure.presidents.library",
title:"",
boxed_text:"You\'re not going to find any work HERE!<br \/><br \/>You did find a flyer announcing a presidential meet and greet at the mall, though.",
choices:["Go to the mall"],
outcomes:[_monogram],
callback:function(){
this.outcomes=[kakure.presidents.mall]
}
})
kakure.presidents.bar = new Encounter({
name:"kakure.presidents.bar",
title:"",
boxed_text:"It\'s too early in the morning; the bar\'s closed.<br \/><br \/>You could try the mall or the library.",
choices:["The mall","The library"],
outcomes:[_monogram,_monogram],
callback:function(){
this.outcomes=[kakure.presidents.mall,kakure.presidents.library]
}
})
kakure.presidents.mall = new Encounter({
name:"kakure.presidents.mall",
title:"",
boxed_text:"You arrive at the mall.<br \/><br \/>You look around, and see a flyer announcing a presidential meet and greet.<br \/><br \/>You walk around, searching for the event.<br \/><br \/>You find the presidents in the food court.<br \/><br \/>Which one should you approach?",
choices:["Obama","Bush Sr.","Bush Jr.","Clinton"],
outcomes:[_monogram,_monogram,_monogram,_monogram],
callback:function(){
this.outcomes=[kakure.presidents.obama,kakure.presidents.bushsr,kakure.presidents.bushjr,kakure.presidents.clinton]
}
})
kakure.presidents.bushsr = new Encounter({
name:"kakure.presidents.bushsr",
title:"",
boxed_text:"\"Hello!\"<br \/><br \/>\"I see you\'re a woman...\"<br \/><br \/>\"Read my lips:\"<br \/><br \/>\"NO. NEW. SECRETARIES.\"<br \/><br \/>It looks like you\'ll have to try somebody else...<br \/><br \/>",
choices:["Obama","Bush Jr.","Clinton"],
outcomes:[_monogram,_monogram,_monogram,_monogram],
callback:function(){
this.outcomes=[kakure.presidents.obama,kakure.presidents.bushjr,kakure.presidents.clinton];
}
})
kakure.presidents.obama = new Encounter({
name:"kakure.presidents.obama",
title:"",
boxed_text:"",
choices:["\"Hello, Mr. Obama\"","\"Sup, Barack\"","\"Take your shirt off\"","*body slam obama*"],
outcomes:[_monogram,_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.ending="Obama";
this.outcomes=[kakure.presidents.o_hello,kakure.presidents.o_sup,kakure.presidents.o_shirt,kakure.presidents.o_slam]
}
})
kakure.presidents.o_hello = new Encounter({
name:"kakure.presidents.o_hello",
title:"",
boxed_text:"Hello...How are you?",
choices:["\"I\'m good, but I\'m\ having trouble finding a job.\"","\"Eat shit and die.\"","\"Better...now that I\'m talking with you.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.25);
this.outcomes=[kakure.presidents.o_good,kakure.presidents.o_shit,kakure.presidents.o_better];
}
})
kakure.presidents.o_sup = new Encounter({
name:"kakure.presidents.o_sup",
title:"",
boxed_text:"Obama is taken aback by your attitude. \"Excuse me?\"",
choices:["\"Hello, Mr. Obama\"","\"Sup, Barack\"","\"Take your shirt off\"","*body slam obama*"],
outcomes:[_monogram,_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.25);
this.outcomes=[kakure.presidents.o_hello,kakure.presidents.o_sup,kakure.presidents.o_shirt,kakure.presidents.o_slam]
}
})
kakure.presidents.o_shirt = new Encounter({
name:"kakure.presidents.o_shirt",
title:"",
boxed_text:"I don\'t normally do that for strangers...",
choices:["\"Hello, Mr. Obama\"","\"Sup, Barack\"","\"Take your shirt off\"","*body slam obama*"],
outcomes:[_monogram,_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.5);
this.outcomes=[kakure.presidents.o_hello,kakure.presidents.o_sup,kakure.presidents.o_shirt,kakure.presidents.o_slam]
}
})
kakure.presidents.o_slam = new Encounter({
name:"kakure.presidents.o_slam",
title:"",
boxed_text:"You hurl yourself at Obama. He\'s too strong, and you bounce off of him onto the floor. You pass out on the ground.",
choices:["Next"],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,-1.25);
kakure.presidents.ending="bodyslam"
this.outcomes=[kakure.presidents.gameover]
}
})
kakure.presidents.o_good = new Encounter({
name:"kakure.presidents.o_good",
title:"",
boxed_text:"He looks at you. \"I may actually have an opening.\"<br /><br />\"Why don\'t we discuss this over dinner. I know just the place.\"",
choices:["\"Sounds great!\"","\"I\'m not sure...\"","\"How about we discuss it at YOUR place?\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.25);
this.outcomes=[kakure.presidents.o_great,kakure.presidents.o_unsure,kakure.presidents.o_yourplace];
}
})
kakure.presidents.o_shit = new Encounter({
name:"kakure.presidents.o_shit",
title:"",
boxed_text:"\"How did you know that \'eat shit and die\' is my favorite phrase?\"<br /><br />\"I like you. If you happen to be looking for a job, I might have a vacancy you can fill.\"<br /><br />\"Why don\'t we discuss this over dinner. I know just the place.\"",
choices:["\"Sounds great!\"","\"I\'m not sure...\"","\"How about we discuss it at YOUR place?\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.75);
this.outcomes=[kakure.presidents.o_great,kakure.presidents.o_unsure,kakure.presidents.o_yourplace];
}
})
kakure.presidents.o_better = new Encounter({
name:"kakure.presidents.o_better",
title:"",
boxed_text:"Obama blushes slightly and says \"How flattering, thank you.\"<br /><br />\"I like you. If you happen to be looking for a job, I might have a vacancy you can fill.\"<br /><br />\"Why don\'t we discuss this over dinner. I know just the place.\"",
choices:["\"Sounds great!\"","\"I\'m not sure...\"","\"How about we discuss it at YOUR place?\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_great,kakure.presidents.o_unsure,kakure.presidents.o_yourplace];
}
})
kakure.presidents.o_great = new Encounter({
name:"kakure.presidents.o_better",
title:"",
boxed_text:"\"Good. Just let me grab my coat and we\'ll be off.\"<br /><br />Obama grabs his coat and you prepare to head downtown to the Dongxi Chinese resaurant.",
choices:["\"Head to the restaurant\""],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.25);
this.outcomes=[kakure.presidents.o_dongxi];
}
})
kakure.presidents.o_unsure = new Encounter({
name:"kakure.presidents.o_unsure",
title:"",
boxed_text:"\"You need a job, don\'t you? Let me grab my coat and we\'ll go now.\"<br /><br />Obama grabs his coat and you prepare to head downtown to the Dongxi Chinese resaurant.",
choices:["\"Head to the restaurant\""],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.25);
this.outcomes=[kakure.presidents.o_dongxi];
}
})
kakure.presidents.o_yourplace = new Encounter({
name:"kakure.presidents.o_yourplace",
title:"",
boxed_text:"Obama chuckles dryly. \"I\'d prefer to eat out.\"<br /><br />Obama grabs his coat and you prepare to head downtown to the Dongxi Chinese resaurant.",
choices:["\"Head to the restaurant\""],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_dongxi];
}
})
kakure.presidents.o_dongxi = new Encounter({
name:"kakure.presidents.o_dongxi",
title:"",
boxed_text:"You both sit down at a table in the Dongxi Chinese restaurant. \"Order anything you want,\" Obama says to you.",
choices:["\"Sesame chicken w\/ rice\" ($8)","\"Bluefin tuna w\/ rice rolls\" ($140)","\"Your body\" (priceless)"],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
//kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_chicken,kakure.presidents.o_tuna,kakure.presidents.o_body];
}
})
kakure.presidents.o_chicken = new Encounter({
name:"kakure.presidents.o_chicken",
title:"",
boxed_text:"Obama eyes you over the top of his menu. \"I <i>can</i> afford a bit more than that, but if that\'s what you want...\"<br /><br />Your food arrives shortly...<br /><br />\"Recently, one of my secretaries had to be let go when we found she was sleeping on the job. The job pays well, and it includes...\"<br /><br />\"Benefits.\"<br /><br />\"I am willing to offer you this job, provided you do well in this interview. What are some of your major achievements?\"",
choices:["\"I graduated with an Advertising and Marketing degree.\"","\"I can type more than 200 WPM\"","\"\"I\'ve slept with more people than anyone else I know\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.25);
this.outcomes=[kakure.presidents.o_degree,kakure.presidents.o_wpm,kakure.presidents.o_sleptaround];
}
})
kakure.presidents.o_tuna = new Encounter({
name:"kakure.presidents.o_tuna",
title:"",
boxed_text:"\"Excellent choice. I also love seafood.\"<br /><br />Your food arrives shortly...<br /><br />\"Recently, one of my secretaries had to be let go when we found she was sleeping on the job. The job pays well, and it includes...\"<br /><br />\"Benefits.\"<br /><br />\"I am willing to offer you this job, provided you do well in this interview. What are some of your major achievements?\"",
choices:["\"I graduated with an Advertising and Marketing degree.\"","\"I can type more than 200 WPM\"","\"\"I\'ve slept with more people than anyone else I know\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_degree,kakure.presidents.o_wpm,kakure.presidents.o_sleptaround];
}
})
kakure.presidents.o_body = new Encounter({
name:"kakure.presidents.o_body",
title:"",
boxed_text:"\"Act your age!\"",
choices:["\"Sesame chicken w\/ rice\" ($8)","\"Bluefin tuna w\/ rice rolls\" ($140)","\"Your body\" (priceless)"],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.75);
this.outcomes=[kakure.presidents.o_chicken,kakure.presidents.o_tuna,kakure.presidents.o_body];
}
})
kakure.presidents.o_degree = new Encounter({
name:"kakure.presidents.o_degree",
title:"",
boxed_text:"Obama looks disgusted with your pitiful college experience. \"That won\'t help you too much, but maybe we can still fit you in\"<br /><br />\"What kind of experience do you have working behind a desk?\"",
choices:["\"I typed up flyers for my church picnic\"","\"I had an internship during college with the Washington Post\"","\"I have more experience working UNDER a desk\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.5);
this.outcomes=[kakure.presidents.o_picnic,kakure.presidents.o_internship,kakure.presidents.o_underdesk];
}
})
kakure.presidents.o_wpm = new Encounter({
name:"kakure.presidents.o_wpm",
title:"",
boxed_text:"Obama looks pleased. \"With fingers like that, you\'re welcome in my office.\"<br /><br />\"What kind of experience do you have working behind a desk?\"",
choices:["\"I typed up flyers for my church picnic\"","\"I had an internship during college with the Washington Post\"","\"I have more experience working UNDER a desk\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_picnic,kakure.presidents.o_internship,kakure.presidents.o_underdesk];
}
})
kakure.presidents.o_sleptaround = new Encounter({
name:"kakure.presidents.o_sleptaround",
title:"",
boxed_text:"\"You are a professional, please act like it.\"<br /><br />\"What kind of experience do you have working behind a desk?\"",
choices:["\"I typed up flyers for my church picnic\"","\"I had an internship during college with the Washington Post\"","\"I have more experience working UNDER a desk\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.75);
this.outcomes=[kakure.presidents.o_picnic,kakure.presidents.o_internship,kakure.presidents.o_underdesk];
}
})
kakure.presidents.o_picnic = new Encounter({
name:"kakure.presidents.o_picnic",
title:"",
boxed_text:"\"Well. At least it\'s something.\"<br /><br />\"How well do you work with others?\"",
choices:["\"I\'m a real team player!\"","\"\"Not well...","\"I always aim to please others.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.25);
this.outcomes=[kakure.presidents.o_teamplayer,kakure.presidents.o_notwell,kakure.presidents.o_pleaser];
}
})
kakure.presidents.o_internship = new Encounter({
name:"kakure.presidents.o_internship",
title:"",
boxed_text:"\"Great, that will be extremely helpful.\"<br /><br />\"How well do you work with others?\"",
choices:["\"I\'m a real team player!\"","\"\"Not well...","\"I always aim to please others.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.25);
this.outcomes=[kakure.presidents.o_teamplayer,kakure.presidents.o_notwell,kakure.presidents.o_pleaser];
}
})
kakure.presidents.o_underdesk = new Encounter({
name:"kakure.presidents.o_underdesk",
title:"",
boxed_text:"\"I'm not so sure that\'s the same thing...\"<br /><br />\"How well do you work with others?\"",
choices:["\"I\'m a real team player!\"","\"\"Not well...","\"I always aim to please others.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_teamplayer,kakure.presidents.o_notwell,kakure.presidents.o_pleaser];
}
})
kakure.presidents.o_teamplayer = new Encounter({
name:"kakure.presidents.o_teamplayer",
title:"",
boxed_text:"\"A useful skill\"<br /><br />\"What do you like best about the Obama Administration?\"",
choices:["\"Health care reform.\"","\"I don\'t really get politics.\"","\"You.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.25);
this.outcomes=[kakure.presidents.o_care,kakure.presidents.o_politics,kakure.presidents.o_you];
}
})
kakure.presidents.o_notwell = new Encounter({
name:"kakure.presidents.o_notwell",
title:"",
boxed_text:"\"At least you\'re honest. I like that\"<br /><br />\"What do you like best about the Obama Administration?\"",
choices:["\"Health care reform.\"","\"I don\'t really get politics.\"","\"You.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.25);
this.outcomes=[kakure.presidents.o_care,kakure.presidents.o_politics,kakure.presidents.o_you];
}
})
kakure.presidents.o_pleaser = new Encounter({
name:"kakure.presidents.o_pleaser",
title:"",
boxed_text:"\"Now THAT is a good attitude\"<br /><br />\"What do you like best about the Obama Administration?\"",
choices:["\"Health care reform.\"","\"I don\'t really get politics.\"","\"You.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_care,kakure.presidents.o_politics,kakure.presidents.o_you];
}
})
kakure.presidents.o_care = new Encounter({
name:"kakure.presidents.o_care",
title:"",
boxed_text:"\"A wise choice\"<br /><br />\"I\'m prepared to offer you the job. All I need to know is when you can start.\"",
choices:["\"Sometime next month would work for me.\"","\"As soon as Michelle is away.\"","\"Tonight.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.25);
this.outcomes=[kakure.presidents.o_nextmonth,kakure.presidents.o_michelle,kakure.presidents.o_tonight];
}
})
kakure.presidents.o_politics = new Encounter({
name:"kakure.presidents.o_politics",
title:"",
boxed_text:"\"It\'s not for everyone, I guess.\"<br /><br />\"I\'m prepared to offer you the job. All I need to know is when you can start.\"",
choices:["\"Sometime next month would work for me.\"","\"As soon as Michelle is away.\"","\"Tonight.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.75);
this.outcomes=[kakure.presidents.o_nextmonth,kakure.presidents.o_michelle,kakure.presidents.o_tonight];
}
})
kakure.presidents.o_you = new Encounter({
name:"kakure.presidents.o_you",
title:"",
boxed_text:"\"I am of the same opinion. You know I won a medal for awesome, right?\"<br /><br />\"I\'m prepared to offer you the job. All I need to know is when you can start.\"",
choices:["\"Sometime next month would work for me.\"","\"As soon as Michelle is away.\"","\"Tonight.\""],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.kokoro(this,0.5);
this.outcomes=[kakure.presidents.o_nextmonth,kakure.presidents.o_michelle,kakure.presidents.o_tonight];
}
})
kakure.presidents.o_nextmonth = new Encounter({
name:"kakure.presidents.o_nextmonth",
title:"",
boxed_text:"Obama gets up and shakes your hand. \"I\'ll see you then.\"",
choices:["Next"],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,-0.25);
this.outcomes=[kakure.presidents.gameover];
}
})
kakure.presidents.o_michelle = new Encounter({
name:"kakure.presidents.o_michelle",
title:"",
boxed_text:"Obama laughs. \"Well, she is on a trip to Haiti for the week...\"",
choices:["Next"],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,+0.75);
this.outcomes=[kakure.presidents.gameover];
}
})
kakure.presidents.o_tonight = new Encounter({
name:"kakure.presidents.o_tonight",
title:"",
boxed_text:"Obama smiles at you. \"We could get some...\"<br /><br />\"Paperwork...done before then.\"",
choices:["Next"],
outcomes:[_monogram],
callback:function(){
kakure.presidents.kokoro(this,+0.25);
this.outcomes=[kakure.presidents.gameover];
}
})
kakure.presidents.bushjr = new Encounter({
name:"kakure.presidents.bushjr",
title:"",
boxed_text:"\"Hello, Miss.\"",
choices:["\"Hello, Mr. Bush\"","Sup G-dawg","Drop your pants."],
outcomes:[_monogram,_monogram,_monogram],
callback:function(){
kakure.presidents.ending="Bush"