Skip to content

Commit

Permalink
🔥 Always rely on "visited flags" instead of clvl for allowing town sh…
Browse files Browse the repository at this point in the history
…ortcuts
  • Loading branch information
julealgon committed Oct 13, 2021
1 parent 984d4a2 commit d218cba
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Source/trigs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,10 @@ bool IsWarpOpen(dungeon_type type)
return true;
if (type == DTYPE_HELL && (myPlayer.pTownWarps & 4) != 0)
return true;

if (gbIsHellfire) {
if (type == DTYPE_CATACOMBS && myPlayer._pLevel >= 10)
return true;
if (type == DTYPE_CAVES && myPlayer._pLevel >= 15)
return true;
if (type == DTYPE_HELL && myPlayer._pLevel >= 20)
return true;
if (type == DTYPE_NEST && Quests[Q_FARMER]._qactive == AnyOf(QUEST_DONE, QUEST_HIVE_DONE))
return true;
if (type == DTYPE_CRYPT && Quests[Q_GRAVE]._qactive == QUEST_DONE)
return true;
}
if (type == DTYPE_NEST && Quests[Q_FARMER]._qactive == AnyOf(QUEST_DONE, QUEST_HIVE_DONE))
return true;
if (type == DTYPE_CRYPT && Quests[Q_GRAVE]._qactive == QUEST_DONE)
return true;

return false;
}
Expand Down

0 comments on commit d218cba

Please sign in to comment.