Skip to content

Commit e2a2a66

Browse files
Add Family friendly mode
- Need to get rid of your old cryptid.jkr for this to work - Depending on how things are translated you may not necessarily need to do this for other language files -m
1 parent d210d81 commit e2a2a66

File tree

5 files changed

+27
-23
lines changed

5 files changed

+27
-23
lines changed

Cryptid.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,13 @@ local cryptidTabs = function()
231231
scale = 0.6,
232232
id = "your_collection_jokers",
233233
})
234-
234+
--Make this not require a restart later
235+
cry_nodes[#cry_nodes + 1] = create_toggle({
236+
label = localize("cry_family"),
237+
active_colour = G.C.MONEY,
238+
ref_table = Cryptid_config,
239+
ref_value = "family_mode",
240+
})
235241
return {
236242
n = G.UIT.ROOT,
237243
config = {

config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ return {
66
["big_music"] = true,
77
["alt_bg_music"] = true,
88
},
9+
["family_mode"] = true,
910
}

items/misc_joker.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4668,7 +4668,7 @@ local stronghold = {
46684668
pos = { x = 8, y = 4 },
46694669
config = { Xmult = 5, type = "cry_Bulwark" },
46704670
loc_vars = function(self, info_queue, card)
4671-
return { vars = { card.ability.x_mult, localize("cry_hand_bulwark") } }
4671+
return { vars = { card.ability.x_mult, localize(card.ability.type, "poker_hands") } }
46724672
end,
46734673
atlas = "atlasthree",
46744674
rarity = 3,
@@ -4713,7 +4713,7 @@ local wtf = {
47134713
pos = { x = 7, y = 1 },
47144714
config = { Xmult = 10, type = "cry_Clusterfuck" },
47154715
loc_vars = function(self, info_queue, card)
4716-
return { vars = { card.ability.x_mult, localize("cry_hand_clusterfuck") } }
4716+
return { vars = { card.ability.x_mult, localize(card.ability.type, "poker_hands") } }
47174717
end,
47184718
atlas = "atlasthree",
47194719
rarity = 3,
@@ -4758,7 +4758,7 @@ local clash = {
47584758
pos = { x = 8, y = 1 },
47594759
config = { Xmult = 12, type = "cry_UltPair" },
47604760
loc_vars = function(self, info_queue, card)
4761-
return { vars = { card.ability.x_mult, localize("cry_hand_ultpair") } }
4761+
return { vars = { card.ability.x_mult, localize(card.ability.type, "poker_hands") } }
47624762
end,
47634763
atlas = "atlasthree",
47644764
rarity = 3,
@@ -5151,7 +5151,7 @@ local bonkers = {
51515151
order = 113,
51525152
config = { t_mult = 20, type = "cry_Bulwark" },
51535153
loc_vars = function(self, info_queue, card)
5154-
return { vars = { card.ability.t_mult, localize("cry_hand_bulwark") } }
5154+
return { vars = { card.ability.t_mult, localize(card.ability.type, "poker_hands") } }
51555155
end,
51565156
atlas = "atlasthree",
51575157
rarity = 1,
@@ -5189,7 +5189,7 @@ local fuckedup = {
51895189
order = 114,
51905190
config = { t_mult = 37, type = "cry_Clusterfuck" },
51915191
loc_vars = function(self, info_queue, card)
5192-
return { vars = { card.ability.t_mult, localize("cry_hand_clusterfuck") } }
5192+
return { vars = { card.ability.t_mult, localize(card.ability.type, "poker_hands") } }
51935193
end,
51945194
atlas = "atlasthree",
51955195
rarity = 1,
@@ -5227,7 +5227,7 @@ local foolhardy = {
52275227
order = 115,
52285228
config = { t_mult = 42, type = "cry_UltPair" },
52295229
loc_vars = function(self, info_queue, card)
5230-
return { vars = { card.ability.t_mult, localize("cry_hand_ultpair") } }
5230+
return { vars = { card.ability.t_mult, localize(card.ability.type, "poker_hands") } }
52315231
end,
52325232
atlas = "atlasthree",
52335233
rarity = 1,
@@ -5571,7 +5571,7 @@ local adroit = {
55715571
order = 116,
55725572
config = { t_chips = 170, type = "cry_Bulwark" },
55735573
loc_vars = function(self, info_queue, card)
5574-
return { vars = { card.ability.t_chips, localize("cry_hand_bulwark") } }
5574+
return { vars = { card.ability.t_chips, localize(card.ability.type, "poker_hands") } }
55755575
end,
55765576
atlas = "atlasthree",
55775577
rarity = 1,
@@ -5609,7 +5609,7 @@ local penetrating = {
56095609
order = 117,
56105610
config = { t_chips = 270, type = "cry_Clusterfuck" },
56115611
loc_vars = function(self, info_queue, card)
5612-
return { vars = { card.ability.t_chips, localize("cry_hand_clusterfuck") } }
5612+
return { vars = { card.ability.t_chips, localize(card.ability.type, "poker_hands") } }
56135613
end,
56145614
atlas = "atlasthree",
56155615
rarity = 1,
@@ -5647,7 +5647,7 @@ local treacherous = {
56475647
order = 118,
56485648
config = { t_chips = 300, type = "cry_UltPair" },
56495649
loc_vars = function(self, info_queue, card)
5650-
return { vars = { card.ability.t_chips, localize("cry_hand_ultpair") } }
5650+
return { vars = { card.ability.t_chips, localize(card.ability.type, "poker_hands") } }
56515651
end,
56525652
atlas = "atlasthree",
56535653
rarity = 1,

items/planet.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ local kaikki = {
330330
end
331331
return {
332332
vars = {
333-
localize("cry_hand_bulwark"),
334-
localize("cry_hand_clusterfuck"),
335-
localize("cry_hand_ultpair"),
333+
localize("cry_Bulwark", "poker_hands"),
334+
localize("cry_Clusterfuck", "poker_hands"),
335+
localize("cry_UltPair", "poker_hands"),
336336
G.GAME.hands["cry_Bulwark"].level,
337337
G.GAME.hands["cry_Clusterfuck"].level,
338338
G.GAME.hands["cry_UltPair"].level,

localization/en-us.lua

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ return {
14571457
},
14581458
},
14591459
j_cry_fuckedup = {
1460-
name = "Fucked-Up Joker",
1460+
name = Cryptid_config.family_mode and "Tidy Joker" or "Fucked-Up Joker",
14611461
text = {
14621462
"{C:red}+#1#{} Mult if played",
14631463
"hand contains",
@@ -2544,7 +2544,7 @@ return {
25442544
},
25452545
},
25462546
j_cry_wtf = {
2547-
name = "The Fuck!?",
2547+
name = Cryptid_config.family_mode and "The Cluster" or "The Fuck!?",
25482548
text = {
25492549
"{X:mult,C:white} X#1# {} Mult if played",
25502550
"hand contains",
@@ -2666,7 +2666,7 @@ return {
26662666
},
26672667
},
26682668
c_cry_universe = {
2669-
name = "The Universe In Its Fucking Entirety",
2669+
name = Cryptid_config.family_mode and "Universe" or "The Universe In Its Fucking Entirety",
26702670
text = {
26712671
"{S:0.8}({S:0.8,V:1}lvl.#1#{S:0.8}){} Level up",
26722672
"{C:attention}#2#",
@@ -4126,9 +4126,9 @@ return {
41264126
},
41274127
poker_hands = {
41284128
["cry_Bulwark"] = "Bulwark",
4129-
["cry_Clusterfuck"] = "Clusterfuck",
4129+
["cry_Clusterfuck"] = Cryptid_config.family_mode and "Cluster" or "Clusterfuck",
41304130
["cry_UltPair"] = "Ultimate Pair",
4131-
["cry_WholeDeck"] = "The Entire Fucking Deck",
4131+
["cry_WholeDeck"] = Cryptid_config.family_mode and "Fifty Two" or "The Entire Fucking Deck",
41324132
},
41334133
poker_hand_descriptions = {
41344134
["cry_Bulwark"] = {
@@ -4239,6 +4239,7 @@ return {
42394239
cry_mus_exotic = "Exotic Jokers (Joker in Latin by AlexZGreat)",
42404240
cry_mus_high_score = "High Score (Final Boss [For Your Computer] by AlexZGreat)",
42414241
cry_mus_alt_bg = "Background Music (by MathIsFun_)",
4242+
cry_family = "Family Friendly Mode (Requires Restart",
42424243

42434244
k_cry_program_pack = "Program Pack",
42444245
k_cry_meme_pack = "Meme Pack",
@@ -4293,10 +4294,6 @@ return {
42934294
b_flip = "FLIP",
42944295
b_merge = "MERGE",
42954296

4296-
cry_hand_bulwark = "Bulwark",
4297-
cry_hand_clusterfuck = "Clusterfuck",
4298-
cry_hand_ultpair = "Ultimate Pair",
4299-
43004297
cry_asc_hands = "Asc. Hands",
43014298
cry_p_star = "Star",
43024299

@@ -4329,7 +4326,7 @@ return {
43294326
k_cry_cursed = "Cursed",
43304327
k_planet_disc = "Circumstellar Disc",
43314328
k_planet_satellite = "Natural Satellites",
4332-
k_planet_universe = "The Actual Fucking Universe",
4329+
k_planet_universe = Cryptid_config.family_mode and "Universe" or "The Actual Fucking Universe",
43334330

43344331
cry_notif_jimball_1 = "Jimball",
43354332
cry_notif_jimball_2 = "Copyright Notice",

0 commit comments

Comments
 (0)