summaryrefslogtreecommitdiff
path: root/mm/2s2h/Enhancements/Equipment/ChuDrops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mm/2s2h/Enhancements/Equipment/ChuDrops.cpp')
-rw-r--r--mm/2s2h/Enhancements/Equipment/ChuDrops.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/2s2h/Enhancements/Equipment/ChuDrops.cpp b/mm/2s2h/Enhancements/Equipment/ChuDrops.cpp
index 40ddc2231..2ed0c4ae0 100644
--- a/mm/2s2h/Enhancements/Equipment/ChuDrops.cpp
+++ b/mm/2s2h/Enhancements/Equipment/ChuDrops.cpp
@@ -74,7 +74,8 @@ static void ChuDrop_Draw(Actor* actor, PlayState* play) {
void RegisterChuDrops() {
COND_ID_HOOK(ShouldActorInit, ACTOR_EN_ITEM00, CVAR, [](Actor* actor, bool* should) {
- if (actor->params == ITEM00_BOMBS_0 || actor->params == ITEM00_BOMBS_A || actor->params == ITEM00_BOMBS_B) {
+ u8 params = actor->params & 0xFF;
+ if (params == ITEM00_BOMBS_0 || params == ITEM00_BOMBS_A || params == ITEM00_BOMBS_B) {
if (rand() % 100 < 50) {
*should = false;
EnItem00* newItem =