Skip to content

Commit

Permalink
Adds reset function to z_en_si (GS Token) to set getItemId to vanilla…
Browse files Browse the repository at this point in the history
… after resetting SoH. (#3925)
  • Loading branch information
Malkierian committed Feb 16, 2024
1 parent 43fed2d commit 0cb4cd1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion soh/src/overlays/actors/ovl_En_Si/z_en_si.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ void EnSi_Init(Actor* thisx, PlayState* play);
void EnSi_Destroy(Actor* thisx, PlayState* play);
void EnSi_Update(Actor* thisx, PlayState* play);
void EnSi_Draw(Actor* thisx, PlayState* play);
void EnSi_Reset();

s32 func_80AFB748(EnSi* this, PlayState* play);
void func_80AFB768(EnSi* this, PlayState* play);
Expand Down Expand Up @@ -61,7 +62,7 @@ const ActorInit En_Si_InitVars = {
(ActorFunc)EnSi_Destroy,
(ActorFunc)EnSi_Update,
(ActorFunc)EnSi_Draw,
NULL,
(ActorResetFunc)EnSi_Reset,
};

void EnSi_Init(Actor* thisx, PlayState* play) {
Expand Down Expand Up @@ -224,6 +225,11 @@ void EnSi_Draw(Actor* thisx, PlayState* play) {
}
}

void EnSi_Reset() {
textId = 0xB4;
giveItemId = ITEM_SKULL_TOKEN;
}

void Randomizer_UpdateSkullReward(EnSi* this, PlayState* play) {
Player* player = GET_PLAYER(play);

Expand Down

0 comments on commit 0cb4cd1

Please sign in to comment.