From e52e63f8e8ef27e067eff2740fc4a2ca8c77417f Mon Sep 17 00:00:00 2001 From: duncathan Date: Fri, 6 Mar 2020 05:54:52 -0600 Subject: [PATCH] guarantee arthur's key hint in camp/arthur mode --- src/database/world_graph.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database/world_graph.lua b/src/database/world_graph.lua index 3751afe..e722772 100644 --- a/src/database/world_graph.lua +++ b/src/database/world_graph.lua @@ -613,6 +613,8 @@ function worldGraph:getHintableLocations(obj) 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 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