Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/common-api/filters.js
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | "byResearchAvailable": (gameState, civ) => ({ | ||||
"dynamicProperties": [] | "dynamicProperties": [] | ||||
}), | }), | ||||
"byCanAttackClass": aClass => ({ | "byCanAttackClass": aClass => ({ | ||||
"func": ent => ent.canAttackClass(aClass), | "func": ent => ent.canAttackClass(aClass), | ||||
"dynamicProperties": [] | "dynamicProperties": [] | ||||
}), | }), | ||||
"byCanAttackTarget": target => ({ | "byCanAttackTarget": (target, mustBeInRange = false, ignoreAttackEffects = {}, wantedTypes = [], projectile = undefined) => ({ | ||||
"func": ent => ent.canAttackTarget(target), | "func": ent => ent.canAttackTarget(target, mustBeInRange, ignoreAttackEffects, wantedTypes, projectile), | ||||
"dynamicProperties": [] | "dynamicProperties": [] | ||||
}), | }), | ||||
"isGarrisoned": () => ({ | "isGarrisoned": () => ({ | ||||
"func": ent => ent.position() === undefined, | "func": ent => ent.position() === undefined, | ||||
"dynamicProperties": [] | "dynamicProperties": [] | ||||
}), | }), | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator