-
Notifications
You must be signed in to change notification settings - Fork 82
SMODS.Seal
Casimir Eisenach edited this page Jan 22, 2025
·
4 revisions
-
Required parameters:
-
key
, -
loc_txt
or localization entry (reference)- For use with localization file, the description should be set as
descriptions.Other[key:lower()..'_seal']
. -
loc_txt
should contain an additionallabel
string. It is used on badges, whilename
is 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
(reference)- Values in
config
are copied tocard.ability.seal
when 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.
-
-
-
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.
Game Objects
- API Documentation
- SMODS.Achievement
- SMODS.Atlas
- SMODS.Blind
- SMODS.Center
- SMODS.Challenge
- SMODS.DeckSkin
- SMODS.Keybind
- SMODS.Language
- SMODS.ObjectType
- SMODS.PokerHand
- SMODS.Rarity
- SMODS.Seal
- SMODS.Sound
- SMODS.Stake
- SMODS.Sticker
- SMODS.Suit and SMODS.Rank
- SMODS.Tag
Guides
- Your First Mod
- Mod Metadata
- Calculate Functions
- Logging
- Event Manager
- Localization
- Mod functions
- UI Structure
- Utility Functions
Found an issue, or want to add something? Submit a PR to the Wiki repo.