Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/garrisonManager.js
var PETRA = function(m) | (function(m) | ||||
{ | { | ||||
/** | /** | ||||
Context not available. | |||||
if (ent.hasClass("Structure")) | if (ent.hasClass("Structure")) | ||||
around.defenseStructure = true; | around.defenseStructure = true; | ||||
else if (m.isSiegeUnit(ent)) | else if (m.isSiegeUnit(ent)) | ||||
{ | |||||
if (ent.attackTypes().indexOf("Melee") !== -1) | if (ent.attackTypes().indexOf("Melee") !== -1) | ||||
around.meleeSiege = true; | around.meleeSiege = true; | ||||
else | else | ||||
around.rangeSiege = true; | around.rangeSiege = true; | ||||
} | |||||
else | else | ||||
{ | { | ||||
around.unit = true; | around.unit = true; | ||||
Context not available. | |||||
this[key] = data[key]; | this[key] = data[key]; | ||||
}; | }; | ||||
return m; | }(PETRA)); | ||||
}(PETRA); | |||||
Context not available. |
Wildfire Games · Phabricator