@@ -41,7 +41,7 @@ SMODS.Consumable{
4141 can_use = function (self , card )
4242 if G .STATE ~= G .STATES .HAND_PLAYED and G .STATE ~= G .STATES .DRAW_TO_HAND and G .STATE ~= G .STATES .PLAY_TAROT or
4343 any_state then
44- if # G .jokers .highlighted == 1 and is_alternate (G .jokers .highlighted [1 ].config .center_key ,joker_equivalents ) == " v" then
44+ if # G .jokers .highlighted == 1 and FG . is_alternate (G .jokers .highlighted [1 ].config .center_key ,FG . joker_equivalents ) == " v" then
4545 return true
4646 end
4747 end
@@ -52,7 +52,7 @@ SMODS.Consumable{
5252 trigger = ' after' ,
5353 delay = 0.4 ,
5454 func = function ()
55- alternate_card (G .jokers .highlighted [1 ].config .center_key , G .jokers .highlighted [1 ], joker_equivalents )
55+ FG . alternate_card (G .jokers .highlighted [1 ].config .center_key , G .jokers .highlighted [1 ], FG . joker_equivalents )
5656 return true
5757 end
5858 }))
@@ -76,7 +76,7 @@ SMODS.Consumable{
7676 can_use = function (self , card )
7777 if G .STATE ~= G .STATES .HAND_PLAYED and G .STATE ~= G .STATES .DRAW_TO_HAND and G .STATE ~= G .STATES .PLAY_TAROT or
7878 any_state then
79- if # G .jokers .highlighted == 1 and is_alternate (G .jokers .highlighted [1 ].config .center_key ,joker_equivalents ) == " k" then
79+ if # G .jokers .highlighted == 1 and FG . is_alternate (G .jokers .highlighted [1 ].config .center_key ,FG . joker_equivalents ) == " k" then
8080 return true
8181 end
8282 end
@@ -87,7 +87,7 @@ SMODS.Consumable{
8787 trigger = ' after' ,
8888 delay = 0.4 ,
8989 func = function ()
90- alternate_card (G .jokers .highlighted [1 ].config .center_key , G .jokers .highlighted [1 ], joker_equivalents )
90+ FG . alternate_card (G .jokers .highlighted [1 ].config .center_key , G .jokers .highlighted [1 ], FG . joker_equivalents )
9191 return true
9292 end
9393 }))
@@ -124,7 +124,7 @@ SMODS.Consumable{
124124 delay = 0.4 ,
125125 func = function ()
126126 for i in ipairs (G .hand .highlighted ) do
127- flip_editions (G .hand .highlighted [i ]) -- change to alternate editions when theyre implemented
127+ FG . flip_editions (G .hand .highlighted [i ]) -- change to alternate editions when theyre implemented
128128 end
129129 return true
130130 end
@@ -150,7 +150,7 @@ SMODS.Consumable{
150150 for i in ipairs (G .jokers .cards ) do
151151 currentJoker = G .jokers .cards [i ]
152152 if currentJoker .rarity == 1 then
153- alternate_card (currentJoker )
153+ FG . alternate_card (currentJoker )
154154 end
155155 end
156156 return true
@@ -160,8 +160,8 @@ SMODS.Consumable{
160160 func = function ()
161161 for i in ipairs (G .jokers .cards ) do
162162 local currentCard = G .jokers .cards [i ]
163- if is_alternate (currentCard .config .center_key , joker_equivalents ) == " k" and currentCard .config .center .rarity == 1 then
164- alternate_card (currentCard .config .center_key , currentCard , joker_equivalents )
163+ if is_alternate (currentCard .config .center_key , FG . joker_equivalents ) == " k" and currentCard .config .center .rarity == 1 then
164+ FG . alternate_card (currentCard .config .center_key , currentCard , FG . joker_equivalents )
165165 end
166166 end
167167 return true
@@ -187,7 +187,7 @@ SMODS.Consumable{
187187 for i in ipairs (G .jokers .cards ) do
188188 currentJoker = G .jokers .cards [i ]
189189 if currentJoker .rarity == 1 then
190- alternate_card (currentJoker )
190+ FG . alternate_card (currentJoker )
191191 end
192192 end
193193 return true
@@ -197,8 +197,8 @@ SMODS.Consumable{
197197 func = function ()
198198 for i in ipairs (G .jokers .cards ) do
199199 local currentCard = G .jokers .cards [i ]
200- if is_alternate (currentCard .config .center_key , joker_equivalents ) == " k" and currentCard .config .center .rarity == 2 then
201- alternate_card (currentCard .config .center_key , currentCard , joker_equivalents )
200+ if is_alternate (currentCard .config .center_key , FG . joker_equivalents ) == " k" and currentCard .config .center .rarity == 2 then
201+ FG . alternate_card (currentCard .config .center_key , currentCard , FG . joker_equivalents )
202202 end
203203 end
204204 return true
@@ -224,7 +224,7 @@ SMODS.Consumable{
224224 for i in ipairs (G .jokers .cards ) do
225225 currentJoker = G .jokers .cards [i ]
226226 if currentJoker .rarity == 1 then
227- alternate_card (currentJoker )
227+ FG . alternate_card (currentJoker )
228228 end
229229 end
230230 return true
@@ -234,8 +234,8 @@ SMODS.Consumable{
234234 func = function ()
235235 for i in ipairs (G .jokers .cards ) do
236236 local currentCard = G .jokers .cards [i ]
237- if is_alternate (currentCard .config .center_key , joker_equivalents ) == " k" and currentCard .config .center .rarity == 3 then
238- alternate_card (currentCard .config .center_key , currentCard , joker_equivalents )
237+ if is_alternate (currentCard .config .center_key , FG . joker_equivalents ) == " k" and currentCard .config .center .rarity == 3 then
238+ FG . alternate_card (currentCard .config .center_key , currentCard , FG . joker_equivalents )
239239 end
240240 end
241241 return true
0 commit comments