-
Notifications
You must be signed in to change notification settings - Fork 170
SMODS.Sticker
N edited this page Feb 10, 2026
·
6 revisions
-
Required parameters:
key-
loc_txtor localization entry (reference)
-
Optional parameters (defaults):
-
atlas = 'stickers', pos = { x = 0, y = 0 }(reference) -
badge_colour: Colour of this sticker's badge. -
hide_badge: If set totrue, no badge is shown for this sticker. -
default_compat: Default compatibility with cards. Iftrue, all cards can have this sticker unless otherwise specified. -
compat_exceptions: Array of keys of centers that have non-default compatibility with this sticker.-
default_compat = true: sticker cannot be applied to centers incompat_exceptions -
default_compat = false: sticker can only be applied to centers incompat_exceptions
-
-
sets, list of pools that this sticker is allowed to be applied on, format:
{ Joker = true }-
rate = 0.3: Chance of the sticker applying on an eligible card -
needs_enable_flag: If set totrue, this sticker requiresG.GAME.modifiers['enable_'..self.key]to betruebefore it can be applied. -
always_scores: Iftrue, editioned card always counts in scoring. -
never_scores: Iftrue, editioned card never counts in scoring (supersedesalways_scores).
-
-
calculate(self, card, context)(reference) -
loc_vars(reference)- Due to some constraints, the functionality of
loc_varson stickers is limited. Out of all possible return values, onlyvars,keyandsetare supported.
- Due to some constraints, the functionality of
-
should_apply(self, card, center, area, bypass_roll) -> bool- Returns true if the sticker can be applied to the card.
-
bypass_rollskips the RNG check and only looks for compatibility
-
apply(self, card, val)- Handles applying and removing the sticker
- Sets
card.ability[self.key]tovalby default.
-
draw(self, card, layer)- Draws the sprite and shader of the sticker.
Game Objects
- API Documentation
- SMODS.Achievement
- SMODS.Atlas
- SMODS.Blind
- SMODS.Center
- SMODS.Challenge
- SMODS.DeckSkin
- SMODS.DrawStep
- SMODS.Gradient
- SMODS.https
- SMODS.Keybind
- SMODS.Language
- SMODS.ObjectType
- SMODS.PokerHand
- SMODS.Rank and SMODS.Suit
- SMODS.Rarity
- SMODS.Seal
- SMODS.Sound
- SMODS.Stake
- SMODS.Sticker
- SMODS.Tag
Guides
- Your First Mod
- Mod Metadata
- The Mod Object
- Calculate Functions
- Perma-bonuses
- Logging
- Event Manager
- Localization
- Text Styling
- UI Structure
- Utility Functions
- All About
G - Internal Documentation
Release Notes
Found an issue, or want to add something? Submit a PR to the Wiki repo.