summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorMalkierian <malkierian@gmail.com>2024-05-07 13:07:33 -0700
committerMalkierian <malkierian@gmail.com>2024-05-07 13:07:33 -0700
commitcfd93f160d7cf6d42b22066f9b0d9c2b3454d42c (patch)
tree9cd66c621b01a0e3e98e852dba21209d61e4e055 /soh/src/code
parentd10b68516c317e182d3fd416393a6aa82492dab6 (diff)
Fix check tracker performance changes.
Move Mysterious Shuffle functionality to `hook_handlers.cpp` when applicable.
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_en_item00.c37
1 files changed, 2 insertions, 35 deletions
diff --git a/soh/src/code/z_en_item00.c b/soh/src/code/z_en_item00.c
index f286830e6..8e30f462a 100644
--- a/soh/src/code/z_en_item00.c
+++ b/soh/src/code/z_en_item00.c
@@ -1361,23 +1361,7 @@ static const Vtx customDropVtx[] = {
* Draw Function used for most collectible types of En_Item00 (ammo, bombs, sticks, nuts, magic...).
*/
void EnItem00_DrawCollectible(EnItem00* this, PlayState* play) {
- if (IS_RANDO && (this->getItemId != GI_NONE || this->actor.params == ITEM00_SMALL_KEY)) {
- RandomizerCheck randoCheck =
- Randomizer_GetCheckFromActor(this->actor.id, play->sceneNum, this->ogParams);
- GetItemEntry giEntry = this->randoGiEntry;
-
- if (randoCheck != RC_UNKNOWN_CHECK) {
- this->randoGiEntry = Randomizer_GetItemFromKnownCheck(randoCheck, GI_NONE);
- giEntry = (CVarGetInteger(CVAR_RANDOMIZER_ENHANCEMENT("MysteriousShuffle"), 0) && Randomizer_IsCheckShuffled(randoCheck))
- ? GetItemMystery() : this->randoGiEntry;
- giEntry.getItemFrom = ITEM_FROM_FREESTANDING;
- }
-
- f32 mtxScale = 16.0f;
- Matrix_Scale(mtxScale, mtxScale, mtxScale, MTXMODE_APPLY);
- EnItem00_CustomItemsParticles(&this->actor, play, giEntry);
- GetItemEntry_Draw(play, giEntry);
- } else if (this->actor.params == ITEM00_BOMBCHU) {
+ if (this->actor.params == ITEM00_BOMBCHU) {
OPEN_DISPS(play->state.gfxCtx);
Matrix_ReplaceRotation(&play->billboardMtxF);
@@ -1457,24 +1441,7 @@ void EnItem00_DrawHeartContainer(EnItem00* this, PlayState* play) {
* Draw Function used for the Piece of Heart type of En_Item00.
*/
void EnItem00_DrawHeartPiece(EnItem00* this, PlayState* play) {
- if (IS_RANDO) {
- RandomizerCheck randoCheck =
- Randomizer_GetCheckFromActor(this->actor.id, play->sceneNum, this->ogParams);
- GetItemEntry giEntry = this->randoGiEntry;
-
- if (randoCheck != RC_UNKNOWN_CHECK) {
- this->randoGiEntry = Randomizer_GetItemFromKnownCheck(randoCheck, GI_NONE);
- giEntry = (CVarGetInteger(CVAR_RANDOMIZER_ENHANCEMENT("MysteriousShuffle"), 0) && Randomizer_IsCheckShuffled(randoCheck))
- ? GetItemMystery() : this->randoGiEntry;
- giEntry.getItemFrom = ITEM_FROM_FREESTANDING;
- }
-
- f32 mtxScale = 16.0f;
- Matrix_Scale(mtxScale, mtxScale, mtxScale, MTXMODE_APPLY);
- EnItem00_CustomItemsParticles(&this->actor, play, giEntry);
- GetItemEntry_Draw(play, giEntry);
- } else {
- s32 pad;
+ s32 pad;
OPEN_DISPS(play->state.gfxCtx);