Skip to content

Commit

Permalink
Allow create_card passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius7309 committed Sep 4, 2024
1 parent 1e1e0ad commit 5c9866f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--- MODULE CORE

SMODS = {}
MODDED_VERSION = "1.0.0~ALPHA-0904a-STEAMODDED"
MODDED_VERSION = "1.0.0~ALPHA-0904b-STEAMODDED"
SMODS.id = 'Steamodded'
SMODS.version = MODDED_VERSION:gsub('%-STEAMODDED', '')
SMODS.can_load = true
Expand Down
6 changes: 5 additions & 1 deletion lovely/booster.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ pattern = '''(?<indent>[\t ]*)if self\.ability\.name:find\('Arcana'\) then[\t\n
position = "at"
payload = '''if booster_obj.create_card and type(booster_obj.create_card) == "function" then
local _card_to_spawn = booster_obj:create_card(self, i)
card = SMODS.create_card(_card_to_spawn)
if type((_card_to_spawn or {}).is) == 'function' and _card_to_spawn:is(Card) then
card = _card_to_spawn
else
card = SMODS.create_card(_card_to_spawn)
end
elseif self.ability.name:find('Arcana') then
if G.GAME.used_vouchers.v_omen_globe and pseudorandom('omen_globe') > 0.8 then'''
line_prepend = '$indent'
Expand Down

0 comments on commit 5c9866f

Please sign in to comment.