-
Notifications
You must be signed in to change notification settings - Fork 192
SMODS.Seal
N edited this page Apr 8, 2026
·
11 revisions
-
Required parameters:
-
key, -
loc_txtor localization entry (reference)- For use with localization file, the description should be set as
descriptions.Other[key:lower()..'_seal']. -
loc_txtshould contain an additionallabelstring. It is used on badges, whilenameis displayed at the top of info boxes. For use with localization files, this label should be set asmisc.labels[key:lower()..'_seal'].
- For use with localization file, the description should be set as
-
-
Optional parameters (defaults):
-
atlas = 'Joker', pos = { x = 0, y = 0 }(reference) -
config = {}, discovered = false, no_collection, prefix_config, dependencies, badge_colour, text_colour(reference)- Values in
configare copied tocard.ability.sealwhen the seal is applied tocard.
- Values in
badge_colour = HEX('FFFFFF')-
sound = { sound = 'gold_seal', per = 1.2, vol = 0.4 }: The sound that should play when the seal is applied to a card.-
sound: The key of the sound to play. -
per: The pitch at which the sound should be played. -
vol: The volume at which the sound should be played.
-
-
always_scores: Iftrue, cards with this seal always count in scoring. -
never_scores: Iftrue, cards with this seal never count in scoring (supersedesalways_scores).
-
-
calculate(self, card, context)(reference) -
loc_vars, generate_ui(reference) -
get_p_dollars(self, card) -> number- Gives money when a card with this seal is played.
-
update(self, card, dt)- For actions that happen every frame.
-
draw(self, card, layer)- Draws the sprite and shader of the seal.
-
Card:set_seal(seal, immediate, silent)- Use this function to set the seal of a card
-
edition,nilremoves seal,keyof seal as a string -
immediate, boolean -
silent, boolean
-
- Use this function to set the seal of a card
Game Objects
- API Documentation
- SMODS.Achievement
- SMODS.Atlas
- SMODS.Attribute
- SMODS.Blind
- SMODS.CanvasSprite
- SMODS.Center
- SMODS.Challenge
- SMODS.DeckSkin
- SMODS.DrawStep
- SMODS.DynaTextEffect
- SMODS.Font
- SMODS.Gradient
- SMODS.https
- SMODS.JimboQuip
- SMODS.Keybind
- SMODS.Language
- SMODS.ObjectType and SMODS.ConsumableType
- SMODS.PokerHand
- SMODS.Rank and SMODS.Suit
- SMODS.Rarity
- SMODS.Scoring_Parameter and SMODS.Scoring_Calculation
- SMODS.Seal
- SMODS.Shader and SMODS.ScreenShader
- SMODS.Sound
- SMODS.Stake
- SMODS.Sticker
- SMODS.Tag
Guides
- Your First Mod
- Mod Metadata
- The Mod Object
- Calculate Functions
- Perma-bonuses
- Object Weights
- 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.