jwoolley / simpleton-mod

A custom character mod for Slay the Spire.
https://steamcommunity.com/sharedfiles/filedetails/?id=1717515299
1 stars 0 forks source link

Mod-scoped keywords #11

Open jwoolley opened 5 years ago

jwoolley commented 5 years ago

It's possible to scope custom keywords to the mod they're from, which prevents namespace clashes and provides an in-game label (which is helpful if e.g. you're playing as a different class with the mod enabled).

This is done by specifying MOD_ID when registering the keyword, I believe.

However, doing so prevents the keywords from being discovered for tooltips, which is bad. This change should add scoping without breaking tooltips for cards, relics, powers, potions, or custom UI elements.