Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/common-api/entity.js
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Lines | garrisonMax: function() { | ||||
return this.get("GarrisonHolder/Max"); | return this.get("GarrisonHolder/Max"); | ||||
}, | }, | ||||
garrisonEjectHealth: function() { | garrisonEjectHealth: function() { | ||||
return +this.get("GarrisonHolder/EjectHealth"); | return +this.get("GarrisonHolder/EjectHealth"); | ||||
}, | }, | ||||
getDefaultArrow: function() { | getDefaultArrow: function() { | ||||
return +this.get("BuildingAI/DefaultArrowCount"); | return +this.get("ManpowerHolder/DefaultArrowCount"); | ||||
}, | }, | ||||
getArrowMultiplier: function() { | getArrowMultiplier: function() { | ||||
return +this.get("BuildingAI/GarrisonArrowMultiplier"); | return +this.get("ManpowerHolder/GarrisonArrowMultiplier"); | ||||
}, | }, | ||||
getGarrisonArrowClasses: function() { | getGarrisonArrowClasses: function() { | ||||
if (!this.get("BuildingAI")) | if (!this.get("ManpowerHolder")) | ||||
return undefined; | return undefined; | ||||
return this.get("BuildingAI/GarrisonArrowClasses").split(/\s+/); | return this.get("ManpowerHolder/GarrisonArrowClasses").split(/\s+/); | ||||
}, | }, | ||||
buffHeal: function() { | buffHeal: function() { | ||||
return +this.get("GarrisonHolder/BuffHeal"); | return +this.get("GarrisonHolder/BuffHeal"); | ||||
}, | }, | ||||
promotion: function() { | promotion: function() { | ||||
return this.get("Promotion/Entity"); | return this.get("Promotion/Entity"); | ||||
▲ Show 20 Lines • Show All 559 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator