ZSGG Public Library
Cha'Kru Warrior
Chakru T1 Merc Unit
import { ChakruMercUnit } from "../../../../defaults/chakru.js";
import { Attack } from "../../../../engine/ability.js";
class ChakruWarrior extends ChakruMercUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/chakru/unit/chakru-warrior.ts";
constructor() {
super();
this.hexiteCost = 250;
this.fluxCost = 0;
this.buildCount = 3;
this.speed = 625;
this.name = "Cha'Kru Warrior";
this.tier = "T1";
this.hotkey = "";
this.internalId = "Troop_Kingdom_Warrior_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Kingdom_Warrior.Default__Troop_Kingdom_Warrior_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Unit.Light",
"Attackable.ArmorType.Light",
"Attackable.Biological",
"Attackable.Unit.Chakru.A",
];
this.internalSecondaryTags = ["Biological", "Infantry"];
this.uuid = "852c3449-fc4a-4e50-bc80-ec749d25ce04";
this.description = "Ranged warrior which moves faster out of combat. Attacks ground and air units.";
this.shortName = "Warrior";
this.hp = 200;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.supply = 1;
this.turnSpeed = 3000;
this.pushability = 0;
this.createdBy = ["mercenary/chakru/building/chakru-temple-of-earth"!];
this.unlockedBy = ["mercenary/chakru/building/chakru-temple-of-earth"!];
this.attacks.sacredKnives = new Attack({
name: "Sacred Knives",
damage: 18,
cooldown: 1.6,
armorPenetration: 0,
range: 1000,
delay: 0.2,
targets: ["ground", "air"],
bonusDamage: [{ multiplier: 2.0, vs: ["unit:harvester"] }],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default ChakruWarrior;