summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2023-02-16 20:10:31 -0500
committerGitHub <noreply@github.com>2023-02-16 20:10:31 -0500
commit3d8752b3aa53030cc3aa92b9f66c114378c62542 (patch)
tree069bdb160510bbb3c72508bfa7f45eeeb92e14b7 /soh/src/code
parentf4f10e4a4934a2824ce623c3aeb482186b132051 (diff)
you found greg! (#2458)
adds greg to the item tracker --------- Co-authored-by: briaguya <briaguya@alice>
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_parameter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index a694781ad..2d22afe6b 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -2578,6 +2578,12 @@ u16 Randomizer_Item_Give(PlayState* play, GetItemEntry giEntry) {
return RG_NONE;
}
+ if (item == RG_GREG_RUPEE) {
+ Rupees_ChangeBy(1);
+ Flags_SetRandomizerInf(RAND_INF_GREG_FOUND);
+ return RG_NONE;
+ }
+
temp = gSaveContext.inventory.items[slot];
osSyncPrintf("Item_Register(%d)=%d %d\n", slot, item, temp);
INV_CONTENT(item) = item;