-
Notifications
You must be signed in to change notification settings - Fork 0
Card Upgrades
ellestuff. edited this page Mar 31, 2026
·
2 revisions
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.
-
-
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_varsfunctions
- Doesn't have an info_queue argument like standard
-
(Optional)
calculate(self, card): Code that runs when the upgrade ends. Does not have context checks. -
(Optional)
values(self, card):card.ability.extraentries 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
}