mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
add check for agony option
This commit is contained in:
parent
b71a0c5803
commit
f1f2a6ee79
1 changed files with 3 additions and 1 deletions
|
@ -35,8 +35,10 @@ extern "C" void EnKusa_RandomizerDraw(Actor* thisx, PlayState* play) {
|
||||||
if (grassActor->grassIdentity.randomizerCheck != RC_MAX &&
|
if (grassActor->grassIdentity.randomizerCheck != RC_MAX &&
|
||||||
Flags_GetRandomizerInf(grassActor->grassIdentity.randomizerInf) == 0) {
|
Flags_GetRandomizerInf(grassActor->grassIdentity.randomizerInf) == 0) {
|
||||||
int csmc = CVarGetInteger(CVAR_ENHANCEMENT("ChestSizeAndTextureMatchContents"), CSMC_DISABLED);
|
int csmc = CVarGetInteger(CVAR_ENHANCEMENT("ChestSizeAndTextureMatchContents"), CSMC_DISABLED);
|
||||||
|
int requiresStoneAgony = CVarGetInteger(CVAR_ENHANCEMENT("ChestSizeDependsStoneOfAgony"), 0);
|
||||||
|
|
||||||
if (csmc == CSMC_BOTH || csmc == CSMC_TEXTURE) {
|
if ((csmc == CSMC_BOTH || csmc == CSMC_TEXTURE) &&
|
||||||
|
(!requiresStoneAgony || (requiresStoneAgony && CHECK_QUEST_ITEM(QUEST_STONE_OF_AGONY)))) {
|
||||||
auto itemEntry = Rando::Context::GetInstance()->GetFinalGIEntry(grassActor->grassIdentity.randomizerCheck,
|
auto itemEntry = Rando::Context::GetInstance()->GetFinalGIEntry(grassActor->grassIdentity.randomizerCheck,
|
||||||
true, GI_NONE);
|
true, GI_NONE);
|
||||||
GetItemCategory getItemCategory = itemEntry.getItemCategory;
|
GetItemCategory getItemCategory = itemEntry.getItemCategory;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue