-
Notifications
You must be signed in to change notification settings - Fork 2
/
Globals.gd
461 lines (442 loc) · 10.9 KB
/
Globals.gd
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
extends Node
var score = 0
var round_times = [30, 25, 20, 15, 10]
var round_time = round_times[0]
var current_round = 1 setget set_round
var current_day = 1
var rounds_per_day = 3
var total_days = 5
var cauldron_contents = []
var ingredients = [
{
"name":"Hode",
"type": "head",
"hint": "A rune dedicated to the head and all things therein.",
"image": "rune_head.png"
},
{
"name":"Sjel",
"type": "heart",
"hint": "For matters of the heart. ",
"image": "rune_heart.png"
},
{
"name":"Gebo",
"type": "limb",
"hint": "A rune to focus on arms, legs, and limb. ",
"image": "rune_limbs.png"
},
{
"name": "Gloves",
"type": "limbs",
"hint": "Like socks for your hands",
"image": "gloves.png"
},
{
"name":"Huske",
"type": "human",
"hint": "The whole corporeal husk. ",
"image": "rune_human.png"
},
{
"name":"Mirror",
"type": "opposite",
"hint": "A common curse tool, gets the opposite effect of ingredients ",
"image": "mirror.png"
},
{
"name":"Gold Coins",
"type": "lucky",
"hint": "Lucky coins found in the street.",
"image": "coins.png"
},
{
"name":"Bat",
"type": "blindness",
"hint": "Blind as a bat, they say.",
"image": "bat.png"
},
{
"name":"Fish",
"type": "suffocation",
"hint": "Do not to choke and suffocate on these bones!",
"image": "fish.png"
},
{
"name":"Choke Blossom",
"type": "suffocation",
"hint": "This blossom induces suffocation.",
"image": "purple_flower.png"
},
{
"name":"Water",
"type": "water",
"hint": "*drip drip drip* ",
"image": "water.png"
},
{
"name":"Squid Ink",
"type": "blindness",
"hint": "So dark you can't even see through it. ",
"image": "inkbottle.png"
},
{
"name":"Chicken",
"type": "clumsy",
"hint": "A notoriously clumsy chicken.",
"image": "chicken.png"
},
{
"name":"Mushroom",
"type": "foolish",
"hint": "A fun (but foolish) guy.",
"image": "mushroom.png"
},
{
"name":"Queso",
"type": "smelly",
"hint": "Smells really funky.",
"image": "cheese.png"
},
{
"name":"Bees",
"type": "bees",
"hint": "How did a bee get in there?",
"image": "bees.png"
},
{
"name":"Heart",
"type": "heart",
"hint": "Doki doki <3",
"image": "heart.png"
},
{
"name":"Rock",
"type": "stone",
"hint": "Solid as a rock!",
"image": "rock.png"
},
{
"name":"Egg",
"type": "life",
"hint": "The beginning of a new life.",
"image": "egg.png"
},
{
"name":"Apple",
"type": "food",
"hint": "Om nom nom.",
"image": "apple.png"
},
{
"name":"Tree",
"type": "life",
"hint": "Trees provide life sustaining oxygen.",
"image": "tree.png"
},
{
"name":"Lucky Carrot",
"type": "lucky",
"hint": "That's Mochi's lucky carrot! ",
"image": "carrot.png"
},
{
"name":"Mouse",
"type": "clumsy",
"hint": "A small and clumsy creature. ",
"image": "mouse.png"
},
{
"name":"Ugly Stick",
"type": "ugly",
"hint": "Try to avoid getting hit by it like jp00p did",
"image": "stick.png"
},
{
"name": "Stump",
"type": "foolish",
"hint": "It's said someone is dumb as a stump.",
"image": "stump.png"
},
{
"name":"Anvil",
"type": "strength",
"hint": "Do u even lift bro?",
"image": "anvil.png"
},
{
"name":"Flower of Life",
"type": "life",
"hint": "This flower is thought to revive the dead.",
"image": "white_flower.png"
},
{
"name":"Pear",
"type": "food",
"hint": "Yum.",
"image": "pear.png"
},
{
"name":"Hammer",
"type": "hammer",
"hint": "Just a hammer. Can't touch this",
"image": "hammer.png"
},
{
"name":"Necklace",
"type": "necklace",
"hint": "Something your mum might wear.",
"image": "necklace.png"
},
{
"name":"Hat",
"type": "head",
"hint": "A hat for your head.",
"image": "hat.png"
},
{
"name":"Sack",
"type": "bag",
"hint": "A sack to put things in.",
"image": "sack.png"
},
{
"name":"Belt",
"type": "belt",
"hint": "Used to hold up pants.",
"image": "belt.png"
},
{
"name":"Helmet",
"type": "head",
"hint": "It protects the skull.",
"image": "helmet.png"
},
{
"name":"Cactus",
"type": "pain",
"hint": "Ouch!",
"image": "cactus.png"
},
{
"name":"Roast Chicken",
"type": "food",
"hint": "I'd eat it. ",
"image": "roast_chicken.png"
}
]
var requests = [
{
"name":"Curse of Terrible Luck",
"request_text": "Craft me a curse of terrible luck.",
"required": ["lucky", "opposite", "human"]
},
{
"name":"Curse of Suspiciously Good Luck",
"request_text": "I need to make someone very, very lucky. Too lucky.",
"required": ["lucky", "lucky", "human"]
},
{
"name":"Curse of Instant Death",
"request_text": "...A humans's life must end.",
"required": ["life", "opposite", "human"]
},
{
"name":"Curse of Utter Darkness",
"request_text": "Make me something to cause complete blindness. It must be total darkness!",
"required": ["blindness", "blindness", "head"]
},
{
"name":"Curse of the Dumbdumb",
"request_text": "I need to make my nemisis dumb as a rock.",
"required": ["foolish", "stone", "head"]
},
{
"name":"Curse of Posiden",
"request_text": "Craft me a curse to drown my foes.",
"required": ["water", "suffocation", "human"]
},
{
"name":"Spontaneous Combustion",
"request_text": "Make my foe go up in flames.",
"required": ["water", "opposite", "human"]
},
{
"name":"Curse of Always Hitting Your Thumb with a Hammer",
"request_text": "I need to make my carpenter suffer.",
"required": ["clumsy", "hammer", "limb"]
},
{
"name":"Lungs Full of Bees",
"request_text": "I must know what happens if a human was full of bees!",
"required": ["bees", "suffocation", "human"]
},
{
"name":"Curse of Infatuation",
"request_text": "...I must make someone suffer a triple heartbreak.",
"required": ["heart", "heart", "heart"]
},
{
"name":"Curse of Loathing",
"request_text": "Make me a curse to fill a human full of hate.",
"required": ["heart", "opposite", "human"]
},
{
"name":"Curse of Ugly Mugly",
"request_text": "I need a curse to make a human ugly and smelly.",
"required": ["ugly", "smelly", "human"]
},
{
"name":"Medusa's Curse",
"request_text": "I must turn my human enemy to stone until they choke.",
"required": ["stone", "suffocation", "human"]
},
{
"name":"Curse of Happy Noodle Boy",
"request_text": "Craft me a curse to make a human weak.",
"required": ["strength", "opposite", "human"]
},
{
"name":"Curse of Stinky Feet",
"request_text": "I require a curse that make your feet extra smelly.",
"required": ["smelly", "smelly", "limb"]
},
{
"name":"Curse of Unbearable Beauty",
"request_text": "Make my face so beautiful no one dares to speak to me!",
"required": ["ugly", "opposite", "head"]
},
{
"name":"Curse of Unending Hunger",
"request_text": "Craft me something to induce starvation in a human.",
"required": ["food", "opposite", "human"]
},
{
"name":"Curse of Face Stinging Bees",
"request_text": "Cover my nemisis' face in many bee stings, please!",
"required": ["bees", "bees", "head"]
},
{
"name":"Curse of Perpetual Choking",
"request_text": "Give me a curse that will cause a human to choke on their meal.",
"required": ["suffocation", "food", "human"]
},
{
"name":"Cursed Hat",
"request_text": "Make me a hat that makes the wearer double-ugly.",
"required": ["ugly", "ugly", "head"]
},
{
"name":"Gloves of Clumsiness",
"request_text": "Make me some gloves that make the wearer clumsy in both hands.",
"required": ["clumsy", "limb", "limb"]
},
{
"name":"Hat of Halatosis",
"request_text": "Make me a hat to give the wearer smelly, smelly, breath.",
"required": ["smelly", "smelly", "head"]
},
{
"name":"Helmet of Weakness",
"request_text": "Make me a helmet that causes weakness.",
"required": ["head", "strength", "opposite"]
},
{
"name":"Gloves of Inedible Food",
"request_text": "Craft me some gloves that make the wearer's food turn to stone.",
"required": ["limb", "food", "stone"]
},
{
"name":"Bag of Mighty Bees",
"request_text": "Craft me a bag full of mighty bees!",
"required": ["strength", "bees", "bag"]
},
{
"name":"Belt from the Bog of Stench",
"request_text": "I need a belt that will make a human very, very smelly.",
"required": ["smelly", "smelly", "human"]
},
{
"name":"Curse of Torment",
"request_text": "I need to torment someone. Give me a stinky and painful curse for humans.",
"required": ["smelly", "pain", "human"]
},
{
"name":"Cursed Hammer Toes",
"request_text": "I require a hammer which gives the user stinky legs.",
"required": ["smelly", "hammer", "limb"]
}
]
var customer_images = ["customer1.png", "customer_0.png", "customer_1.png", "customer_2.png", "customer_3.png", "customer_4.png", "customer_5.png", "customer_6.png", "customer_7.png"]
var customer_colors = [Color("#c7432a"), Color("#ffa114"), Color("#fff769"), Color("#4a6b1c"), Color("#d2ff40")]
var customer_responses_good = [
"This is exactly what I wanted.",
"Excellent.",
"Sick work dude.",
"This will work.",
"Thank you, here is the money payment.",
"Beautifully done.",
"Thank you.",
"Wicked good.",
"*hastily grabs the curse and scurries away*",
"Thanks buddy.",
"*bows and vanishes*",
"Thank you in all cruelness."
]
var customer_responses_bad = [
"I'm not paying for that.",
"You ninny! That's not what I wanted.",
"What were you thinking?",
"Ugh, I'll come back later.",
"It's all wrong.",
"It's raw! YOU DONKEY",
"I shan't pay for subpar curses.",
"*farts and leaves*",
"*hisses and runs away*",
"Aw man, that's not it.",
"*scowls and vanishes*",
"Ugh, are you new?",
"Wow this is terrible! And not in a good way!"
]
var customer_responses_slow = [
"Slowest curse creator ever!",
"Um, can I talk to your manager?",
"Wow. Learn to make curses."
]
var customer_happy_emotes = [
"res://Customers/emote_faceHappy.png",
"res://Customers/emote_heart.png"
]
var customer_sad_emotes = [
"res://Customers/emote_cross.png",
"res://Customers/emote_faceAngry.png",
"res://Customers/emote_faceSad.png"
]
var customer_confused_emote = "res://Customers/emote_question.png"
func _ready():
randomize()
ingredients.shuffle()
requests.shuffle()
customer_images.shuffle()
var cursor_image = load("res://UI/cursor.png")
Input.set_custom_mouse_cursor(cursor_image,
Input.CURSOR_ARROW,
Vector2(0, 0))
func add_to_cauldron(ing):
cauldron_contents.append(ing)
func empty_cauldron():
cauldron_contents = []
func set_round(val):
current_round = val
if val > rounds_per_day:
current_day += 1
current_round = 1
if current_day >= 6:
end_game()
else:
round_time = round_times[current_day-1]
func end_game():
get_tree().change_scene("res://SubmitHighScore.tscn")
func _input(event):
if event.is_action_pressed("fullscreen"):
OS.window_fullscreen = !OS.window_fullscreen