ZSGG Public Library
Emperor Projection
Legion Ultimate Unit
import { Attack } from "../../../../engine/ability.js";
import { Turret } from "../../../../engine/turret.js";
import { LegionUltimateUnit } from "../../../../defaults/legion.js";
import type { Tier } from "../../../../engine/core.js";
export class EmperorProjection extends LegionUltimateUnit {
override uuid: string;
static override src = "src/zerospace/faction/legion/unit/emperor-projection.ts";
constructor() {
super();
this.hexiteCost = 0;
this.fluxCost = 0;
this.buildTime = 0;
this.buildCount = 1;
this.name = "Emperor Projection";
this.tier = "ultimate";
this.uuid = "02b5fb2f-8759-4c09-b9bd-0b2c2cf80d49";
this.supply = 0;
this.hp = 2000;
this.shields = 0;
this.armor = 2;
this.armorType = "medium";
this.speed = 600;
this.createdBy = ["faction/legion/building/ritual-site"];
this.unlockedBy = ["faction/legion/building/ritual-site"];
this.tag("massive");
this.attacks.attack = new Attack({
name: "Attack",
damage: 100,
cooldown: 1.4,
range: 300,
targets: ["ground"],
bonusDamage: [{ multiplier: 3.0, vs: ["building"] }],
splash: { multiplier: 1.0, range: 100 },
parentId: this.id,
parentUUID: this.uuid,
});
this.maxTurrets = 30;
const emperor = this;
this.turrets.thrallSoul = new Turret({
name: "Thrall Soul",
description: "Each 1 supply worth of thralls sacrificed gives +50 HP and +5 attack damage",
wikiDescription:
"Each 1 supply worth of [[faction/legion/unit/thrall]] sacrificed gives +50 HP and +5 attack damage.",
subtype: "sacrifice",
hexiteCost: 0,
fluxCost: 0,
buildTime: 0,
hp: 0,
unlocked: true,
apply() {
emperor.hp = (emperor.hp || 0) + 50;
if (emperor.attacks.attack.damage) {
emperor.attacks.attack.damage += 5;
}
},
});
}
}
export default EmperorProjection;