Skip to content

SMODS.should_keep_on_use for finer control over keep_on_use#1178

Open
borb43 wants to merge 3 commits intoSteamodded:mainfrom
borb43:keep_on_use
Open

SMODS.should_keep_on_use for finer control over keep_on_use#1178
borb43 wants to merge 3 commits intoSteamodded:mainfrom
borb43:keep_on_use

Conversation

@borb43
Copy link

@borb43 borb43 commented Jan 24, 2026

Adds SMODS.should_keep_on_use(card), which now handles calling a center's keep_on_use. This can be hooked to more easily allow external effects to keep used consumables, whereas previously all mods would have to patch the same piece of code to achieve this.

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.

@Aurelius7309
Copy link
Member

The more practical approach would probably to either integrate keep_on_use into the using consumable context or make a new context for it. Hookables for effects like this aren't all that desirable

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