Built-in Time Splits [v2.1] (#4455)
* Adds 2 new Hooks, OnTimeStamp and OnPlayerHealthChange. * Re-add Timesplit code * Committing custom Assets * Commit Asset definitions * Adding Windows * Fix Modal Window and others * Time Splits v2 new Hooks etc. * Fixing Time Displays * Adding Big Poe split * Update Options Tab * List Preview and Removing Split Entries * Allow Split Table to resize * Fix Window Color and Adding Non Items to Split List * Correct Song Image Skew
This commit is contained in:
@@ -1844,6 +1844,7 @@ void GameplayStats_SetTimestamp(PlayState* play, u8 item) {
|
||||
}
|
||||
|
||||
gSaveContext.sohStats.itemTimestamp[item] = time;
|
||||
GameInteractor_ExecuteOnTimestamp(item);
|
||||
}
|
||||
|
||||
// Gameplay stat tracking: Update time the item was acquired
|
||||
@@ -3321,6 +3322,8 @@ s32 Health_ChangeBy(PlayState* play, s16 healthChange) {
|
||||
// "Life=%d *** %d ******"
|
||||
osSyncPrintf(" ライフ=%d *** %d ******\n", gSaveContext.health, healthLevel);
|
||||
|
||||
GameInteractor_ExecuteOnPlayerHealthChange(healthChange);
|
||||
|
||||
if (gSaveContext.health <= 0) {
|
||||
gSaveContext.health = 0;
|
||||
return 0;
|
||||
|
||||
@@ -14686,6 +14686,7 @@ void Player_Action_SwingBottle(Player* this, PlayState* play) {
|
||||
Message_StartTextbox(play, sBottleCatchInfo[this->av1.bottleCatchType - 1].textId, &this->actor);
|
||||
}
|
||||
Audio_PlayFanfare(NA_BGM_ITEM_GET | 0x900);
|
||||
GameInteractor_ExecuteOnPlayerBottleUpdate((sBottleCatchInfo[this->av1.bottleCatchType - 1].itemId));
|
||||
this->av2.startedTextbox = true;
|
||||
} else if (Message_GetState(&play->msgCtx) == TEXT_STATE_CLOSING) {
|
||||
this->av1.bottleCatchType = BOTTLE_CATCH_NONE;
|
||||
|
||||
Reference in New Issue
Block a user