diff --git a/SMODS.Center/SMODS.Consumable.md b/SMODS.Center/SMODS.Consumable.md index 3f2e7a4..8e6ef0b 100644 --- a/SMODS.Center/SMODS.Consumable.md +++ b/SMODS.Center/SMODS.Consumable.md @@ -55,6 +55,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 `get_current_pool`, the `_append` key is passed as `args.source`. +- `can_sell(self, card, context) -> boolean?` + - 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 62297a7..2421f46 100644 --- a/SMODS.Center/SMODS.Joker.md +++ b/SMODS.Center/SMODS.Joker.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 `get_current_pool`, the `_append` key is passed as `args.source`. +- `can_sell(self, card, context) -> boolean?` + - 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)`