@@ -244,3 +244,86 @@ SMODS.Consumable{
244244 return true
245245 end
246246}
247+
248+ SMODS .Consumable {
249+ key = " stake" ,
250+ set = " abberation" ,
251+ atlas = " abberations" ,
252+ pos = { x = 4 , y = 0 },
253+ loc_txt = {
254+ name = " Stake" ,
255+ text = {
256+ " Creates up to {C:attention}#1#" ,
257+ " random {C:purple}Aberration{} cards" ,
258+ " {C:inactive}(Must have room)" ,
259+ }
260+ },
261+ config = {
262+ extra = {
263+ cards = 2
264+
265+ }
266+ },
267+ can_use = function (self , card )
268+ return true
269+ end ,
270+ loc_vars = function (self ,info_queue , card )
271+ return {vars = {card .ability .extra .cards }}
272+ end ,
273+ use = function (card , area , copier )
274+ if # G .consumeables .cards + G .GAME .consumeable_buffer < G .consumeables .config .card_limit then
275+ for i = 1 , math.min (card .config .extra .cards , G .consumeables .config .card_limit - # G .consumeables .cards ) do
276+ G .GAME .consumeable_buffer = G .GAME .consumeable_buffer + 1
277+ G .E_MANAGER :add_event (Event ({
278+ trigger = ' before' ,
279+ delay = 0.0 ,
280+ func = (function ()
281+ local card = create_card (' abberation' ,G .consumeables , nil , nil , nil , nil , nil , ' 8ba' )
282+ card :add_to_deck ()
283+ G .consumeables :emplace (card )
284+ G .GAME .consumeable_buffer = 0
285+ card :juice_up (0.3 , 0.5 )
286+ return true
287+ end )}))
288+ end
289+ end
290+ end
291+ }
292+
293+ SMODS .Consumable {
294+ key = " fildivoce" ,
295+ set = " abberation" ,
296+ atlas = " abberations" ,
297+ pos = { x = 3 , y = 0 },
298+ loc_txt = {
299+ name = " Fil Di Voce" ,
300+ text = {
301+ " Gives {C:money}$#1#{} for every" ,
302+ " owned {C:purple}Alternate{} Joker" ,
303+ }
304+ },
305+ config = {
306+ extra = {
307+ dollars = 5
308+
309+ }
310+ },
311+ can_use = function (self , card )
312+ return true
313+ end ,
314+ loc_vars = function (self ,info_queue , card )
315+ return {vars = {card .ability .extra .dollars }}
316+ end ,
317+ use = function (card , area , copier )
318+ for i = 1 , # G .jokers .cards do
319+ if (G .jokers .cards [i ].config .center .rarity == " fg_common" or G .jokers .cards [i ].config .center .rarity == " fg_uncommon" or G .jokers .cards [i ].config .center .rarity == " fg_rare" or G .jokers .cards [i ].config .center .rarity == " fg_legendary" ) then
320+ G .E_MANAGER :add_event (Event ({trigger = ' after' , delay = 0.4 , func = function ()
321+ play_sound (' timpani' )
322+ G .jokers .cards [i ]:juice_up (0.3 , 0.5 )
323+ ease_dollars (card .config .extra .dollars , true )
324+ return true end }))
325+ delay (0.2 )
326+ end
327+ end
328+ end
329+ }
0 commit comments