mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
* Add enhancement to enable putaway as Fierce Deity * Fix hooks for putaway and FD sword wield --------- Co-authored-by: Garrett Cox <garrettjcox@gmail.com>
20 lines
609 B
C++
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;
|
|
}
|
|
});
|
|
}
|