mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
trust -129
This commit is contained in:
parent
22a52cb60f
commit
67668fd603
1 changed files with 7 additions and 14 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue