Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/common-api/entity.js
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | "attackStrengths": function(type) { | ||||
return damage; | return damage; | ||||
}, | }, | ||||
"captureStrength": function() { | "captureStrength": function() { | ||||
if (!this.get("Attack/Capture")) | if (!this.get("Attack/Capture")) | ||||
return undefined; | return undefined; | ||||
return +this.get("Attack/Capture/Value") || 0; | return +this.get("Attack/Capture/Capture") || 0; | ||||
}, | }, | ||||
"attackTimes": function(type) { | "attackTimes": function(type) { | ||||
if (!this.get("Attack/" + type +"")) | if (!this.get("Attack/" + type +"")) | ||||
return undefined; | return undefined; | ||||
return { | return { | ||||
"prepare": +(this.get("Attack/" + type + "/PrepareTime") || 0), | "prepare": +(this.get("Attack/" + type + "/PrepareTime") || 0), | ||||
▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator