diff options
| author | Malkierian <malkierian@gmail.com> | 2025-04-11 12:49:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 15:49:34 -0400 |
| commit | f0f2157a4c2b4bc6cbe239eebb1e4a2b54c80321 (patch) | |
| tree | 40c36382cb3061f7b0498ecba284e9989a76961e /soh/src/code | |
| parent | 698fca8862b791e6458c98e4e3d7849189d0a213 (diff) | |
Move processing for RAND_INF_WEIRD_EGG to trade item processing so it happens whenever you get the egg. (#5382)
Remove RSK check for garden entrance because access is still handled by `CanUse(RG_WEIRD_EGG)`.
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_parameter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index facbbfd81..2a6d3369d 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -2434,6 +2434,9 @@ u8 Item_Give(PlayState* play, u8 item) { } } else { Flags_SetRandomizerInf(item - ITEM_WEIRD_EGG + RAND_INF_CHILD_TRADES_HAS_WEIRD_EGG); + if (item == ITEM_WEIRD_EGG) { + Flags_SetRandomizerInf(RAND_INF_WEIRD_EGG); + } } } |
