From 435d5347f0717db378a655a0e007552030c00c14 Mon Sep 17 00:00:00 2001 From: duncathan Date: Tue, 3 Mar 2020 08:34:05 -0600 Subject: [PATCH] fix bad end hint logic --- src/database/world_graph.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/world_graph.lua b/src/database/world_graph.lua index 24df0e5..434ba7a 100644 --- a/src/database/world_graph.lua +++ b/src/database/world_graph.lua @@ -603,7 +603,7 @@ 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 location.item.name == "ID Card" then + if (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 else table.insert(locations, location)