Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/common-api/entity.js
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | "attackRange": function(type) { | ||||
}; | }; | ||||
}, | }, | ||||
"attackStrengths": function(type) { | "attackStrengths": function(type) { | ||||
if (!this.get("Attack/" + type +"")) | if (!this.get("Attack/" + type +"")) | ||||
return undefined; | return undefined; | ||||
return { | return { | ||||
"Hack": +(this.get("Attack/" + type + "/Hack") || 0), | "Hack": +(this.get("Attack/" + type + "/Damage/Hack") || 0), | ||||
"Pierce": +(this.get("Attack/" + type + "/Pierce") || 0), | "Pierce": +(this.get("Attack/" + type + "/Damage/Pierce") || 0), | ||||
"Crush": +(this.get("Attack/" + type + "/Crush") || 0) | "Crush": +(this.get("Attack/" + type + "/Damage/Crush") || 0) | ||||
}; | }; | ||||
}, | }, | ||||
"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/Value") || 0; | ||||
▲ Show 20 Lines • Show All 699 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator