Dogjutsu/develop/feature/zone properties (#1774)

* Fixed some typos of forms of the word 'strategy'.

* Retrieve Zone 'properties' with ZONE_BASE.

* Extraneous comment cleanup.

Co-authored-by: dogjutsu <dogjutsu@mattjay.net>
This commit is contained in:
dogjutsu
2022-09-01 21:19:50 -07:00
committed by GitHub
parent da5a1e0945
commit fa0d076a09
2 changed files with 38 additions and 0 deletions

View File

@@ -326,6 +326,17 @@ do -- Zones
-- Store zone ID.
Zone.ZoneID=ZoneData.zoneId
-- Store zone properties (if any)
local ZoneProperties = ZoneData.properties or nil
Zone.Properties = {}
if ZoneName and ZoneProperties then
for _,ZoneProp in ipairs(ZoneProperties) do
if ZoneProp.key then
Zone.Properties[ZoneProp.key] = ZoneProp.value
end
end
end
-- Store in DB.
self.ZONENAMES[ZoneName] = ZoneName