-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dowsing #17
Dowsing #17
Conversation
@@ -4,5 +4,17 @@ SPECIAL_ACTOR_PROFILE(TAG_MAP_INST, dTgMapInst_c, fProfile::TAG_MAP_INST, 0x021d | |||
|
|||
int dTgMapInst_c::create() { | |||
field_0xfc = params & 0xff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for something like this, is it worth it to change the field to be something like params1_0xFF
just so we know it can be linked to object parameters
if (slot >= 8) { | ||
return false; | ||
} | ||
|
||
if (slot == 6) { | ||
return true; | ||
} | ||
|
||
if (slot == 0) { | ||
return hasZeldaDowsing() || hasAnyTrialDowsing() || hasSacredWaterDowsing() || hasSandshipDowsing() || | ||
hasTadtoneDowsing() || hasPropellerDowsing() || hasWaterBasinDowsing(); | ||
} else if (slot == 2) { | ||
return hasCrystalBallDowsing() || hasPumpkinDowsing() || hasNewPlantSpeciesDowsing() || hasKikwiDowsing() || | ||
hasKeyPieceDowsing() || hasDesertNodeDowsing() || hasPartyWheelDowsing(); | ||
} else if (StoryFlagManager::sInstance->getCounterOrFlag(DOWSING_TARGET_STORY_FLAGS[slot])) { | ||
// TODO small instruction shuffle | ||
return true; | ||
} | ||
|
||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Havent tested, but can this not use the enum? or maybe a switch? nevermind,
getNode
linked list stuff