mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 13:17:58 +03:00
shipinit
This commit is contained in:
parent
bc1b17cb49
commit
4bcafa646f
4 changed files with 16 additions and 23 deletions
|
@ -1,15 +1,13 @@
|
|||
#include "soh/Enhancements/game-interactor/GameInteractor.h"
|
||||
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
|
||||
#include "soh/OTRGlobals.h"
|
||||
#include "soh/ShipInit.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "z64save.h"
|
||||
}
|
||||
|
||||
void FasterBeanSkulltula_Register() {
|
||||
REGISTER_VB_SHOULD(VB_SPAWN_BEAN_SKULLTULA, {
|
||||
if (CVarGetInteger(CVAR_ENHANCEMENT("FasterBeanSkull"), 0)) {
|
||||
*should = true;
|
||||
}
|
||||
});
|
||||
void RegisterFasterBeanSkulltula() {
|
||||
COND_VB_SHOULD(VB_SPAWN_BEAN_SKULLTULA, CVarGetInteger(CVAR_ENHANCEMENT("FasterBeanSkull"), 0),
|
||||
{ *should = true; });
|
||||
}
|
||||
|
||||
static RegisterShipInitFunc initFunc(RegisterFasterBeanSkulltula, { CVAR_ENHANCEMENT("FasterBeanSkull") });
|
||||
|
|
|
@ -1,20 +1,19 @@
|
|||
#include "soh/Enhancements/game-interactor/GameInteractor.h"
|
||||
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
|
||||
#include "soh/OTRGlobals.h"
|
||||
#include "soh/ShipInit.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include "z64save.h"
|
||||
}
|
||||
|
||||
void FasterEmptyBottle_Register() {
|
||||
REGISTER_VB_SHOULD(VB_EMPTYING_BOTTLE, {
|
||||
if (CVarGetInteger(CVAR_ENHANCEMENT("FasterBottleEmpty"), 0)) {
|
||||
Player* player = va_arg(args, Player*);
|
||||
if (player->skelAnime.curFrame <= 60.0f) {
|
||||
player->skelAnime.playSpeed = 3.0f;
|
||||
} else {
|
||||
player->skelAnime.playSpeed = 1.0f;
|
||||
}
|
||||
void RegisterFasterEmptyBottle() {
|
||||
COND_VB_SHOULD(VB_EMPTYING_BOTTLE, CVarGetInteger(CVAR_ENHANCEMENT("FasterBottleEmpty"), 0), {
|
||||
Player* player = va_arg(args, Player*);
|
||||
if (player->skelAnime.curFrame <= 60.0f) {
|
||||
player->skelAnime.playSpeed = 3.0f;
|
||||
} else {
|
||||
player->skelAnime.playSpeed = 1.0f;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
static RegisterShipInitFunc initFunc(RegisterFasterEmptyBottle, { CVAR_ENHANCEMENT("FasterBottleEmpty") });
|
||||
|
|
|
@ -15,6 +15,4 @@ void TimeSavers_Register() {
|
|||
SkipChildRutoInteractions_Register();
|
||||
FasterHeavyBlockLift_Register();
|
||||
FasterRupeeAccumulator_Register();
|
||||
FasterEmptyBottle_Register();
|
||||
FasterBeanSkulltula_Register();
|
||||
}
|
||||
|
|
|
@ -17,7 +17,5 @@ void MoveMidoInKokiriForest_Register();
|
|||
void SkipChildRutoInteractions_Register();
|
||||
void FasterHeavyBlockLift_Register();
|
||||
void FasterRupeeAccumulator_Register();
|
||||
void FasterEmptyBottle_Register();
|
||||
void FasterBeanSkulltula_Register();
|
||||
|
||||
#endif // TIME_SAVERS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue