mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-22 06:43:03 +00:00
fix bad end hint logic
This commit is contained in:
parent
dc6ac6040a
commit
435d5347f0
|
@ -603,7 +603,7 @@ end
|
||||||
function worldGraph:getHintableLocations(obj)
|
function worldGraph:getHintableLocations(obj)
|
||||||
local locations = {}
|
local locations = {}
|
||||||
for k, location in pairs(_.shuffle(self:getFilledLocations(true))) do
|
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
|
table.insert(locations, 1, location) -- put that item on the top to guarantee a hint for it
|
||||||
else
|
else
|
||||||
table.insert(locations, location)
|
table.insert(locations, location)
|
||||||
|
|
Loading…
Reference in a new issue