-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathchallenges.lua
More file actions
567 lines (544 loc) · 11.5 KB
/
challenges.lua
File metadata and controls
567 lines (544 loc) · 11.5 KB
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
SMODS.Challenge {
key = "QualatroOnly",
loc_txt = {
key = "QualatroOnly",
name = 'Qualatro Only',
},
rules = {
custom = {
{id = 'qualatro_only'},
{id = 'bypass_unlocks'},
},
modifiers = {
}
},
jokers = {
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {},
banned_tags = {
},
banned_other = {
}
}
}
SMODS.Challenge {
key = "Stingy",
loc_txt = {
key = "stingy",
name = "Stingy's Challenge",
},
rules = {
custom = {
-- {id = 'qualatro_only'},
{id = 'no_reward'},
{id = 'no_extra_hand_money'},
{id = 'no_interest'}
},
modifiers = {
-- {id = 'joker_slots', value = 8},
}
},
jokers = {
{ id = 'j_qualatro_stingy', eternal = true },
{ id = 'j_qualatro_stingy', eternal = true },
{ id = 'j_qualatro_stingy', eternal = true },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
{id = 'v_seed_money'},
{id = 'v_money_tree'},
{id = 'j_to_the_moon'},
{id = 'j_rocket'},
{id = 'j_golden'},
{id = 'j_satellite'},
{id = 'j_qualatro_haltmann'},
{id = 'j_qualatro_tax_fraud'},
},
banned_tags = {},
banned_other = {}
}
}
SMODS.Challenge {
key = "traffic_jam",
loc_txt = {
key = "traffic_jam",
name = "Traffic Jam",
},
rules = {
custom = {
},
modifiers = {
-- {id = 'joker_slots', value = 8},
}
},
jokers = {
{ id = 'j_ride_the_bus', eternal = true },
{ id = 'j_qualatro_ride_the_raft', eternal = true },
{ id = 'j_qualatro_crazy_bus', eternal = true },
{ id = 'j_qualatro_crazy_bus', eternal = true },
{ id = 'j_qualatro_crazy_bus', eternal = true },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
{id = 'j_shortcut'},
},
banned_tags = {},
banned_other = {
{id = 'bl_final_leaf', type = 'blind'}
}
}
}
SMODS.Challenge {
key = "jury_recital",
loc_txt = {
key = "jury_recital",
name = "Jury Recital",
},
rules = {
custom = {
{id = 'no_shop_jokers'},
},
modifiers = {
{id = 'joker_slots', value = 3},
}
},
jokers = {
{ id = 'j_qualatro_jazz_cats_shades' },
{ id = 'j_qualatro_jazz_cats_tom' },
{ id = 'j_qualatro_jazz_cats_sphelonious' },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
{id = 'c_judgement'},
{id = 'c_wraith'},
{id = 'c_soul'},
{id = 'v_antimatter'},
{id = 'p_buffoon_normal_1', ids = {
'p_buffoon_normal_1','p_buffoon_normal_2','p_buffoon_jumbo_1','p_buffoon_mega_1',
}},
},
banned_tags = {
{id = 'tag_rare'},
{id = 'tag_uncommon'},
{id = 'tag_holo'},
{id = 'tag_polychrome'},
{id = 'tag_negative'},
{id = 'tag_foil'},
{id = 'tag_buffoon'},
{id = 'tag_top_up'},
},
banned_other = {
{id = 'bl_final_leaf', type = 'blind'}
}
}
}
SMODS.Challenge {
key = "grand_theft_wario",
loc_txt = {
key = "grand_theft_wario",
name = "Grand Theft Wario",
},
rules = {
custom = {
},
modifiers = {
{id = 'dollars', value = 1},
}
},
jokers = {
{ id = 'j_qualatro_limited_liability_partnership', eternal = true, edition = 'negative' },
{ id = 'j_qualatro_limited_liability_partnership', eternal = true, edition = 'negative' },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
},
banned_tags = {
},
banned_other = {
}
}
}
SMODS.Challenge {
key = "common_rule",
loc_txt = {
key = "common_rule",
name = "Trial Version",
},
rules = {
custom = {
{id = 'common_rule'},
{id = 'no_reward'},
{id = 'no_extra_hand_money'},
},
modifiers = {
{id = 'dollars', value = 0},
}
},
jokers = {
{ id = 'j_qualatro_hypercam' },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
{id = 'c_wraith'},
{id = 'c_soul'},
},
banned_tags = {
{id = 'tag_rare'},
{id = 'tag_uncommon'},
},
banned_other = {
}
}
}
G.E_MANAGER:add_event(Event({
func = function()
local not_common = {}
local qualatro_only_banned_cards = {}
for k, v in pairs(G.P_CENTERS) do
if v.set == "Joker" and v.rarity ~= 1 then
not_common[#not_common+1] = {id=k}
end
if v.set == "Joker" and not string.find(k, 'j_qualatro_') then
qualatro_only_banned_cards[#qualatro_only_banned_cards+1] = {id=k}
end
end
SMODS.Challenge.obj_table.c_qualatro_common_rule.restrictions.banned_cards = not_common
SMODS.Challenge.obj_table.c_qualatro_QualatroOnly.restrictions.banned_cards = qualatro_only_banned_cards
return true
end
}))
local _super_poll_rarity = SMODS.poll_rarity
function SMODS.poll_rarity(_pool_key, _rand_key)
local ret = nil
if G.GAME.modifiers.common_rule and _pool_key == "Joker" then
ret = 1
else
ret = _super_poll_rarity(_pool_key, _rand_key)
end
return ret
end
SMODS.Challenge {
key = "qualatro_seven",
loc_txt = {
key = "qualatro_seven",
name = "7",
},
rules = {
custom = {
{id = 'qualatro_seven_challenge'},
{id = 'seven_1'},
{id = 'seven_2'},
{id = 'seven_3'},
{id = 'set_eternal_ante', value = 7},
{id = 'discard_cost', value = 7},
{id = 'seven_4'},
{id = 'seven_5'},
--{id = 'seven_6'},
{id = 'seven_7'},
{id = 'win_ante', value = 7},
--{id = 'seven_10'},
},
modifiers = {
{id = 'dollars', value = 7},
{id = 'discards', value = 7},
{id = 'hands', value = 7},
{id = 'reroll_cost', value = 7},
{id = 'joker_slots', value = 7},
{id = 'consumable_slots', value = 7},
{id = 'hand_size', value = 7},
}
},
jokers = {
},
consumeables = {
},
vouchers = {
},
deck = {
cards = {{s='D',r='7',},{s='D',r='7',},{s='H',r='7',},{s='H',r='7',},{s='C',r='7',},{s='C',r='7',},{s='S',r='7',}},
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
},
banned_tags = {
},
banned_other = {
{id = 'bl_mark', type = 'blind'},
{id = 'bl_plant', type = 'blind'},
}
}
}
SMODS.Challenge {
key = "brainrot",
loc_txt = {
key = "brainrot",
name = "Brainrot",
},
rules = {
custom = {
{id = 'qualatro_brainrot'},
{id = 'qualatro_brainrot_2'},
{id = 'qualatro_brainrot_3'},
},
modifiers = {
}
},
jokers = {
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
},
banned_tags = {
{id = 'tag_rare'},
{id = 'tag_uncommon'},
{id = 'tag_holo'},
{id = 'tag_polychrome'},
{id = 'tag_negative'},
{id = 'tag_foil'},
{id = 'tag_buffoon'},
{id = 'tag_top_up'},
},
banned_other = {
}
}
}
local _super_create_card = create_card
--NOTE: (Ahmayk) forcing brainrot jokers only accounts for shop jokers and buffon packs
--tarot cards and other means of obtaining jokers remain legal
--banned joker tags though as that causes the joker to appear in the shop which breaks the rules
function create_card(_type, area, legendary, _rarity, skip_materialize, soulable, forced_key, key_append)
if
G.GAME.modifiers.qualatro_brainrot and
(key_append == "sho" or key_append == "buf") and
_type == "Joker"
then
forced_key = pseudorandom_element({"j_qualatro_pomni", "j_qualatro_boykisser", "j_qualatro_gegagedigedagedago"}, pseudoseed("brainrot_challenge"))
end
local card = _super_create_card(_type, area, legendary, _rarity, skip_materialize, soulable, forced_key, key_append)
return card
end
SMODS.Challenge {
key = "dancing_mad",
loc_txt = {
key = "dancing_mad",
name = "Jimbo's Domain",
},
rules = {
custom = {
{id = 'qualatro_dancing_mad'},
{id = 'win_ante', value = 4},
},
modifiers = {
}
},
jokers = {
{id = 'j_qualatro_dancing_mad', eternal = true},
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
},
banned_tags = {
},
banned_other = {
}
}
}
SMODS.Challenge {
key = "kfad",
loc_txt = {
key = "kfad",
name = "KFAD Afterparty",
},
rules = {
custom = {
{id = 'kfad'},
{id = 'scaling', value = 7},
{id = 'kfad_editions'},
},
modifiers = {
}
},
jokers = {
{ id = 'j_qualatro_king_for_eternity', edition = 'holo' },
{ id = 'j_qualatro_djpk', edition = 'polychrome' },
},
consumeables = {
},
vouchers = {
},
deck = {
cards = {{s='D',r='2',},{s='D',r='3',},{s='D',r='4',},{s='D',r='5',},{s='D',r='6',},{s='D',r='7',},{s='D',r='8',},{s='D',r='9',},{s='D',r='T',},{s='D',r='J',},{s='D',r='Q',},{s='D',r='A',},{s='C',r='2',},{s='C',r='3',},{s='C',r='4',},{s='C',r='5',},{s='C',r='6',},{s='C',r='7',},{s='C',r='8',},{s='C',r='9',},{s='C',r='T',},{s='C',r='J',},{s='C',r='Q',},{s='C',r='A',},{s='H',r='2',},{s='H',r='3',},{s='H',r='4',},{s='H',r='5',},{s='H',r='6',},{s='H',r='7',},{s='H',r='8',},{s='H',r='9',},{s='H',r='T',},{s='H',r='J',},{s='H',r='Q',},{s='H',r='A',},{s='S',r='2',},{s='S',r='3',},{s='S',r='4',},{s='S',r='5',},{s='S',r='6',},{s='S',r='7',},{s='S',r='8',},{s='S',r='9',},{s='S',r='T',},{s='S',r='J',},{s='S',r='Q',},{s='S',r='A',},},
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
{id = 'c_wheel_of_fortune'},
{id = 'c_ectoplasm'},
{id = 'c_ankh'},
{id = 'c_hex'},
{id = 'v_hone'},
{id = 'v_glow_up'},
},
banned_tags = {
{id = 'tag_negative'},
},
banned_other = {
}
}
}
local _super_poll_edition = poll_edition
function poll_edition(_key, _mod, _no_neg, _guaranteed, _options)
if G.GAME and G.GAME.modifiers.kfad then
_guaranteed = true
_no_neg = true
end
local ret = _super_poll_edition(_key, _mod, _no_neg, _guaranteed, _options)
return ret
end
--NOTE: (Ahmayk) this only appears if you start the app with a profile
--that has missingno unlocked, and does not change if you switch to a profile
--which doesn't and vice versa. normally that'd be bad but that's perfectly
--esoteric for missingno lol
G.E_MANAGER:add_event(Event({
func = function()
local missingno = G.P_CENTERS['j_qualatro_missingno'];
if missingno and missingno.discovered then
SMODS.Challenge {
key = "missingno",
loc_txt = {
key = "missingno",
name = "[UI ERROR]",
},
rules = {
custom = {
{id = "missingno"}
},
modifiers = {
}
},
jokers = {
{ id = 'j_qualatro_missingno', eternal = true },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
},
banned_tags = {
},
banned_other = {
}
}
}
if G.PROFILES[G.SETTINGS.profile].challenge_progress.completed['c_missingno'] then
SMODS.Challenge {
key = "missingno_oops",
loc_txt = {
key = "missingno_oops",
name = "PLEASE STOP",
},
rules = {
custom = {
{id = "missingno_oops_1"},
{id = "missingno_oops_2"},
{id = "missingno_oops_3"},
{id = "missingno_oops_4"},
{id = "missingno_oops_4"},
{id = "missingno_oops_4"},
{id = "missingno_oops_4"},
{id = "missingno_oops_4"},
},
modifiers = {
}
},
jokers = {
{ id = 'j_oops', eternal = true, edition = 'negative' },
{ id = 'j_oops', eternal = true, edition = 'negative' },
{ id = 'j_qualatro_missingno', eternal = true },
{ id = 'j_oops', eternal = true, edition = 'negative' },
{ id = 'j_oops', eternal = true, edition = 'negative' },
},
consumeables = {
},
vouchers = {
},
deck = {
type = 'Challenge Deck'
},
restrictions = {
banned_cards = {
},
banned_tags = {
},
banned_other = {
}
}
}
end
end
return true
end
}))