summaryrefslogtreecommitdiff
path: root/soh/src/code/z_parameter.c
diff options
context:
space:
mode:
authorCaladius <Caladius@users.noreply.github.com>2024-10-22 13:17:30 -0400
committerGitHub <noreply@github.com>2024-10-22 10:17:30 -0700
commit75a0979bc7e97a6a3d262bd917ac123bacb0697c (patch)
treeb2df264d5107c7b7b289e494f7155d44323a68d0 /soh/src/code/z_parameter.c
parent8c304d54b26b8bd776af36a2af8059817af7cbbe (diff)
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
Diffstat (limited to 'soh/src/code/z_parameter.c')
-rw-r--r--soh/src/code/z_parameter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index ba1f89bbc..3135eb210 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -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;