Skip to content

Commit e5404eb

Browse files
committed
2 parents 201db99 + ac7d3be commit e5404eb

22 files changed

+245
-83
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.8",
12+
"version": "0.5.9-dev",
1313
"dependencies": [
1414
"Talisman (>=2.2.0a)",
1515
"Steamodded (>=1.0.0~BETA-0525b)"

Cryptid.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ function SMODS.injectItems(...)
189189
end
190190
end
191191

192+
local old_repitions = SMODS.calculate_repetitions
193+
SMODS.calculate_repetitions = function(card, context, reps)
194+
local reps = old_repitions(card, context, reps)
195+
reps = reps or { 1 }
196+
return reps
197+
end
198+
192199
local cryptidConfigTab = function()
193200
cry_nodes = {
194201
{

assets/1x/atlasepic.png

21.9 KB
Loading

assets/2x/atlasepic.png

57.3 KB
Loading

items/code.lua

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,7 +3966,7 @@ local multiply = {
39663966
end
39673967
G.jokers.highlighted[1].config.cry_multiply = G.jokers.highlighted[1].config.cry_multiply * 2
39683968
Cryptid.with_deck_effects(G.jokers.highlighted[1], function(card)
3969-
Cryptid.misprintize(card, { min = 2, max = 2 }, nil, true)
3969+
Cryptid.manipulate(card, { value = 2 })
39703970
end)
39713971
end,
39723972
init = function(self)
@@ -3978,7 +3978,7 @@ local multiply = {
39783978
if G.jokers.cards[i].config.cry_multiply then
39793979
m = G.jokers.cards[i].config.cry_multiply
39803980
Cryptid.with_deck_effects(G.jokers.cards[i], function(card)
3981-
Cryptid.misprintize(card, { min = 1 / m, max = 1 / m }, nil, true)
3981+
Cryptid.manipulate(card, { value = 1 / m })
39823982
end)
39833983
G.jokers.cards[i].config.cry_multiply = nil
39843984
end
@@ -4023,9 +4023,26 @@ local delete = {
40234023
return G.STATE == G.STATES.SHOP
40244024
and card.area == (G.GAME.modifiers.cry_beta and G.jokers or G.consumeables)
40254025
and #G.shop_jokers.highlighted + #G.shop_booster.highlighted + #G.shop_vouchers.highlighted == 1
4026-
and G.shop_jokers.highlighted[1] ~= card
4027-
and G.shop_booster.highlighted[1] ~= card
4028-
and G.shop_vouchers.highlighted[1] ~= card
4026+
and (G.shop_jokers.highlighted[1] ~= card and not Cryptid.safe_get(
4027+
G,
4028+
"shop_jokers",
4029+
"highlighted",
4030+
1,
4031+
"ability",
4032+
"eternal"
4033+
))
4034+
and (G.shop_booster.highlighted[1] ~= card and not Cryptid.safe_get(
4035+
G,
4036+
"shop_booster",
4037+
"highlighted",
4038+
1,
4039+
"ability",
4040+
"eternal"
4041+
))
4042+
and (
4043+
G.shop_vouchers.highlighted[1] ~= card
4044+
and not Cryptid.safe_get(G, "shop_vouchers", "highlighted", 1, "ability", "eternal")
4045+
)
40294046
end,
40304047
use = function(self, card, area, copier)
40314048
if not G.GAME.banned_keys then

items/deck.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ local glowing = {
534534
for i = 1, #G.jokers.cards do
535535
if not Card.no(G.jokers.cards[i], "immutable", true) then
536536
Cryptid.with_deck_effects(G.jokers.cards[i], function(card)
537-
Cryptid.misprintize(card, { min = 1.25, max = 1.25 }, nil, true)
537+
Cryptid.manipulate(card, { value = 1.25 })
538538
end)
539539
end
540540
end
@@ -1081,7 +1081,7 @@ local antimatter = {
10811081
then
10821082
for i = 1, #G.jokers.cards do
10831083
Cryptid.with_deck_effects(G.jokers.cards[i], function(card)
1084-
Cryptid.misprintize(card, { min = 1.25, max = 1.25 }, nil, true)
1084+
Cryptid.manipulate(card, { value = 1.25 })
10851085
end)
10861086
end
10871087
end

items/enhanced.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,18 @@ return {
378378
G.P_CENTERS.j_hanging_chad.misprintize_caps = { extra = 40 }
379379
G.P_CENTERS.c_high_priestess.misprintize_caps = { planets = 100 }
380380
G.P_CENTERS.c_emperor.misprintize_caps = { tarots = 100 }
381-
G.P_CENTERS.c_cry_automaton.misprintize_caps = { create = 100 }
381+
if G.P_CENTERS.c_cry_automaton then
382+
G.P_CENTERS.c_cry_automaton.misprintize_caps = { create = 100 }
383+
end
382384
G.P_CENTERS.c_familiar.misprintize_caps = { extra = 100 }
383385
G.P_CENTERS.c_grim.misprintize_caps = { extra = 100 }
384386
G.P_CENTERS.c_incantation.misprintize_caps = { extra = 100 }
385387
G.P_CENTERS.c_immolate.misprintize_caps = { destroy = 1e300 }
386388
G.P_CENTERS.c_cryptid.misprintize_caps = { extra = 100, max_highlighted = 100 }
387389
G.P_CENTERS.c_immolate.misprintize_caps = { destroy = 1e300 }
388-
G.P_CENTERS.c_cry_chambered.misprintize_caps = { extra = { num_copies = 100 } }
390+
if G.P_CENTERS.c_cry_chambered then
391+
G.P_CENTERS.c_cry_chambered.misprintize_caps = { extra = { num_copies = 100 } }
392+
end
389393
if Cryptid.safe_get(center, "name") == "Default Base" then -- scuffed
390394
return sa(
391395
self,

items/exotic.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ local universum = {
238238
.. tostring(vals.level)
239239
if is_number(vals.level) then
240240
G.hand_text_area.hand_level.config.colour =
241-
G.C.HAND_LEVELS[to_big(math.min(vals.level, 7)):to_number()]
241+
G.C.HAND_LEVELS[to_number(math.min(vals.level, 7))]
242242
else
243243
G.hand_text_area.hand_level.config.colour = G.C.HAND_LEVELS[1]
244244
end
@@ -1239,7 +1239,7 @@ local gemino = {
12391239
local card = G.jokers.cards[1]
12401240
if not Card.no(G.jokers.cards[1], "immutable", true) then
12411241
Cryptid.with_deck_effects(G.jokers.cards[1], function(card)
1242-
Cryptid.misprintize(card, { min = 2, max = 2 }, nil, true)
1242+
Cryptid.manipulate(card, { value = 2 })
12431243
end)
12441244
check = true
12451245
end

items/misc.lua

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,8 @@ local oversat = {
809809
on_apply = function(card)
810810
if not card.ability.cry_oversat then
811811
Cryptid.with_deck_effects(card, function(card)
812-
Cryptid.misprintize(card, {
813-
min = 2,
814-
max = 2,
812+
Cryptid.manipulate(card, {
813+
value = 2,
815814
}, nil, true)
816815
end)
817816
if card.config.center.apply_oversat then
@@ -827,8 +826,8 @@ local oversat = {
827826
end,
828827
on_remove = function(card)
829828
Cryptid.with_deck_effects(card, function(card)
830-
Cryptid.misprintize(card, { min = 1, max = 1 }, true)
831-
Cryptid.misprintize(card) -- Correct me if i'm wrong but this is for misprint deck. or atleast it is after this patch
829+
Cryptid.manipulate(card, { value = 1 / 2 })
830+
Cryptid.manipulate(card) -- Correct me if i'm wrong but this is for misprint deck. or atleast it is after this patch
832831
end)
833832
card.ability.cry_oversat = nil
834833
end,
@@ -934,16 +933,18 @@ local glitched = {
934933
on_apply = function(card)
935934
if not card.ability.cry_glitched then
936935
Cryptid.with_deck_effects(card, function(card)
937-
Cryptid.misprintize(card, {
936+
Cryptid.manipulate(card, {
938937
min = 0.1,
939938
max = 10,
940-
}, nil, true)
939+
})
941940
end)
941+
942942
if card.config.center.apply_glitched then
943943
card.config.center:apply_glitched(card, function(val)
944-
return Cryptid.misprintize_val(val, {
944+
return Cryptid.manipulate_value(val, {
945945
min = 0.1 * (G.GAME.modifiers.cry_misprint_min or 1),
946946
max = 10 * (G.GAME.modifiers.cry_misprint_max or 1),
947+
type = "X",
947948
}, Cryptid.is_card_big(card))
948949
end)
949950
end
@@ -952,8 +953,8 @@ local glitched = {
952953
end,
953954
on_remove = function(card)
954955
Cryptid.with_deck_effects(card, function(card)
955-
Cryptid.misprintize(card, { min = 1, max = 1 }, true)
956-
Cryptid.misprintize(card) -- Correct me if i'm wrong but this is for misprint deck. or atleast it is after this patch
956+
Cryptid.manipulate(card, { min = 1, max = 1, dont_stack = true })
957+
Cryptid.manipulate(card) -- Correct me if i'm wrong but this is for misprint deck. or atleast it is after this patch
957958
end)
958959
card.ability.cry_glitched = nil
959960
end,

items/misc_joker.lua

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8816,12 +8816,7 @@ local tropical_smoothie = {
88168816
if v ~= card then
88178817
if not Card.no(v, "immutable", true) then
88188818
Cryptid.with_deck_effects(v, function(cards)
8819-
Cryptid.misprintize(
8820-
cards,
8821-
{ min = card.ability.extra, max = card.ability.extra },
8822-
nil,
8823-
true
8824-
)
8819+
Cryptid.manipulate(cards, { value = card.ability.extra })
88258820
end)
88268821
check = true
88278822
end
@@ -9199,12 +9194,7 @@ local oil_lamp = { --You want it? It's yours my friend
91999194
if not Card.no(G.jokers.cards[i + 1], "immutable", true) then
92009195
check = true
92019196
Cryptid.with_deck_effects(G.jokers.cards[i + 1], function(cards)
9202-
Cryptid.misprintize(
9203-
cards,
9204-
{ min = card.ability.extra.increase, max = card.ability.extra.increase },
9205-
nil,
9206-
true
9207-
)
9197+
Cryptid.manipulate(cards, { value = card.ability.extra.increase })
92089198
end)
92099199
end
92109200
end

0 commit comments

Comments
 (0)