@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
47 lines • 1.76 kB
JavaScript
/**
* Cha'Kru Warrior - Swift blade-throwing fighter embodying centuries of ritual combat tradition
* Earth-aligned warrior with supernatural speed and ancestral weapon mastery
*/
import { Attack } from "../../../../engine/ability.js";
import { ChakruMercUnit } from "../../chakru-classes.js";
import ChakruTempleOfEarth from "../building/chakru-temple-of-earth.js";
class ChakruWarrior extends ChakruMercUnit {
constructor() {
super();
this.name = "Cha'Kru Warrior";
this.tier = "T1";
this.hotkey = "";
this.hexiteCost = 250;
this.fluxCost = 0;
this.buildTime = 30;
this.buildCount = 2;
this.uuid = "852c3449-fc4a-4e50-bc80-ec749d25ce04";
this.description = "Ranged warrior which moves faster out of combat. Attacks ground and air units.";
// Mutable properties (can be modified by upgrades)
this.shortName = "Warrior";
this.hp = 200;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 875;
this.supply = 3;
// Relationships
this.createdBy = [ChakruTempleOfEarth.id];
this.unlockedBy = [ChakruTempleOfEarth.id];
// Knife Throw attack - Sacred ancestral weapons
this.attacks.knifeThrow = new Attack({
name: "Knife Throw",
damage: 18,
cooldown: 1.6,
range: 1000,
delay: 0.2,
targets: ["ground", "air"],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
// Static property for source path
ChakruWarrior.src = "src/zerospace/mercenary/chakru/unit/chakru-warrior.ts";
export default ChakruWarrior;
//# sourceMappingURL=chakru-warrior.js.map