forked from notmario/MoreFluff
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMoreFluff.lua
1290 lines (1205 loc) · 33.9 KB
/
MoreFluff.lua
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
--- STEAMODDED HEADER
--- MOD_NAME: More Fluff
--- MOD_ID: MoreFluff
--- PREFIX: mf
--- MOD_AUTHOR: [notmario, CHECK CREDITS IN MOD TAB]
--- MOD_DESCRIPTION: Back, despite popular demand
--- BADGE_COLOR: 814BA8
--- DEPENDENCIES: [Steamodded>=1.0.0~BETA-0312b]
--- VERSION: 1.4.2
local current_mod = SMODS.current_mod
local mod_path = SMODS.current_mod.path
mf_config = SMODS.current_mod.config
local folder = string.match(mod_path, "[Mm]ods.*")
if mf_config["Jokers"] == nil then
mf_config["Jokers"] = true
end
if mf_config["Colour Cards"] == nil then
mf_config["Colour Cards"] = true
end
if mf_config["Music"] == nil then
mf_config["Music"] = true
end
if mf_config["45 Degree Rotated Tarot Cards"] == nil then
mf_config["45 Degree Rotated Tarot Cards"] = true
end
if mf_config["Achievements"] == nil then
mf_config["Achievements"] = true
end
if mf_config["Huger Joker"] == nil then
mf_config["Huger Joker"] = false
end
if mf_config["Programmer Art"] == nil then
mf_config["Programmer Art"] = false
end
if mf_config["Disable Art Credits"] == nil then
mf_config["Disable Art Credits"] = false
end
if mf_config["Superboss"] == nil then
mf_config["Superboss"] = true
end
-- if mf_config["Unfinished"] == nil then
-- mf_config["Unfinished"] = false
-- end
if Cryptid then
SMODS.load_mod_config(SMODS.Mods.Cryptid)
end
SMODS.Sound({
key = "music_colourpack",
path = "music_colourpack.ogg",
select_music_track = function()
return (
mf_config["Music"] and
(
G.pack_cards
and G.pack_cards.cards
and G.pack_cards.cards[1]
and G.pack_cards.cards[1].ability.set == "Colour"
)
)
end,
})
SMODS.Sound({
key = "music_rotarot",
path = "music_rotarot.ogg",
select_music_track = function()
return (
mf_config["Music"] and
(
G.pack_cards
and G.pack_cards.cards
and G.pack_cards.cards[1]
and G.pack_cards.cards[1].ability.set == "Rotarot"
)
)
end,
})
SMODS.Sound({
key = "music_modded",
path = "music_modded.ogg",
select_music_track = function()
return (
mf_config["Music"] and
(
(SMODS.OPENED_BOOSTER or {}).ability or {}).modded_pack
and G.booster_pack and not G.booster_pack.REMOVED
)
and 2
end,
})
SMODS.Sound({
key = "music_duelzone",
path = "music_duelzone.ogg",
sync = false,
pitch = 1,
select_music_track = function()
return
mf_config["Music"] and G.GAME.superboss_active
and 6 -- notably lower than jimball (Funny)
end,
})
-- comment out the shit you dont want
local joker_list = {
-- common
"basepaul_card",
"blahaj",
"clownfish",
"expansion_pack",
"hollow",
"jester",
"lollipop",
"luckycharm",
"monochrome",
"mspaint",
"philosophical",
"simplified",
"spiral",
"treasuremap",
"unregisteredhypercam",
-- uncommon (spire) - these should be together in the collection and in class order
"dropkick",
"bladedance",
"hyperbeam",
"blasphemy",
"dramaticentrance",
-- other uncommons
"badlegaldefence",
"broomcloset",
"clipart",
"coupon_catalogue",
"css",
"flintandsteel",
"gemstonejoker",
"globe",
"goldencarrot",
"hallofmirrors",
"impostor",
"farmmerge",
"junkmail",
"tonersoup",
"loadeddisk",
"missingjoker",
"rot_cartomancer",
"stylemeter",
"stonejokerjoker",
"talljoker",
"teacup",
"tealjoker",
"recycling",
"virtual",
"wilddrawfour",
"yuckyrat",
-- rare
"allicantdo",
"bloodpact",
"brass",
"bowlingball",
"cba",
"complexitycreep",
"fleshprison",
"hugejoker",
"hyperjimbo",
"jankman",
"mashupalbum",
"pixeljoker",
"rainbowjoker",
"rosetinted",
"the_solo",
"top10",
"widejoker",
-- legendary!!
"triangle",
"marigold",
-- 1.3
-- "selfinsert", -- cut this one for now
-- busted shit
"colorem",
"shattered_prism",
}
if not mf_config["Jokers"] then
joker_list = {}
end
function has(table, elem)
for i = 1,#table do
if table[i] == elem then
return true
end
end
return false
end
-- I don't think these are needed anymore since Talisman is a dependency but idk lol -- Jevonn
local to_big = to_big or function(num)
return num
end
local to_number = to_number or function(jevonn_was_here)
return jevonn_was_here
end
for _, v in ipairs(joker_list) do
print(v)
local joker = SMODS.load_file("jokers/"..v..".lua")()
if not joker then
goto continue
end
joker.key = v
joker.atlas = "mf_jokers"
if v == "hyperjimbo" then
joker.atlas = "mf_hyperjimbo"
end
if v == "rot_cartomancer" then
joker.atlas = "mf_rot_cartomancer"
end
if v == "shattered_prism" then
joker.atlas = "almanactriangle"
end
if not joker.pos then
joker.pos = { x = 0, y = 0 }
end
local joker_obj = SMODS.Joker(joker)
for k_, v_ in pairs(joker) do
if type(v_) == 'function' then
joker_obj[k_] = joker[k_]
end
end
::continue::
end
-- if mf_config["Unfinished"] then
-- local ortalab_jokers = {
-- -- common
-- "clintcondition",
-- "sheetsuggestion",
-- -- uncommon
-- "devilsknife",
-- -- rare
-- "twotrucks"
-- }
-- local familiar_jokers = {
-- -- common
-- "jimbojjoker"
-- }
-- if not mf_config["Jokers"] then
-- ortalab_jokers = {}
-- familiar_jokers = {}
-- end
-- for _, v in ipairs(ortalab_jokers) do
-- print(v)
-- local joker = SMODS.load_file("jokers/ortalab/"..v..".lua")()
-- if not joker then
-- goto eunitnoc
-- end
-- joker.key = v
-- joker.atlas = "mf_srekoj"
-- if not joker.pos then
-- joker.pos = { x = 0, y = 0 }
-- end
-- local joker_obj = SMODS.Joker(joker)
-- for k_, v_ in pairs(joker) do
-- if type(v_) == 'function' then
-- joker_obj[k_] = joker[k_]
-- end
-- end
-- joker_obj.jank_force_badge = {
-- name = "ffulF eroM",
-- col = G.C.GREEN
-- }
-- ::eunitnoc::
-- end
-- for _, v in ipairs(familiar_jokers) do
-- print(v)
-- local joker = SMODS.load_file("jokers/familiar/"..v..".lua")()
-- if not joker then
-- goto continue_fam
-- end
-- joker.key = v
-- joker.atlas = "mf_srekoj"
-- if not joker.pos then
-- joker.pos = { x = 0, y = 0 }
-- end
-- joker.pos.x = joker.pos.x + 10
-- local joker_obj = SMODS.Joker(joker)
-- for k_, v_ in pairs(joker) do
-- if type(v_) == 'function' then
-- joker_obj[k_] = joker[k_]
-- end
-- end
-- joker_obj.jank_force_badge = {
-- name = "Ectoplasm",
-- col = G.C.DARK_EDITION
-- }
-- ::continue_fam::
-- end
-- end
local smods_cmb = SMODS.create_mod_badges
function SMODS.create_mod_badges(obj, badges)
if not SMODS.config.no_mod_badges and obj and obj.jank_force_badge then
local mod_name = obj.jank_force_badge.name
local size = 0.9
local font = G.LANG.font
local max_text_width = 2 - 2*0.05 - 4*0.03*size - 2*0.03
local calced_text_width = 0
-- Math reproduced from DynaText:update_text
for _, c in utf8.chars(mod_name) do
local tx = font.FONT:getWidth(c)*(0.33*size)*G.TILESCALE*font.FONTSCALE + 2.7*1*G.TILESCALE*font.FONTSCALE
calced_text_width = calced_text_width + tx/(G.TILESIZE*G.TILESCALE)
end
local scale_fac =
calced_text_width > max_text_width and max_text_width/calced_text_width
or 1
badges[#badges + 1] = {n=G.UIT.R, config={align = "cm"}, nodes={
{n=G.UIT.R, config={align = "cm", colour = obj.jank_force_badge.col, r = 0.1, minw = 2, minh = 0.36, emboss = 0.05, padding = 0.03*size}, nodes={
{n=G.UIT.B, config={h=0.1,w=0.03}},
{n=G.UIT.O, config={object = DynaText({string = mod_name or 'ERROR', colours = {G.C.WHITE},float = true, shadow = true, offset_y = -0.05, silent = true, spacing = 1*scale_fac, scale = 0.33*size*scale_fac})}},
{n=G.UIT.B, config={h=0.1,w=0.03}},
}}
}}
else
smods_cmb(obj, badges)
end
end
local artpack_suffix = "_refresh.png"
if mf_config["Programmer Art"] then artpack_suffix = ".png" end
SMODS.Atlas({
key = "mf_jokers",
atlas_table = "ASSET_ATLAS",
path = "mf_jokers" .. artpack_suffix,
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_mv",
atlas_table = "ASSET_ATLAS",
path = "mf_mv.png",
px = 71,
py = 95
})
SMODS.Shader({
key="dissolvegreen",
path="dissolvegreen.fs"
})
SMODS.Atlas({
key = "mf_hyperjimbo",
atlas_table = "ASSET_ATLAS",
path = "mf_hyperjimbo.png",
px = 95,
py = 95
})
SMODS.Atlas({
key = "mf_srekoj",
atlas_table = "ASSET_ATLAS",
path = "mf_srekoj.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_rot_cartomancer",
atlas_table = "ASSET_ATLAS",
path = "mf_rot_cartomancer.png",
px = 112,
py = 112
})
SMODS.Atlas({
key = "mf_colours",
atlas_table = "ASSET_ATLAS",
path = "mf_colours" .. artpack_suffix,
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_rotarots",
atlas_table = "ASSET_ATLAS",
path = "mf_rotarots.png",
px = 107,
py = 107
})
SMODS.Atlas({
key = "mf_rotarotpacks",
atlas_table = "ASSET_ATLAS",
path = "mf_rotarotpacks.png",
px = 106,
py = 106
})
SMODS.Atlas({
key = "mf_oddities",
atlas_table = "ASSET_ATLAS",
path = "mf_oddities.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_packs",
atlas_table = "ASSET_ATLAS",
path = "mf_packs.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_vouchers",
atlas_table = "ASSET_ATLAS",
path = "mf_vouchers.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_enhancers",
atlas_table = "ASSET_ATLAS",
path = "mf_enhancers.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "modicon",
path = "mf_icon.png",
px = 32,
py = 32
})
if CardSleeves then
SMODS.Atlas({
key = "mf_sleeves",
atlas_table = "ASSET_ATLAS",
path = "mf_sleeves.png",
px = 73,
py = 95
})
end
SMODS.Atlas({
key = "tags",
path = "mf_tags.png",
px = 34,
py = 34
})
SMODS.Atlas({
key = "mf_blinds",
atlas_table = "ANIMATION_ATLAS",
path = "mf_blinds.png",
px = 34,
py = 34,
frames = 21,
})
if Jen then
SMODS.Atlas({
key = "almanactriangle",
atlas_table = "ASSET_ATLAS",
path = "almanactriangle.png",
px = 71,
py = 95
})
end
-- add a way for these to be disabled
if mf_config["Colour Cards"] then
init_cols = SMODS.load_file("other/colours.lua")()
init_cols()
else
function colour_end_of_round_effects()
end
end
-- modded pack
init_moddedpack = SMODS.load_file("other/moddedpack.lua")()
init_moddedpack()
-- add a way for these to be disabled
if mf_config["45 Degree Rotated Tarot Cards"] then
init_enhancers = SMODS.load_file("other/enhancers.lua")()
init_enhancers()
init_rotarots = SMODS.load_file("other/rotarots.lua")()
init_rotarots()
end
if mf_config["Superboss"] then
init_superboss = SMODS.load_file("other/superboss.lua")()
init_superboss()
end
-- clutch tag
SMODS.Tag({
key = "clutch",
atlas = "mf_tags",
config = {
extra = 4
},
pos = { x = 1, y = 1 },
unlocked = true,
discovered = true,
loc_vars = function(self, info_queue)
return { vars = { self.config.extra } }
end,
apply = function(self, tag, context)
if context.type == "final_scoring_step" then
SMODS.calculate_effect({xmult=4}, tag)
end
if context.type == "eval" then
tag:yep("X", G.C.RED, function()
return true
end)
tag.triggered = true
end
end,
})
-- maybe another day
-- if OddityAPI then
-- init_odds = SMODS.load_file("other/oddities.lua")()
-- init_odds()
-- end
SMODS.Back({
name = "Gros Michel Deck",
key = "grosmichel",
config = { mf_grosmichel = true },
pos = { x = 0, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
name = "Gros Michel Sleeve",
key="grosmichel",
atlas="mf_sleeves",
pos = { x = 0, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_grosmichel" then
key = self.key
else
key = self.key .. "_alt"
end
return { key = key }
end,
apply = function(self)
if self.get_current_deck_key() ~= "b_mf_grosmichel" then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_gros_michel', nil)
card:add_to_deck()
G.jokers:emplace(card)
return true
end
}))
else
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_cavendish', nil)
card:add_to_deck()
G.jokers:emplace(card)
return true
end
}))
end
end
})
end
if has(joker_list, "philosophical") then
SMODS.Back({
name = "Philosophical Deck",
key = "philosophical",
config = { mf_philosophical = true },
pos = { x = 1, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
name = "Philosophical Sleeve",
key="philosophical",
atlas="mf_sleeves",
pos = { x = 1, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_philosophical" then
key = self.key
else
key = self.key .. "_alt"
end
return { key = key }
end,
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
for i = 1,5 do
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_philosophical', nil)
card:add_to_deck()
G.jokers:emplace(card)
end
return true
end
}))
end
})
end
end
if mf_config["Colour Cards"] then
SMODS.Back({
name = "Rainbow Deck",
key = "rainbow",
config = { voucher = 'v_mf_paintroller', consumables = {'c_mf_white'} },
pos = { x = 2, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
key = "rainbow",
name = "Rainbow Sleeve",
atlas = "mf_sleeves",
pos = { x = 2, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_rainbow" then
key = self.key
self.config = { voucher = 'v_mf_paintroller', consumables = { 'c_mf_white' } }
else
key = self.key .. "_alt"
self.config = { voucher = "v_mf_colourtheory" }
end
return { key = key }
end
})
end
end
if has(joker_list, "blasphemy") then
SMODS.Back({
name = "Blasphemous Deck",
key = "blasphemy",
config = { mf_blasphemy = true },
pos = { x = 3, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
name = "Blasphemous Sleeve",
key="blasphemy",
atlas="mf_sleeves",
pos = { x = 3, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_blasphemy" then
key = self.key
else
key = self.key .. "_alt"
end
return { key = key }
end,
apply = function(self)
if self.get_current_deck_key() ~= "b_mf_blasphemy" then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_blasphemy', nil)
card:add_to_deck()
card:set_edition({negative = true})
card:set_eternal(true)
G.jokers:emplace(card)
return true
end
}))
else
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_blasphemy', nil)
card:add_to_deck()
card:set_edition({negative = true})
G.jokers:emplace(card)
return true
end
}))
end
end
})
end
end
local old_back_apply_to_run = Back.apply_to_run
function Back.apply_to_run(self)
old_back_apply_to_run(self)
if self.effect.config.mf_grosmichel then
sendDebugMessage(G.GAME.selected_sleeve)
if not (CardSleeves and (G.GAME.selected_sleeve or "sleeve_casl_none") == "sleeve_mf_grosmichel") then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_gros_michel', nil)
card:add_to_deck()
G.jokers:emplace(card)
return true
end
}))
end
end
if self.effect.config.mf_philosophical then
G.E_MANAGER:add_event(Event({
func = function()
for i = 1,5 do
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_philosophical', nil)
card:add_to_deck()
G.jokers:emplace(card)
end
return true
end
}))
end
if self.effect.config.mf_blasphemy then
if not (CardSleeves and (G.GAME.selected_sleeve or "sleeve_casl_none") == "sleeve_mf_blasphemy") then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_blasphemy', nil)
card:add_to_deck()
card:set_edition({negative = true})
card:set_eternal(true)
G.jokers:emplace(card)
return true
end
}))
end
end
end
if mf_config["Achievements"] then
SMODS.Atlas({
key = "mf_achievements",
path = "mf_achievements.png",
px = 66,
py = 66,
})
SMODS.Achievement({
key = "mf_ten_colour_rounds",
order = 1,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if
args.type == "mf_ten_colour_rounds"
then
return true
end
end,
})
SMODS.Achievement({
key = "mf_whos_paul",
order = 2,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if
args.type == "mf_trigger_paul"
then
return true
end
end,
})
SMODS.Achievement({
key = "mf_jank_it_up",
order = 3,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if args.type == "modify_jokers" then
local jankman_count = 0
if G.jokers then
for i = 1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_mf_jankman" then
jankman_count = jankman_count + 1
end
end
end
if jankman_count >= 3 then
return true
end
end
end,
})
SMODS.Achievement({
key = "mf_dropkick_ten_hands",
order = 4,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if
args.type == "mf_dropkick_ten_hands"
then
return true
end
end,
})
SMODS.Achievement({
key = "mf_negative_philosophical",
order = 5,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if args.type == "modify_jokers" then
if G.jokers then
for i = 1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_mf_philosophical" and
(G.jokers.cards[i].edition and G.jokers.cards[i].edition.negative) then
return true
end
end
end
return false
end
end,
})
SMODS.Achievement({
key = "mf_huge_and_pixel",
order = 6,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if args.type == "modify_jokers" then
local has_huge = false
local has_pixel = false
if G.jokers then
for i = 1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_mf_hugejoker" then
has_huge = true
end
if G.jokers.cards[i].config.center.key == "j_mf_pixeljoker" then
has_pixel = true
end
end
end
return has_huge and has_pixel
end
end,
})
end
-- cryptid pool additions
if Cryptid then
if Cryptid.aliases then
local aliases = {
paul = "basepaul card",
basepaul = "basepaul card",
bowling = "bowling ball",
cba = "card buffer advanced",
clipart = "clipart joker",
coupon = "coupon catalogue",
dramatic = "dramatic entrance",
expansion = "expansion pack",
carrot = "golden carrot",
hollow = "hollow joker",
huge = "huge joker",
beam = "hyper beam",
jank = "jankman",
loaded = "loaded disk",
mashup = "mashup album",
mspaint = "ms paint joker",
philosophical = "philosophical joker",
rainbow = "rainbow joker",
rose = "rose-tinted glasses",
rosetinted = "rose-tinted glasses",
["rose-tinted"] = "rose-tinted glasses",
rosetintedglasses = "rose-tinted glasses",
simplified = "simplified joker",
simplifiedjoker = "simplified joker",
style = "stylemeter",
solo = "the solo",
treasure = "treasure map",
virtual = "virtual joker",
ooffoo = "00FF00",
lime = "00FF00",
toner = "i sip toner soup",
tonersoup = "i sip toner soup",
isiptonersoup = "i sip toner soup",
junkmail = "junk mail",
flintandsteel = "flint and steel",
firestarter = "flint and steel",
peakcinema = "flint and steel",
gemstone = "gemstone joker",
missingtexture = "missing texture",
rot_cartomancer = "cartomancer!",
stonejokerjoker = "stonejoker joker",
sjj = "stonejoker joker",
tall = "tall joker",
teal = "teal joker",
yucky = "yucky rat",
judas = "all i can't do",
brass = "brass joker",
complexitycreep = "complexity creep",
averagebalatromod = "complexity creep",
topten = "top 10 jokers from one through ten",
clickbait = "top 10 jokers from one through ten",
wide = "wide joker",
}
for k, v in pairs(aliases) do
Cryptid.aliases[k] = v
end
end
end
--- hooks
SMODS.DrawStep({
key = "spire_mv",
order = 25,
func = function(self)
if not G.mf_mv_spr then return nil end
if mf_config["Programmer Art"] then return nil end
local my_key = self.config.center.key
if
my_key ~= "j_mf_dramaticentrance" and
my_key ~= "j_mf_dropkick" and
my_key ~= "j_mf_bladedance" and
my_key ~= "j_mf_hyperbeam" and
my_key ~= "j_mf_blasphemy"
then
return nil
end
G.mf_mv_spr.role.draw_major = self
local cost = math.floor(
self.cost +
(self.ability.extra_value or 0) * 2 +
0.5
)
local base_cost = ({
j_mf_dramaticentrance = 6,
j_mf_dropkick = 8,
j_mf_bladedance = 8,
j_mf_hyperbeam = 8,
j_mf_blasphemy = 5,
})[my_key]
local shader = "dissolve"
if cost ~= base_cost then shader = "mf_dissolvegreen" end
if cost > 99 then
G.mf_mv_spr:set_sprite_pos({x=0, y=3})
G.mf_mv_spr:draw_shader(shader, nil, nil, nil, self.children.center)
elseif cost <= 9 then
G.mf_mv_spr:set_sprite_pos({x=cost, y=0})
G.mf_mv_spr:draw_shader(shader, nil, nil, nil, self.children.center)
else
G.mf_mv_spr:set_sprite_pos({x=math.floor(cost/10), y=1})
G.mf_mv_spr:draw_shader(shader, nil, nil, nil, self.children.center)
G.mf_mv_spr:set_sprite_pos({x=cost%10, y=2})
G.mf_mv_spr:draw_shader(shader, nil, nil, nil, self.children.center)
end
end,
conditions = { vortex = false, facing = "front" },