Closed M-Evans closed 11 months ago
There should not be necessary to require rpg table, that bloats the scenarios that don't use rpg while using this module. For this functionality, there is this function that returns the module if it is required somewhere else:
is_loaded(
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
All Submissions:
Tested Changes:
Changes to Core Features:
Comments
explanation: I enabled both
hunger
andrpg
(v2) locally, and noticed that the "player used capsule" handlers" fire simultaneously. the effect is that trying to spellcast causes the player to bloat, with no recourse.my attempt at a fix here is to detect whether a player has spellcasting active, and use this to prevent updating the hunger value. this works for me locally.
note that this introduces a dependency on
modules.rpg.table
; nothing in the require path will causerpg
to be enabled where it is not currently enabled. I understand this pattern is a bit precarious, though, so please let me know if there is a better way to accomplish this.