Skip to content

Commit 4e4e40c

Browse files
Merge pull request SpectralPack#526 from TheRealNova422-real/patch-36
Hotfixed!
2 parents 8831a9b + c8f0505 commit 4e4e40c

File tree

9 files changed

+189
-66
lines changed

9 files changed

+189
-66
lines changed

Cryptid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"priority": 114,
1010
"badge_colour": "708b91",
1111
"badge_text_colour": "FFFFFF",
12-
"version": "0.5.5a~dev2",
12+
"version": "0.5.5b",
1313
"dependencies": [
1414
"Talisman (>=2.0.9)",
1515
"Steamodded (>=1.0.0~BETA-0314c)"

items/code.lua

Lines changed: 127 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,19 +2925,56 @@ local exploit = {
29252925
end
29262926
G.FUNCS.exploit_apply = function()
29272927
local hand_table = {
2928-
["High Card"] = { "high card", "high", "1oak", "1 of a kind", "haha one" },
2929-
["Pair"] = { "pair", "2oak", "2 of a kind", "m" },
2930-
["Two Pair"] = { "two pair", "2 pair", "mm", "pairpair" },
2931-
["Three of a Kind"] = { "three of a kind", "3 of a kind", "3oak", "trips", "triangle" },
2932-
["Straight"] = { "straight", "lesbian", "gay", "bisexual", "asexual" },
2933-
["Flush"] = { "flush", "skibidi", "toilet", "floosh" },
2928+
["High Card"] = {
2929+
"high card",
2930+
"high",
2931+
"1oak",
2932+
"1 of a kind",
2933+
"haha one"
2934+
},
2935+
["Pair"] = {
2936+
"pair",
2937+
"2oak",
2938+
"2 of a kind",
2939+
"m",
2940+
"window"
2941+
},
2942+
["Two Pair"] = {
2943+
"two pair",
2944+
"2 pair",
2945+
"mm",
2946+
"pairpair",
2947+
"pair of a kind"
2948+
},
2949+
["Three of a Kind"] = {
2950+
"three of a kind",
2951+
"3 of a kind",
2952+
"3oak",
2953+
"trips",
2954+
"triangle"
2955+
},
2956+
["Straight"] = {
2957+
"straight",
2958+
"lesbian",
2959+
"gay",
2960+
"bisexual",
2961+
"asexual",
2962+
"staircase"
2963+
},
2964+
["Flush"] = {
2965+
"flush",
2966+
"skibidi",
2967+
"toilet",
2968+
"floosh",
2969+
"monotone"
2970+
},
29342971
["Full House"] = {
29352972
"full house",
29362973
"full",
29372974
"that 70s show",
29382975
"modern family",
29392976
"family matters",
2940-
"the middle",
2977+
"the middle"
29412978
},
29422979
["Four of a Kind"] = {
29432980
"four of a kind",
@@ -2947,14 +2984,69 @@ local exploit = {
29472984
"quads",
29482985
"four to the floor",
29492986
},
2950-
["Straight Flush"] = { "straight flush", "strush", "slush", "slushie", "slushy" },
2951-
["Five of a Kind"] = { "five of a kind", "5 of a kind", "5oak", "quints" },
2952-
["Flush House"] = { "flush house", "flouse", "outhouse" },
2953-
["Flush Five"] = { "flush five", "fish", "you know what that means", "five of a flush" },
2954-
["cry_Bulwark"] = { "bulwark", "flush rock", "stoned", "stone flush", "flush stone" },
2955-
["cry_Clusterfuck"] = { "clusterfuck", "fuck", "wtf" },
2956-
["cry_UltPair"] = { "ultimate pair", "ultpair", "ult pair", "pairpairpair" },
2957-
["cry_WholeDeck"] = { "the entire fucking deck", "deck", "tefd", "fifty-two", "you are fuck deck" },
2987+
["Straight Flush"] = {
2988+
"straight flush",
2989+
"strush",
2990+
"slush",
2991+
"slushie",
2992+
"slushy",
2993+
"monotone staircase"
2994+
},
2995+
["Five of a Kind"] = {
2996+
"five of a kind",
2997+
"5 of a kind",
2998+
"5oak",
2999+
"quints"
3000+
},
3001+
["Flush House"] = {
3002+
"flush house",
3003+
"flouse",
3004+
"outhouse",
3005+
"monotone house",
3006+
"the grey house"
3007+
},
3008+
["Flush Five"] = {
3009+
"flush five",
3010+
"fish",
3011+
"you know what that means",
3012+
"five of a flush",
3013+
"monotone fish"
3014+
},
3015+
["cry_Bulwark"] = {
3016+
"bulwark",
3017+
"flush rock",
3018+
"stoned",
3019+
"stone flush",
3020+
"flush stone",
3021+
"rock and stone"
3022+
},
3023+
["cry_Clusterfuck"] = {
3024+
"clusterfuck",
3025+
"fuck",
3026+
"wtf",
3027+
"cluster",
3028+
"what"
3029+
},
3030+
["cry_UltPair"] = {
3031+
"ultimate pair",
3032+
"ultpair",
3033+
"ult pair",
3034+
"pairpairpair",
3035+
"flush pair of a kind of a kind",
3036+
"2f2oakoak",
3037+
"two flush two of a kind of a kind"
3038+
},
3039+
["cry_WholeDeck"] = {
3040+
"the entire fucking deck",
3041+
"deck",
3042+
"tefd",
3043+
"fifty-two",
3044+
"you are fuck deck",
3045+
"deck of a kind",
3046+
"the entire deck",
3047+
"everything of a kind",
3048+
"everything"
3049+
},
29583050
}
29593051
local current_hand = nil
29603052
for k, v in pairs(SMODS.PokerHands) do
@@ -3091,13 +3183,27 @@ local rework = {
30913183
return { vars = {} }
30923184
end,
30933185
can_use = function(self, card)
3094-
return #G.jokers.highlighted == 1
3186+
if not G.GAME.modifiers.cry_beta then
3187+
return #G.jokers.highlighted == 1
3188+
and not G.jokers.highlighted[1].ability.eternal
3189+
and G.jokers.highlighted[1].ability.name ~= (
3190+
"cry-meteor"
3191+
or "cry-exoplanet"
3192+
or "cry-stardust"
3193+
or "cry_cursed"
3194+
or ("Diet Cola" or Card.get_gameset(card) == "madness")
3195+
)
3196+
else
3197+
return #G.jokers.highlighted == 2
30953198
and not G.jokers.highlighted[1].ability.eternal
3096-
and G.jokers.highlighted[1].ability.name ~= "cry-meteor"
3097-
and G.jokers.highlighted[1].ability.name ~= "cry-exoplanet"
3098-
and G.jokers.highlighted[1].ability.name ~= "cry-stardust"
3099-
and G.jokers.highlighted[1].config.center.rarity ~= "cry_cursed"
3100-
and (G.jokers.highlighted[1].ability.name ~= "Diet Cola" or Card.get_gameset(card) == "madness")
3199+
and G.jokers.highlighted[1].ability.name ~= (
3200+
"cry-meteor"
3201+
or "cry-exoplanet"
3202+
or "cry-stardust"
3203+
or "cry_cursed"
3204+
or ("Diet Cola" or Card.get_gameset(card) == "madness")
3205+
)
3206+
end
31013207
end,
31023208
use = function(self, card, area, copier)
31033209
local jkr = G.jokers.highlighted[1]

items/enhanced.lua

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -334,43 +334,45 @@ return {
334334
-- D Invisible Joker
335335

336336
if
337-
center.name == "Fortune Teller"
338-
or center.name == "Shoot the Moon"
339-
or center.name == "Riff-raff"
340-
or center.name == "Chaos the Clown"
341-
or center.name == "Dusk"
342-
or center.name == "Mime"
343-
or center.name == "Hack"
344-
or center.name == "Sock and Buskin"
345-
or center.name == "Invisible Joker"
346-
or center.name == "Swashbuckler"
347-
or center.name == "Smeared Joker"
348-
or center.name == "Certificate"
349-
or center.name == "Mr. Bones"
350-
or center.name == "Diet Cola"
351-
or center.name == "Luchador"
352-
or center.name == "Midas Mask"
353-
or center.name == "Shortcut"
354-
or center.name == "Seance"
355-
or center.name == "Superposition"
356-
or center.name == "Sixth Sense"
357-
or center.name == "DNA"
358-
or center.name == "Splash"
359-
or center.name == "Supernova"
360-
or center.name == "Pareidolia"
361-
or center.name == "Raised Fist"
362-
or center.name == "Marble Joker"
363-
or center.name == "Four Fingers"
364-
or center.name == "Joker Stencil"
365-
or center.name == "Showman"
366-
or center.name == "Blueprint"
367-
or center.name == "Oops! All 6s"
368-
or center.name == "Brainstorm"
369-
or center.name == "Cartomancer"
370-
or center.name == "Astronomer"
371-
or center.name == "Burnt Joker"
372-
or center.name == "Chicot"
373-
or center.name == "Perkeo"
337+
center and center.name == (
338+
"Fortune Teller"
339+
or "Shoot the Moon"
340+
or "Riff-raff"
341+
or "Chaos the Clown"
342+
or "Dusk"
343+
or "Mime"
344+
or "Hack"
345+
or "Sock and Buskin"
346+
or "Invisible Joker"
347+
or "Swashbuckler"
348+
or "Smeared Joker"
349+
or "Certificate"
350+
or "Mr. Bones"
351+
or "Diet Cola"
352+
or "Luchador"
353+
or "Midas Mask"
354+
or "Shortcut"
355+
or "Seance"
356+
or "Superposition"
357+
or "Sixth Sense"
358+
or "DNA"
359+
or "Splash"
360+
or "Supernova"
361+
or "Pareidolia"
362+
or "Raised Fist"
363+
or "Marble Joker"
364+
or "Four Fingers"
365+
or "Joker Stencil"
366+
or "Showman"
367+
or "Blueprint"
368+
or "Oops! All 6s"
369+
or "Brainstorm"
370+
or "Cartomancer"
371+
or "Astronomer"
372+
or "Burnt Joker"
373+
or "Chicot"
374+
or "Perkeo"
375+
)
374376
then
375377
self.config.center.immutable = true
376378
end

items/epic.lua

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,8 +1860,8 @@ local spectrogram = {
18601860
end
18611861
end
18621862
end
1863-
1864-
if context.retrigger_joker_check and not context.retrigger_joker and context.other_card ~= self then
1863+
1864+
if context.retrigger_joker_check and not context.retrigger_joker and context.other_card == G.jokers.cards[#G.jokers.cards] and context.other_card ~= self then
18651865
if card.ability.extra.echonum and card.ability.extra.echonum > 0 then
18661866
return {
18671867
message = localize("k_again_ex"),
@@ -2026,8 +2026,16 @@ local clockwork = { -- Steel Support: The Joker
20262026
and not context.end_of_round
20272027
and SMODS.has_enhancement(context.other_card, "m_steel")
20282028
and card.ability.extra.steelenhc ~= 1
2029-
then -- effect 4
2030-
return { xmult = card.ability.extra.steelenhc }
2029+
then
2030+
if context.other_card.debuff then
2031+
return {
2032+
message = localize("k_debuffed"),
2033+
colour = G.C.RED,
2034+
card = card,
2035+
}
2036+
else -- effect 4
2037+
return { xmult = card.ability.extra.steelenhc }
2038+
end
20312039
end
20322040
--imo this secret effect can be madness only -Math
20332041
if

items/misc_joker.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ local big_cube = {
996996
name = "cry-Big Cube",
997997
key = "big_cube",
998998
joker_gate = "cry-Cube",
999-
config = { extra = { x_chips = 6 } },
999+
config = { extra = { x_chips = 6 }, override_x_chips_check = true },
10001000
pos = { x = 4, y = 4 },
10011001
rarity = 1,
10021002
order = 105,
@@ -7161,6 +7161,8 @@ local necromancer = {
71617161
and context.card.config.center.set == "Joker"
71627162
and G.GAME.jokers_sold
71637163
and #G.GAME.jokers_sold > 0
7164+
and not context.blueprint
7165+
and not context.retrigger_joker
71647166
then
71657167
local card = create_card(
71667168
"Joker",

items/spooky.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ local spy = {
651651
G.jokers.config.card_limit = G.jokers.config.card_limit - 1
652652
end,
653653
calculate = function(self, card, context)
654-
if context.cardarea == G.jokers and not context.before and not context.after then
654+
if context.joker_main then
655655
return {
656656
message = localize({ type = "variable", key = "a_xmult", vars = { card.ability.x_mult } }),
657657
Xmult_mod = card.ability.x_mult,

lib/gameset.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ function Card:get_gameset(center)
599599
end
600600
local csa = Card.set_ability
601601
function Card:set_ability(center, y, z)
602+
if not center then return end
602603
if not center.config then
603604
center.config = {} --crashproofing
604605
end

lib/misc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ end
578578
function Cryptid.safe_get(t, ...)
579579
local current = t
580580
for _, k in ipairs({ ... }) do
581-
if current[k] == nil then
581+
if not current or current[k] == nil then
582582
return false
583583
end
584584
current = current[k]

lib/misprintize.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function Cryptid.misprintize_tbl(name, ref_tbl, ref_value, clear, override, stac
1717
and not (k == "face_nominal")
1818
and not (k == "qty")
1919
and not (k == "x_mult" and v == 1 and not tbl.override_x_mult_check)
20+
and not (k == "x_chips" and v == 1 and not tbl.override_x_chips_check)
21+
and not (k == ("h_x_chips"))
2022
and not (k == "selected_d6_face")
2123
then --Temp fix, even if I did clamp the number to values that wouldn't crash the game, the fact that it did get randomized means that there's a higher chance for 1 or 6 than other values
2224
if not Cryptid.base_values[name] then
@@ -50,6 +52,8 @@ function Cryptid.misprintize_tbl(name, ref_tbl, ref_value, clear, override, stac
5052
and not (_k == "face_nominal")
5153
and not (_k == "qty")
5254
and not (k == "x_mult" and v == 1 and not tbl[k].override_x_mult_check)
55+
and not (k == "x_chips" and v == 1 and not tbl[k].override_x_chips_check)
56+
and not (k == ("h_x_chips"))
5357
and not (_k == "selected_d6_face")
5458
then --Refer to above
5559
if not Cryptid.base_values[name] then

0 commit comments

Comments
 (0)