From 707e44a398a617c4c9aa26bcf332f855143153c9 Mon Sep 17 00:00:00 2001 From: duncathan Date: Thu, 25 Mar 2021 16:15:08 -0600 Subject: [PATCH] fixes #134 --- src/database/world_graph.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/world_graph.lua b/src/database/world_graph.lua index 6af2d0e..ed51301 100644 --- a/src/database/world_graph.lua +++ b/src/database/world_graph.lua @@ -620,12 +620,12 @@ end function worldGraph:getHintableLocations(obj) local locations = {} for k, location in pairs(_.shuffle(self:getFilledLocations(true))) do - if (obj == "objBadEnd" and location.item.name == "Rusty Key") or (obj ~= "objBadEnd" and location.item.name == "ID Card") then + if location:getPrebuiltHint() ~= nil then + -- do nothing + elseif (obj == "objBadEnd" and location.item.name == "Rusty Key") or (obj ~= "objBadEnd" and location.item.name == "ID Card") then table.insert(locations, 1, location) -- put that item on the top to guarantee a hint for it elseif (self:Camp() or self:Arthur()) and location.item.name == "Arthur's Key" then table.insert(locations, 1, location) - elseif location:getPrebuiltHint() ~= nil then - -- do nothing else table.insert(locations, location) end