Skip to content

Commit 0188c02

Browse files
Merge pull request #784 from Yadifriend/main
satellite uplink fix
2 parents ad28a6e + f115741 commit 0188c02

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

items/voucher.lua

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,36 @@ local satellite_uplink = { -- Code T2; Code cards may appear in any of the Celes
366366
requires = { "v_cry_command_prompt" },
367367
}
368368

369+
--i removed the patch as it didnt do anything and its not needed
370+
--mainly just took from vanillaremade
371+
SMODS.Booster:take_ownership_by_kind('Celestial', {
372+
create_card = function(self, card, i)
373+
local _card
374+
if (G.GAME.used_vouchers.v_cry_satellite_uplink and pseudorandom('satellite_uplink') > 0.8) then
375+
_card = {
376+
set = "Code",
377+
area = G.pack_cards,
378+
skip_materialize = true,
379+
soulable = true,
380+
key_append =
381+
"pl2"
382+
}
383+
else
384+
_card = {
385+
set = "Planet",
386+
area = G.pack_cards,
387+
skip_materialize = true,
388+
soulable = true,
389+
key_append =
390+
"pl1"
391+
}
392+
end
393+
return _card
394+
end,
395+
},
396+
true
397+
)
398+
369399
-- Tier 3 Vouchers
370400
local overstock_multi = { -- Overstock T3; +1 card slot, +1 booster pack slot and +1 voucher slot available in the shop
371401
cry_credits = {

lovely/code.toml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -427,21 +427,6 @@ position = "at"
427427
payload = "{card_limit = self.GAME.starting_params.joker_slots, type = 'joker', highlight_limit = 1e100, negative_info = 'joker'})"
428428
match_indent = true
429429

430-
# Satellite Uplink
431-
[[patches]]
432-
[patches.pattern]
433-
target = "card.lua"
434-
pattern = '''card = create_card("Planet", G.pack_cards, nil, nil, true, true, nil, 'pl1')'''
435-
position = "at"
436-
payload = '''
437-
if G.GAME.used_vouchers.v_cry_satellite_uplink and pseudorandom('cry_satellite_uplink') > 0.8 then
438-
card = create_card("Code", G.pack_cards, nil, nil, true, true, nil, 'pl2')
439-
else
440-
card = create_card("Planet", G.pack_cards, nil, nil, true, true, nil, 'pl1')
441-
end
442-
'''
443-
match_indent = true
444-
445430
# Exploit - reset variables
446431
[[patches]]
447432
[patches.pattern]

0 commit comments

Comments
 (0)