Skip to content

notmario/RudeBuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rudebuster

api mod for balatro adds a Planeswalker subtype

how can i make my own planeswalker joker?

  1. depend on this mod (obviously)
  2. create a joker whose art uses the planeswalker frame in the repo (modification is allowed, the bright green should be the colour identity or whatever, the only thing that matters is the loyalty symbol in the bottom middle)
  3. in the joker definition, set planeswalker = true, planeswalker_costs = { a, b, c }, and default_loyalty_effects = true (where a, b, and c are the costs, you may have 1-99 abilities)
  4. in the joker's config.extra, set loyalty = [starting loyalty] and uses = 1
  5. create a can_loyalty(card, index) function on the joker. example:
can_loyalty = function(card, idx)
  if idx == 1 then
    return #G.hand.cards >= 1
  elseif idx == 2 then
    return #G.hand.highlighted >= 1 and #G.hand.highlighted <= 3
  elseif idx == 3 then
    return true
  else return false end
end,
  1. create a loyalty(card, index) function on the joker. example:
loyalty = function(card, idx)
  if idx == 1 then
    SMODS.draw_cards(3)
  elseif idx == 2 then
    destroyed_cards = {}
    for i=#G.hand.highlighted, 1, -1 do
      destroyed_cards[#destroyed_cards+1] = G.hand.highlighted[i]
    end
    SMODS.destroy_cards(destroyed_cards)
  elseif idx == 3 then
    card.ability.extra.scoring = true
  end
end

and that should be it??

About

balatro api for planeswalkers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages