blob: ced56491902457532f175cdfff2bd8224419c029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <libultraship/bridge/consolevariablebridge.h>
#include "2s2h/GameInteractor/GameInteractor.h"
#include "2s2h/ShipInit.hpp"
extern "C" {
#include "variables.h"
}
#define CVAR_NAME "gEnhancements.Player.FierceDeityPutaway"
#define CVAR CVarGetInteger(CVAR_NAME, 0)
void RegisterFierceDeityPutaway() {
COND_VB_SHOULD(VB_SHOULD_PUTAWAY, CVAR, {
Player* player = GET_PLAYER(gPlayState);
if (player->transformation == PLAYER_FORM_FIERCE_DEITY) {
*should = true;
}
});
COND_VB_SHOULD(VB_FD_ALWAYS_WIELD_SWORD, CVAR, { *should = false; });
}
static RegisterShipInitFunc initFunc(RegisterFierceDeityPutaway, { CVAR_NAME });
|