Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/danubius_triggers.js
Show All 40 Lines | var gallicBuildingGarrison = [ | ||||
"buildingClasses": ["House"], | "buildingClasses": ["House"], | ||||
"unitTemplates": danubiusAttackerTemplates.females.concat(danubiusAttackerTemplates.healers) | "unitTemplates": danubiusAttackerTemplates.females.concat(danubiusAttackerTemplates.healers) | ||||
}, | }, | ||||
{ | { | ||||
"buildingClasses": ["CivCentre", "Temple"], | "buildingClasses": ["CivCentre", "Temple"], | ||||
"unitTemplates": danubiusAttackerTemplates.champions, | "unitTemplates": danubiusAttackerTemplates.champions, | ||||
}, | }, | ||||
{ | { | ||||
"buildingClasses": ["Tower", "Outpost"], | "buildingClasses": ["Tower", "Lookout"], | ||||
"unitTemplates": danubiusAttackerTemplates.champion_infantry | "unitTemplates": danubiusAttackerTemplates.champion_infantry | ||||
} | } | ||||
]; | ]; | ||||
/** | /** | ||||
* Notice if gaia becomes too strong, players will just turtle and try to outlast the players on the other side. | * Notice if gaia becomes too strong, players will just turtle and try to outlast the players on the other side. | ||||
* However we want interaction and fights between the teams. | * However we want interaction and fights between the teams. | ||||
* This can be accomplished by not wiping out players buildings entirely. | * This can be accomplished by not wiping out players buildings entirely. | ||||
▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | if (!cmpUnitAI || cmpUnitAI.GetCurrentState() != "INDIVIDUAL.IDLE") | ||||
continue; | continue; | ||||
let cmpIdentity = Engine.QueryInterface(ent, IID_Identity); | let cmpIdentity = Engine.QueryInterface(ent, IID_Identity); | ||||
if (!cmpIdentity) | if (!cmpIdentity) | ||||
continue; | continue; | ||||
let animations = ritualAnimations[ | let animations = ritualAnimations[ | ||||
cmpIdentity.HasClass("Healer") ? "healer" : | cmpIdentity.HasClass("Healer") ? "healer" : | ||||
cmpIdentity.HasClass("Female") ? "female" : "male"]; | cmpIdentity.HasClass("Female") ? "female" : "male"]; | ||||
Lint: ESLintBear (indent): `Expected indentation of 4 tabs but found 3.` | |||||
let cmpVisual = Engine.QueryInterface(ent, IID_Visual); | let cmpVisual = Engine.QueryInterface(ent, IID_Visual); | ||||
if (!cmpVisual) | if (!cmpVisual) | ||||
continue; | continue; | ||||
if (animations.indexOf(cmpVisual.GetAnimationName()) == -1) | if (animations.indexOf(cmpVisual.GetAnimationName()) == -1) | ||||
cmpVisual.SelectAnimation(pickRandom(animations), false, 1, ""); | cmpVisual.SelectAnimation(pickRandom(animations), false, 1, ""); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Expected indentation of 4 tabs but found 3.