|
|
@ -1240,11 +1240,13 @@ function r2.acts:updatePaletteFromEcosystem()
|
|
|
|
-- search for ecosystem of current location
|
|
|
|
-- search for ecosystem of current location
|
|
|
|
local islandEcosystem
|
|
|
|
local islandEcosystem
|
|
|
|
for ecoName, v in pairs(self.islands) do
|
|
|
|
for ecoName, v in pairs(self.islands) do
|
|
|
|
|
|
|
|
if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)] then
|
|
|
|
if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)].name==currentLocation.IslandName then
|
|
|
|
if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)].name==currentLocation.IslandName then
|
|
|
|
islandEcosystem = ecoName
|
|
|
|
islandEcosystem = ecoName
|
|
|
|
break
|
|
|
|
break
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
-- flag to display only vegetation of current ecosystem
|
|
|
|
-- flag to display only vegetation of current ecosystem
|
|
|
|
if islandEcosystem and ecosystemTrees[islandEcosystem] then
|
|
|
|
if islandEcosystem and ecosystemTrees[islandEcosystem] then
|
|
|
|