ZSGG Public Library
Valkaru Beast
Valkaru Merc Unit
import { ValkaruMercUnit } from "../../../../defaults/valkaru.js";
import { Attack, Spell } from "../../../../engine/ability.js";
class ValkaruBeast extends ValkaruMercUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/valkaru/unit/valkaru-beast.ts";
constructor() {
super();
this.name = "Valkaru Beast";
// No tier: the Beast is a topbar spawn available as soon as the merc outpost exists,
// not a tiered build-order unit.
this.hotkey = "";
this.uuid = "08c67bb8-e20d-4d3d-a379-cfa76c982e70";
this.description = "Tanky melee unit.";
this.shortName = "Beast";
this.hp = 1000;
this.hexiteCost = 200;
this.fluxCost = 150;
this.stunResist = 50;
this.shields = 0;
this.armor = 1;
this.armorType = "heavy";
this.speed = 575;
this.supply = 6;
this.turnSpeed = 7000;
this.internalId = "Troop_Valkaru_Beast_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Valkaru_Beast.Default__Troop_Valkaru_Beast_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Biological",
"Attackable.ArmorType.Heavy",
"Attackable.Unit.Massive",
"Logic.ABES",
"Attackable.Beast",
];
// Spawned by the Valkaru Beast topbar, but unlocked by (available as soon as you build)
// the merc outpost.
this.createdBy = ["mercenary/valkaru/topbar/valkaru-beast"];
this.unlockedBy = ["mercenary/valkaru/building/valkaru-war-vault"];
this.attacks.pulverizingFists = new Attack({
internalId: "Default__Valkaru_Beast_Melee_C",
name: "Pulverizing Fists",
damage: 130,
cooldown: 2.5,
range: 150,
delay: 0.4,
targets: ["ground"],
description: "Crushing melee strikes that can devastate enemy formations with overwhelming physical force",
parentId: this.id,
parentUUID: this.uuid,
});
this.attacks.pulverize = new Attack({
name: "Pulverize",
damage: 500,
cooldown: 0,
range: 200,
energyCost: 6,
energyType: "abes",
parentId: this.id,
parentUUID: this.uuid,
});
this.spells.taunt = new Spell({
name: "Taunt",
hotkey: "J",
description: "Forces nearby enemies to attack the Beast for 5 seconds. Gain 5 armor for the duration.",
targets: ["self"],
cooldown: 20,
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default ValkaruBeast;