Skip to content

Commit dfaffd6

Browse files
committed
core stuff
1 parent a55e066 commit dfaffd6

File tree

14 files changed

+26
-253
lines changed

14 files changed

+26
-253
lines changed

items/code.lua

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,9 +1221,7 @@ local rework = {
12211221
return #cards == 1
12221222
and not cards[1].ability.eternal
12231223
and cards[1].ability.name
1224-
~= ("cry-meteor" or "cry-exoplanet" or "cry-stardust" or "cry_cursed" or ("Diet Cola" or Card.get_gameset(
1225-
card
1226-
) == "madness"))
1224+
~= ("cry-meteor" or "cry-exoplanet" or "cry-stardust" or "cry_cursed" or "Diet Cola")
12271225
end,
12281226
use = function(self, card, area, copier)
12291227
local cards = Cryptid.get_highlighted_cards({ G.jokers }, card, 1, 1, function(card)
@@ -2125,7 +2123,6 @@ local hook = {
21252123
gameset_config = {
21262124
modest = { disabled = true },
21272125
mainline = { disabled = false },
2128-
madness = { disabled = false },
21292126
experimental = { disabled = false },
21302127
},
21312128
dependencies = {
@@ -4851,7 +4848,7 @@ local copypaste = {
48514848
) or 1,
48524849
card and card.ability.extra.odds or 2,
48534850
}, -- this effectively prevents a copypaste from ever initially misprinting at above 50% odds. still allows rigging/oops
4854-
key = Cryptid.gameset_loc(self, { madness = "madness", exp_modest = "modest" }),
4851+
key = Cryptid.gameset_loc(self, { exp_modest = "modest" }),
48554852
}
48564853
end,
48574854
atlas = "atlasepic",
@@ -4913,9 +4910,7 @@ local copypaste = {
49134910
nil,
49144911
{ message = localize("k_copied_ex") }
49154912
)
4916-
if Card.get_gameset(card) ~= "madness" then
4917-
card.ability.extra.ckt = true
4918-
end
4913+
card.ability.extra.ckt = true
49194914
end
49204915
end
49214916
elseif

items/deck.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,6 @@ local antimatter = {
668668
"set_cry_deck",
669669
},
670670
},
671-
loc_vars = function(self, info_queue, center)
672-
return { key = Cryptid.gameset_loc(self, { mainline = "balanced", modest = "balanced" }) }
673-
end,
674671
name = "cry-Antimatter",
675672
order = 76,
676673
key = "antimatter",
@@ -687,17 +684,17 @@ local antimatter = {
687684
pos = { x = 2, y = 0 },
688685
calculate = function(self, back, context)
689686
if context.context ~= "final_scoring_step" then
690-
Cryptid.antimatter_trigger(self, context, Cryptid.gameset(G.P_CENTERS.b_cry_antimatter) == "madness")
687+
Cryptid.antimatter_trigger(self, context, false)
691688
else
692689
return Cryptid.antimatter_trigger_final_scoring(
693690
self,
694691
context,
695-
Cryptid.gameset(G.P_CENTERS.b_cry_antimatter) == "madness"
692+
false
696693
)
697694
end
698695
end,
699696
apply = function(self)
700-
Cryptid.antimatter_apply(Cryptid.gameset(G.P_CENTERS.b_cry_antimatter) == "madness")
697+
Cryptid.antimatter_apply(false)
701698
end,
702699
atlas = "atlasdeck",
703700
init = function(self)

items/epic.lua

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
gameset_config = {
33
modest = {extra = {chips = 1}, center = {rarity = 1, blueprint_compat = false, immutable = true, no_dbl = false}},
44
mainline = {center = {rarity = 2, blueprint_compat = true, immutable = true, no_dbl = true}},
5-
madness = {extra = {chips = 100}, center = {rarity = 3}},
65
cryptid_in_2025 = {extra = {chips = 1e308}, center = {rarity = "cry_exotic"}},
76
},
87
-- Card.get_gameset(card) ~= "modest"
@@ -1780,18 +1779,14 @@ local altgoogol = {
17801779
copies = 1,
17811780
},
17821781
mainline = { copies = 2 },
1783-
madness = {
1784-
center = { blueprint_compat = true },
1785-
copies = 2,
1786-
},
17871782
},
17881783
loc_vars = function(self, info_queue, center)
17891784
return { key = Cryptid.gameset_loc(self, { modest = "balanced" }), vars = { center.ability.copies } }
17901785
end,
17911786
calculate = function(self, card, context)
17921787
local gameset = Card.get_gameset(card)
17931788
if
1794-
(context.selling_self and not context.retrigger_joker and (gameset == "madness" or not context.blueprint))
1789+
(context.selling_self and not context.retrigger_joker and not context.blueprint)
17951790
or context.forcetrigger
17961791
then
17971792
local jokers = {}
@@ -2370,8 +2365,7 @@ local demicolon = {
23702365
object_type = "Joker",
23712366
gameset_config = {
23722367
modest = { disabled = true },
2373-
mainline = { disabled = true },
2374-
madness = { disabled = false },
2368+
mainline = { disabled = false },
23752369
experimental = { disabled = false },
23762370
},
23772371
dependencies = {

items/misc_joker.lua

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8596,7 +8596,7 @@ local astral_bottle = {
85968596
},
85978597
},
85988598
name = "cry-astral_bottle",
8599-
extra_gamesets = { "exp_modest", "exp_mainline", "exp_madness" },
8599+
extra_gamesets = { "exp_modest", "exp_mainline"},
86008600
key = "astral_bottle",
86018601
eternal_compat = false,
86028602
pos = { x = 7, y = 0 },
@@ -8610,23 +8610,11 @@ local astral_bottle = {
86108610
if not center.edition or (center.edition and not center.edition.cry_astral) then
86118611
info_queue[#info_queue + 1] = G.P_CENTERS.e_cry_astral
86128612
end
8613-
return {
8614-
key = Cryptid.gameset_loc(
8615-
self,
8616-
{ exp_modest = "mainline", exp_mainline = "mainline", exp_madness = "madness" }
8617-
),
8618-
}
86198613
end,
86208614
calculate = function(self, card, context)
86218615
if (context.selling_self and not context.retrigger_joker and not context.blueprint) or context.forcetrigger then
86228616
local g = Cryptid.gameset(card)
86238617
local effect = { { astral = true, perishable = true } }
8624-
if g == "exp_modest" or g == "exp_mainline" then
8625-
effect = { { astral = true }, { perishable = true } }
8626-
end
8627-
if g == "exp_madness" then
8628-
effect = { { astral = true } }
8629-
end
86308618
local jokers = {}
86318619
for i = 1, #G.jokers.cards do
86328620
if G.jokers.cards[i] ~= card and not G.jokers.cards[i].debuff and not G.jokers.cards[i].edition then

items/sleeve.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,6 @@ if CardSleeves then
531531
then
532532
self.config.cry_spooky = true
533533
end
534-
535-
return { key = Cryptid.gameset_loc(self, { mainline = "balanced", modest = "balanced" }) }
536534
end,
537535
calculate = function(self, sleeve, context)
538536
if context.create_card and context.card then

lib/content.lua

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -592,37 +592,21 @@ SMODS.Sound({
592592
volume = 0.7,
593593
sync = {
594594
cry_music_modest = true,
595-
cry_music_madness = true,
596595
},
597596
pitch = 1,
598597
select_music_track = function()
599598
return G.STAGE == G.STAGES.MAIN_MENU
600-
and (G.PROFILES[G.SETTINGS.profile].cry_gameset and G.PROFILES[G.SETTINGS.profile].cry_gameset == "mainline" or G.selectedGameset and G.selectedGameset ~= "modest" and G.selectedGameset ~= "madness")
601-
and Cryptid_config.Cryptid.alt_bg_music
602-
end,
603-
})
604-
SMODS.Sound({
605-
key = "music_madness",
606-
path = "music_madness.ogg",
607-
volume = 0.7,
608-
sync = {
609-
cry_music_modest = true,
610-
cry_music_mainline = true,
611-
},
612-
pitch = 1,
613-
select_music_track = function()
614-
return G.STAGE == G.STAGES.MAIN_MENU
615-
and (G.PROFILES[G.SETTINGS.profile].cry_gameset and G.PROFILES[G.SETTINGS.profile].cry_gameset == "madness" or G.selectedGameset == "madness")
599+
and (G.PROFILES[G.SETTINGS.profile].cry_gameset and G.PROFILES[G.SETTINGS.profile].cry_gameset == "mainline" or G.selectedGameset and G.selectedGameset ~= "modest")
616600
and Cryptid_config.Cryptid.alt_bg_music
617601
end,
618602
})
603+
619604
SMODS.Sound({
620605
key = "music_modest",
621606
path = "music_modest.ogg",
622607
volume = 0.7,
623608
sync = {
624609
cry_music_mainline = true,
625-
cry_music_madness = true,
626610
},
627611
pitch = 1,
628612
select_music_track = function()

lib/gameset.lua

Lines changed: 9 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function Game:update(dt)
2727
gu(self, dt)
2828
if not G.PROFILES[G.SETTINGS.profile].cry_intro_complete then
2929
G.FUNCS.cry_intro_controller()
30+
if G.OVERLAY_TUTORIAL then
31+
G.E_MANAGER:update(dt, true)
32+
end
3033
end
3134
end
3235

@@ -176,12 +179,6 @@ G.FUNCS.cry_intro_part = function(_part)
176179
{ shader = "dissolve", shadow_height = 0.05 },
177180
{ shader = "dissolve" },
178181
})
179-
local madnessSprite = Sprite(0, 0, 1, 1, G.ASSET_ATLAS["cry_gameset"], { x = 2, y = 0 })
180-
madnessSprite:define_draw_steps({
181-
{ shader = "dissolve", shadow_height = 0.05 },
182-
{ shader = "dissolve" },
183-
})
184-
--TODO: localize
185182
G.modestBtn = create_UIBox_character_button_with_sprite({
186183
sprite = modestSprite,
187184
button = localize("cry_gameset_modest"),
@@ -198,34 +195,16 @@ G.FUNCS.cry_intro_part = function(_part)
198195
colour = G.C.RED,
199196
maxw = 3,
200197
})
201-
G.madnessBtn = create_UIBox_character_button_with_sprite({
202-
sprite = madnessSprite,
203-
button = localize("cry_gameset_madness"),
204-
id = "madness",
205-
func = "cry_madness",
206-
colour = G.C.CRY_EXOTIC,
207-
maxw = 3,
208-
})
209198
local gamesetUI = create_UIBox_generic_options({
210199
infotip = false,
211200
contents = {
212201
G.modestBtn,
213202
G.mainlineBtn,
214-
G.madnessBtn,
215203
},
216204
back_label = "Confirm",
217205
back_colour = G.C.BLUE,
218206
back_func = "cry_gameset_confirm",
219207
})
220-
G.E_MANAGER:add_event(Event({
221-
trigger = "after",
222-
blocking = false,
223-
blockable = false,
224-
func = function()
225-
G.madnessBtn.config.colour = G.C.CRY_EXOTIC
226-
return true
227-
end,
228-
}))
229208
gamesetUI.nodes[2] = nil
230209
gamesetUI.config.colour = G.C.CLEAR
231210
G.gamesetUI = UIBox({
@@ -255,11 +234,10 @@ G.FUNCS.cry_intro_part = function(_part)
255234
no_button = true,
256235
})
257236
end
258-
if _part == "modest" or _part == "mainline" or _part == "madness" then
237+
if _part == "modest" or _part == "mainline" then
259238
local desc_length = { --number of times Jolly Joker speaks for each gameset
260239
modest = 2,
261240
mainline = 3,
262-
madness = 3,
263241
}
264242
G.E_MANAGER:clear_queue("tutorial")
265243
if G.OVERLAY_TUTORIAL.content then
@@ -294,24 +272,15 @@ end
294272
G.FUNCS.cry_modest = function(e)
295273
G.modestBtn.config.colour = G.C.CRY_SELECTED
296274
G.mainlineBtn.config.colour = G.C.RED
297-
G.madnessBtn.config.colour = G.C.CRY_EXOTIC
298275
G.FUNCS.cry_intro_part("modest")
299276
G.selectedGameset = "modest"
300277
end
301278
G.FUNCS.cry_mainline = function(e)
302279
G.modestBtn.config.colour = G.C.GREEN
303280
G.mainlineBtn.config.colour = G.C.CRY_SELECTED
304-
G.madnessBtn.config.colour = G.C.CRY_EXOTIC
305281
G.FUNCS.cry_intro_part("mainline")
306282
G.selectedGameset = "mainline"
307283
end
308-
G.FUNCS.cry_madness = function(e)
309-
G.modestBtn.config.colour = G.C.GREEN
310-
G.mainlineBtn.config.colour = G.C.RED
311-
G.madnessBtn.config.colour = G.C.CRY_SELECTED
312-
G.FUNCS.cry_intro_part("madness")
313-
G.selectedGameset = "madness"
314-
end
315284
G.FUNCS.cry_gameset_confirm = function(e)
316285
if G.selectedGameset then
317286
G.PROFILES[G.SETTINGS.profile].cry_intro_complete = true
@@ -327,35 +296,6 @@ G.FUNCS.cry_gameset_confirm = function(e)
327296
end
328297
G.OVERLAY_TUTORIAL:remove()
329298
G.OVERLAY_TUTORIAL = nil
330-
if G.selectedGameset == "madness" then
331-
--Unlock All by default in madness
332-
G.PROFILES[G.SETTINGS.profile].all_unlocked = true
333-
for k, v in pairs(G.P_CENTERS) do
334-
if not v.demo and not v.wip then
335-
v.alerted = true
336-
v.discovered = true
337-
v.unlocked = true
338-
end
339-
end
340-
for k, v in pairs(G.P_BLINDS) do
341-
if not v.demo and not v.wip then
342-
v.alerted = true
343-
v.discovered = true
344-
v.unlocked = true
345-
end
346-
end
347-
for k, v in pairs(G.P_TAGS) do
348-
if not v.demo and not v.wip then
349-
v.alerted = true
350-
v.discovered = true
351-
v.unlocked = true
352-
end
353-
end
354-
set_profile_progress()
355-
set_discover_tallies()
356-
G:save_progress()
357-
G.FILE_HANDLER.force = true
358-
end
359299
end
360300
end
361301

@@ -402,6 +342,7 @@ function Cryptid.intro_info(args)
402342
args.highlight[#args.highlight + 1] = G.OVERLAY_TUTORIAL.Jimbo
403343
if args.text_key then
404344
G.OVERLAY_TUTORIAL.Jimbo:add_speech_bubble(args.text_key, align, args.loc_vars)
345+
--G.OVERLAY_TUTORIAL.Jimbo.children.speech_bubble.states.visible = true
405346
end
406347
G.OVERLAY_TUTORIAL.Jimbo:set_alignment(attach)
407348
if args.hard_set then
@@ -455,6 +396,7 @@ function Cryptid.intro_info(args)
455396
end
456397
return true
457398
end
399+
return true
458400
end,
459401
}),
460402
"tutorial"
@@ -530,7 +472,7 @@ function Cryptid.gameset_sprite(scale, profile, force_gameset)
530472
scale,
531473
scale,
532474
G.ASSET_ATLAS["cry_gameset"],
533-
{ x = (gameset == "modified" and 3 or gameset == "madness" and 2 or gameset == "modest" and 0 or 1), y = 0 }
475+
{ x = (gameset == "modified" and 3 or gameset == "modest" and 0 or 1), y = 0 }
534476
)
535477
sprite:define_draw_steps({
536478
{ shader = "dissolve", shadow_height = 0.09 },
@@ -696,7 +638,7 @@ function Cryptid.gameset_config_UI(center)
696638
},
697639
}
698640

699-
local gamesets = { "disabled", "modest", "mainline", "madness" }
641+
local gamesets = { "disabled", "modest", "mainline" }
700642
if center.extra_gamesets then
701643
for i = 1, #center.extra_gamesets do
702644
gamesets[#gamesets + 1] = center.extra_gamesets[i]
@@ -823,9 +765,7 @@ function get_type_colour(center, card)
823765
if center.force_gameset == "modest" then
824766
color = G.C.GREEN
825767
elseif center.force_gameset == "mainline" then
826-
color = G.C.RED
827-
elseif center.force_gameset == "madness" then
828-
color = G.C.CRY_EXOTIC
768+
color = G.C.PURPLE
829769
elseif center.force_gameset ~= "disabled" then
830770
color = G.C.CRY_ASCENDANT
831771
end

lib/overrides.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,7 @@ function SMODS.create_mod_badges(obj, badges)
754754
badges[#badges + 1] = create_badge(
755755
card_type,
756756
set == "modest" and G.C.GREEN
757-
or set == "mainline" and G.C.RED
758-
or set == "madness" and G.C.CRY_EXOTIC
757+
or set == "mainline" and G.C.PURPLE
759758
or G.C.CRY_ASCENDANT
760759
)
761760
end

0 commit comments

Comments
 (0)