ZSGG Public Library
Tree of Life
Grell Ultimate Building
import { GrellUltimateBuilding } from "../../../../defaults/grell.js";
import { Heal, Passive } from "../../../../engine/ability.js";
export class TreeOfLife extends GrellUltimateBuilding {
override uuid: string;
static override src = "src/zerospace/faction/grell/building/tree-of-life.ts";
constructor() {
super();
this.hexiteCost = 0;
this.fluxCost = 0;
this.buildTime = 0;
this.buildCount = 1;
this.name = "Tree of Life";
this.description =
"Revives units killed nearby and heals friendly units. Radius: 1500. Starting energy: 30.";
this.tier = "ultimate";
this.uuid = "de5828ac-64df-47e8-96aa-f3adc69db5b3";
this.hp = 1000;
this.energy = 35;
this.armor = 1;
this.armorType = "building";
this.speed = 0;
this.createdBy = ["faction/grell/topbar/tree-of-life"];
this.unlockedBy = ["faction/grell/talents/tree-of-life"];
this.heals.heal = new Heal({
name: "Heal",
description: "Heals friendly units nearby.",
healing: 8,
cooldown: 1,
range: 1500,
targets: ["friendly:ground", "friendly:air"],
parentId: this.id,
parentUUID: this.uuid,
});
this.passives.revive = new Passive({
name: "Revive",
description: "Revives friendly units killed nearby.",
energyCost: 15,
energyType: "classic",
range: 1500,
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default TreeOfLife;