Skip to content

Conversation

@the-Astra
Copy link
Contributor

@the-Astra the-Astra commented Sep 22, 2025

Allows better functionality when applying and removing stickers. Runs two new contexts apply_sticker = true and remove_sticker = true along with the card and sticker.

  • apply_sticker context also differentiates between stickers applied to cards by the game (i.e. higher stake shops and challenges) and stickers applied by modded objects. Done via global value SMODS.sticker_from_game

Also overrides vanilla sticker applying functions (e.g. Card:set_eternal) to use SMODS funcs instead to allow for backwards compatibility

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

@english5040
Copy link
Collaborator

just a note that Eremel said they are going to change the sticker application API, in case you wanted to discuss

@the-Astra
Copy link
Contributor Author

just a note that Eremel said they are going to change the sticker application API, in case you wanted to discuss

I remember hearing this at some point. I foresee these functions persisting in some shape or form when he does touch on it, hence why I made the PR now instead of waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants