diff --git a/SMODS.Center/SMODS.Consumable.md b/SMODS.Center/SMODS.Consumable.md index 7d38421..23ef25a 100644 --- a/SMODS.Center/SMODS.Consumable.md +++ b/SMODS.Center/SMODS.Consumable.md @@ -46,6 +46,8 @@ - Define custom logic for when a card is allowed to spawn. A card can spawn if `in_pool` returns true and all other checks are met. - `allow_duplicates` allows this card to spawn when one already exists, even without Showman. - When called from `generate_card_ui`, the `_append` key is passed as `args.source`. +- `can_sell(self, card, context)` + - Define additional custom logic for when your card is allowed to be sold. By default, the card is usually prevented from being sold during scoring or if it is eternal. If defined, can_sell is then also checked afterwards and if it returns false, the card can't be sold. - `update(self, card, dt)` - For actions that happen every frame. - `set_sprites(self, card, front)` diff --git a/SMODS.Center/SMODS.Joker.md b/SMODS.Center/SMODS.Joker.md index ce37fc4..bc53a9c 100644 --- a/SMODS.Center/SMODS.Joker.md +++ b/SMODS.Center/SMODS.Joker.md @@ -40,6 +40,8 @@ - Define custom logic for when a card is allowed to spawn. A card can spawn if `in_pool` returns true and all other checks are met. - `allow_duplicates` allows this card to spawn when one already exists, even without Showman. - When called from `generate_card_ui`, the `_append` key is passed as `args.source`. +- `can_sell(self, card, context)` + - Define additional custom logic for when your card is allowed to be sold. By default, the card is usually prevented from being sold during scoring or if it is eternal. If defined, can_sell is then also checked afterwards and if it returns false, the card can't be sold. - `update(self, card, dt)` - For actions that happen every frame. - `set_sprites(self, card, front)`