summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index db34745..fa5bb28 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -51,6 +51,35 @@ static const char *phrases[] = {
51 "POOL'S CLOSED", 51 "POOL'S CLOSED",
52 "I've been diagnosed with snaids", 52 "I've been diagnosed with snaids",
53 "My balls itch", 53 "My balls itch",
54 "We killin filez and shiit",
55 "lonix users BTFO once again",
56 "This space left intentionally blank",
57 "Thinking of a way out is self-centered at best",
58 "Searching for the punchline to an infinite jest?",
59 "Still learning what it means to feel",
60 "Killroy was NOT here",
61 "Go fuck yourself lmao",
62 "It's so over",
63 "We're so back",
64 "It never even began",
65 "Pepito they shot Trump",
66 "This shit ain't nothing to me man",
67 "I'm him, I will continue to be him",
68 "THERE ARE MOSQUITOS IN YOUR URETHRA, GET THEM OUT!!!",
69 "Something wicked this way comes",
70 "Schizo hour",
71 "Man I could really use some Chicken Bouillon rn",
72 "Fuck my digital footprint, I need a digital footjob",
73 "Having my weekly \"Ted was right\" moment",
74 "Why aren't you in the gym?",
75 "Proof?",
76 "I've gone completely mental",
77 "The rage consumes me",
78 "Go outside. Now.",
79 "Beautiful Day Sunny Morning",
80 "Fuck crypto all my homies hate crypto",
81 "stfu fedsmoker is my dad he'll eat you alive",
82 "Almost dog in hot car'd myself",
54 83
55 // by @danielsprofile on telegram 84 // by @danielsprofile on telegram
56 "Daniel Spears loves femboys", 85 "Daniel Spears loves femboys",
@@ -294,7 +323,7 @@ int main() {
294 error(1, 0, "[VX-GAMBLEGROUND] Couldn't get max terminal size for some reason"); 323 error(1, 0, "[VX-GAMBLEGROUND] Couldn't get max terminal size for some reason");
295 } 324 }
296 325
297 randomnum = randombytes_uniform(STATIC_ARRSIZE(phrases)); 326 randomnum = randombytes_uniform(STATIC_ARRSIZE(phrases) + 1);
298 327
299 WINDOW *banner = create_banner(col, randomnum); 328 WINDOW *banner = create_banner(col, randomnum);
300 init_items(items, menu_choices, STATIC_ARRSIZE(menu_choices), userfuncs); 329 init_items(items, menu_choices, STATIC_ARRSIZE(menu_choices), userfuncs);
@@ -386,11 +415,13 @@ int main() {
386int spin(void *params) { 415int spin(void *params) {
387 struct params *p = (struct params *)params; 416 struct params *p = (struct params *)params;
388 417
418 // Replace this with a proper game-over anim
389 p->numspins -= 1; 419 p->numspins -= 1;
390 if(p->numspins < 0) { 420 if(p->numspins < 0) {
391 endwin(); 421 endwin();
392 error(1, 0, "[VX-GAMBLEGROUND] You ran out of spins! Game Over!"); 422 error(1, 0, "[VX-GAMBLEGROUND] You ran out of spins! Game Over!");
393 } 423 }
424
394 char *newstr = NULL; 425 char *newstr = NULL;
395 if(asprintf(&newstr, "Spins: %d, Price: %d", p->numspins, p->price) < 0) { 426 if(asprintf(&newstr, "Spins: %d, Price: %d", p->numspins, p->price) < 0) {
396 endwin(); 427 endwin();