Files
bb386e25a0 [Enhancement] Enable putaway as Fierce Deity (#717)
* Add enhancement to enable putaway as Fierce Deity

* Fix hooks for putaway and FD sword wield

---------

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>
2024-10-10 07:51:05 -05:00

20 lines
609 B
C++

#include <libultraship/bridge.h>
#include "2s2h/GameInteractor/GameInteractor.h"
#include "variables.h"
void RegisterFierceDeityPutaway() {
REGISTER_VB_SHOULD(VB_SHOULD_PUTAWAY, {
if (CVarGetInteger("gEnhancements.Player.FierceDeityPutaway", 0)) {
Player* player = GET_PLAYER(gPlayState);
if (player->transformation == PLAYER_FORM_FIERCE_DEITY)
*should = true;
}
});
REGISTER_VB_SHOULD(VB_FD_ALWAYS_WIELD_SWORD, {
if (CVarGetInteger("gEnhancements.Player.FierceDeityPutaway", 0)) {
*should = false;
}
});
}