Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | if (template.Footprint.Square) | ||||
"depth": +template.Footprint.Square["@depth"] | "depth": +template.Footprint.Square["@depth"] | ||||
}; | }; | ||||
else if (template.Footprint.Circle) | else if (template.Footprint.Circle) | ||||
ret.footprint.circle = { "radius": +template.Footprint.Circle["@radius"] }; | ret.footprint.circle = { "radius": +template.Footprint.Circle["@radius"] }; | ||||
else | else | ||||
warn("GetTemplateDataHelper(): Unrecognized Footprint type"); | warn("GetTemplateDataHelper(): Unrecognized Footprint type"); | ||||
} | } | ||||
if (template.Garrisonable) | |||||
{ | |||||
ret.canGarrison = { | |||||
"size": getEntityValue("Garrisonable/Size") | |||||
}; | |||||
} | |||||
if (template.GarrisonHolder) | if (template.GarrisonHolder) | ||||
{ | { | ||||
ret.garrisonHolder = { | ret.garrisonHolder = { | ||||
"buffHeal": getEntityValue("GarrisonHolder/BuffHeal") | "buffHeal": getEntityValue("GarrisonHolder/BuffHeal") | ||||
}; | }; | ||||
if (template.GarrisonHolder.Max) | if (template.GarrisonHolder.Max) | ||||
ret.garrisonHolder.capacity = getEntityValue("GarrisonHolder/Max"); | ret.garrisonHolder.capacity = getEntityValue("GarrisonHolder/Max"); | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator