mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-10 00:45:15 +00:00
fixes #134
This commit is contained in:
parent
6442cc6000
commit
707e44a398
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue