mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-18 19:54:21 +02:00
CLOSES #1090, CLOSES #1093, CLOSES #1094, CLOSES #1095, CLOSES #1098, CLOSES #1102, CLOSES #1105, CLOSES #1106, CLOSES #1108, CLOSES #1109, CLOSES #1110, CLOSES #1111, CLOSES #1113, CLOSES #1114, CLOSES #1117, CLOSES #1118, CLOSES #1121, CLOSES #1122, CLOSES #1123, CLOSES #1124, CLOSES #1126, CLOSES #1127, CLOSES #1128, CLOSES #1131, CLOSES #1132, CLOSES #1134, CLOSES #1137, CLOSES #1141
This commit is contained in:
@@ -96,7 +96,7 @@ function Nests.landmark(data, index)
|
||||
end
|
||||
|
||||
local function landmarkOfMap(data, mapId)
|
||||
local def = data and data.maps and data.maps[mapId]
|
||||
local def = data and data.gen2Maps and data.gen2Maps[mapId]
|
||||
return def and def.landmark
|
||||
end
|
||||
|
||||
@@ -131,7 +131,7 @@ function Nests.find(data, species, region, save)
|
||||
out[#out + 1] = landmark
|
||||
end
|
||||
|
||||
local enc = data and data.encounters
|
||||
local enc = data and data.gen2Encounters
|
||||
for _, key in ipairs({ "grass", "water" }) do
|
||||
for mapId, entry in pairs((enc and enc[key]) or {}) do
|
||||
if tableHasSpecies(entry, species) then
|
||||
|
||||
@@ -127,6 +127,9 @@ end
|
||||
Save.filenames = saveNames
|
||||
|
||||
local function fs()
|
||||
-- portable.txt: same standard/portable root as Gen 1 (SaveData.persistenceFs).
|
||||
local ok, SaveData = pcall(require, "src.core.SaveData")
|
||||
if ok and SaveData.persistenceFs then return SaveData.persistenceFs() end
|
||||
return love.filesystem
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user