mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
handle random mq dungeon count better (#3036)
Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
parent
a05d8131ec
commit
def7a15354
3 changed files with 27 additions and 5 deletions
|
@ -567,10 +567,10 @@ void InitializeChecks() {
|
|||
areasSpoiled |= (1 << rcObj.rcArea);
|
||||
}
|
||||
|
||||
showVOrMQ = (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_COUNT) > 0);
|
||||
//Bug: the above will spoil that everything is vanilla if the random count rolled 0.
|
||||
// Should use the below instead, but the setting isn't currently saved to the savefile
|
||||
//showVOrMQ = (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_RANDOM_MQ_DUNGEONS) != RO_GENERIC_OFF);
|
||||
showVOrMQ = (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_RANDOM_MQ_DUNGEONS) == RO_MQ_DUNGEONS_RANDOM_NUMBER ||
|
||||
(OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_RANDOM_MQ_DUNGEONS) == RO_MQ_DUNGEONS_SET_NUMBER &&
|
||||
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_COUNT) < 12)
|
||||
);
|
||||
|
||||
UpdateChecks();
|
||||
UpdateInventoryChecks();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue