Prevent void and teleport traps from being added to the shuffle pool while fishing in the pond. (#4586)

This commit is contained in:
Malkierian 2024-11-26 18:28:24 -07:00 committed by GitHub
parent 7ccb3ac7c3
commit 13789a1dfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1036,6 +1036,9 @@ std::vector<AltTrapType> getEnabledAddTraps () {
std::vector<AltTrapType> enabledAddTraps;
for (int i = 0; i < ADD_TRAP_MAX; i++) {
if (CVarGetInteger(altTrapTypeCvars[i], 0)) {
if (gSaveContext.equips.buttonItems[0] == ITEM_FISHING_POLE && (i == ADD_VOID_TRAP || i == ADD_TELEPORT_TRAP)) {
continue; // don't add void or teleport if you're holding the fishing pole, as this causes issues
}
enabledAddTraps.push_back(static_cast<AltTrapType>(i));
}
}