Skip to content

Commit

Permalink
Do not update Unknown Item 2 if pickup is temporary (> Nothing)
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiNaruto committed Sep 5, 2024
1 parent a31baa2 commit 51ccef4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11447,6 +11447,8 @@ fn patch_dol(
check_custom_item:
cmpwi r29, { PickupType::ArtifactOfNewborn.kind() };
ble continue_init_power_up;
cmpwi r29, { PickupType::Nothing.kind() };
bge check_missile_launcher;
li r3, { PickupType::UnknownItem2.kind() };
rlwinm r0, r3, 0x3, 0x0, 0x1c;
add r3, r31, r0;
Expand All @@ -11466,6 +11468,7 @@ fn patch_dol(
set_custom_item:
stw r4, 0x0(r3);

check_missile_launcher:
// check if it is missile launcher
cmpwi r29, { PickupType::MissileLauncher.kind() };
bne check_power_bomb;
Expand Down

0 comments on commit 51ccef4

Please sign in to comment.