mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-28 12:22:20 -05:00
Adds reset function to z_en_si (GS Token) to set getItemId to vanilla after resetting SoH. (#3925)
This commit is contained in:
parent
43fed2d77e
commit
0cb4cd158a
@ -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);
|
||||
@ -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) {
|
||||
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user