mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-12 11:12:20 -05:00
Prevent void and teleport traps from being added to the shuffle pool while fishing in the pond. (#4586)
This commit is contained in:
parent
7ccb3ac7c3
commit
13789a1dfb
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user