mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-25 08:13:15 +00:00
guarantee arthur's key hint in camp/arthur mode
This commit is contained in:
parent
9432cdcea3
commit
e52e63f8e8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue