trust -129

This commit is contained in:
Demur Rumed 2025-06-13 02:27:36 +00:00
commit 67668fd603

View file

@ -3749,21 +3749,14 @@ TreeIdentity Randomizer::IdentifyTree(s32 sceneNum, s32 posX, s32 posZ) {
sceneNum = SCENE_MARKET_DAY; sceneNum = SCENE_MARKET_DAY;
} }
for (int x = -1; x <= 1; x++) { s32 actorParams = TWO_ACTOR_PARAMS(posX, posZ);
for (int z = -1; z <= 1; z++) {
s32 actorParams = TWO_ACTOR_PARAMS(posX + x, posZ + z);
Rando::Location* location = GetCheckObjectFromActor(ACTOR_EN_WOOD02, sceneNum, actorParams); Rando::Location* location = GetCheckObjectFromActor(ACTOR_EN_WOOD02, sceneNum, actorParams);
if (location->GetRandomizerCheck() != RC_UNKNOWN_CHECK) { if (location->GetRandomizerCheck() != RC_UNKNOWN_CHECK &&
if (location->GetRCType() == RCTYPE_NLTREE && (location->GetRCType() != RCTYPE_NLTREE || GetRandoSettingValue(RSK_LOGIC_RULES) == RO_LOGIC_NO_LOGIC)) {
CVarGetInteger(CVAR_RANDOMIZER_SETTING("LogicRules"), RO_LOGIC_GLITCHLESS) != RO_LOGIC_NO_LOGIC) {
break;
}
treeIdentity.randomizerInf = rcToRandomizerInf[location->GetRandomizerCheck()]; treeIdentity.randomizerInf = rcToRandomizerInf[location->GetRandomizerCheck()];
treeIdentity.randomizerCheck = location->GetRandomizerCheck(); treeIdentity.randomizerCheck = location->GetRandomizerCheck();
return treeIdentity; return treeIdentity;
} }
}
}
treeIdentity.randomizerInf = RAND_INF_MAX; treeIdentity.randomizerInf = RAND_INF_MAX;
treeIdentity.randomizerCheck = RC_UNKNOWN_CHECK; treeIdentity.randomizerCheck = RC_UNKNOWN_CHECK;