ZSGG Public Library
Synapse
Xol T2 Army Unit
import { XolArmyUnit } from "../../../../defaults/xol.js";
import { Attack, Spell } from "../../../../engine/ability.js";
import { applyXolMerges } from "../_util/xol-merges.js";
export class Synapse extends XolArmyUnit {
override uuid: string;
static override src = "src/zerospace/faction/xol/unit/synapse.ts";
constructor() {
super();
applyXolMerges(this);
this.buildTime = 16;
this.name = "Synapse";
this.tier = "T2";
this.hotkey = "";
this.uuid = "5b388966-4452-4c69-a374-69fece728394";
this.internalId = "Troop_Xol_Synapse_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Xol_Synapse.Default__Troop_Xol_Synapse_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Local.Xol.Synapse",
"Attackable.FlyingUnit",
"Attackable.ArmorType.Light",
"Troop.Xol.Tier3",
];
this.internalSecondaryTags = ["Air"];
this.description =
"Flying unit which heals nearby units that it touches for 10 hit points each second. May use the Overclock ability on nearby allied units.\nOverclock: Grants nearby units +35% damage and movement speed for 5 seconds.";
this.unlockedBy = ["faction/xol/building/molten-core"];
this.hp = 250;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.domain = "air";
this.speed = 675;
this.supply = 4;
this.turnSpeed = 4000;
this.vision = 1800;
this.pushability = 0;
this.attacks.primary = new Attack({
name: "Stellaris Lash",
damage: 30,
range: 600,
cooldown: 1.8,
armorPenetration: 0,
delay: 0.16,
targets: ["ground", "air"],
parentId: this.id,
parentUUID: this.uuid,
});
this.spells.overclock = new Spell({
name: "Overclock",
hotkey: "G",
description: "Gives nearby units the Overclock buff, granting +35% damage and movement speed for 5 seconds.",
cooldown: 30,
duration: 5,
targets: ["friendly:ground", "friendly:air"],
targetMode: "around-self",
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default Synapse;