Skip to content

Card Upgrades

ellestuff. edited this page Mar 31, 2026 · 2 revisions

Card.slime_upgrade

Card Upgrades are a new feature added by slimeutils. that allows the player to turn cards into different cards when a condition is met.

First, add this slime_upgrade table to the card's Center class. (SMODS.Joker, SMODS.Enhancement, etc), and then you can start adding to it.

  • Parameters:

    • card: The key of the card it'll turn into once upgraded. (eg: j_joker)
    • (Optional) bypass_lock = false: Whether the card can upgrade while the target card is locked.
    • (Optional) loc_key: The localization key to use.
      • The default is "slime_upgr_"..card_key (eg: slime_upgr_j_joker)
      • Upgrade localization tables are found in descriptions.Other
  • Methods:

    • can_use(self, card): Returns whether the upgrade is usable.
    • (Optional) loc_vars(self, card) (reference)
      • Doesn't have an info_queue argument like standard loc_vars functions
      • Is only the vars list found in a standard loc_vars table.
    • (Optional) calculate(self, card): Code that runs when the upgrade ends. Does not have context checks.
    • (Optional) values(self, card): card.ability.extra entries to overwrite in the new card
      • Values not listed keep their original values
      • Returns a table of entries like this:
return {
    mult = card.ability.extra.mult * 2,
    chips = 4
}

Clone this wiki locally