-
Notifications
You must be signed in to change notification settings - Fork 0
Joker Use Buttons
ellestuff. edited this page Mar 31, 2026
·
1 revision
(Note: There are plans to add support for Enhancements but it hasn't been done yet)
This is a simple implementation of Use buttons, similar to Consumables, being added to Jokers, based on the implementation found in Mysthaps' LobotomyCorp Mod.
First, add this slime_active table to the card's Center class. (SMODS.Joker, SMODS.Enhancement, etc), and then you can start adding to it.
- Methods:
-
can_use(self, card): Returns whether the card is usable. -
calculate(self, card): Code that runs when the card is used. Does not have context checks. -
should_close(self, card): Returns whether to unhighlight the card when the card is used,
-