@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
62 lines • 2.5 kB
JavaScript
"use strict";
/**
* Cha'Kru Warrior - Swift blade-throwing fighter embodying centuries of ritual combat tradition
* Earth-aligned warrior with supernatural speed and ancestral weapon mastery
*/
Object.defineProperty(exports, "__esModule", { value: true });
const chakru_js_1 = require("../../../../defaults/chakru.cjs");
const ability_js_1 = require("../../../../engine/ability.cjs");
class ChakruWarrior extends chakru_js_1.ChakruMercUnit {
constructor() {
super();
this.hexiteCost = 83.3;
this.fluxCost = 0;
// Movement Speed - Fixed to match dev data
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 = ["Infantry"];
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";
// Removed duplicate speed assignment - keeping 625
this.supply = 1;
this.turnSpeed = 3000;
this.pushability = 0;
// Relationships
this.createdBy = ["mercenary/chakru/building/chakru-temple-of-earth"];
this.unlockedBy = ["mercenary/chakru/building/chakru-temple-of-earth"];
// Knife Throw attack - Sacred ancestral weapons
this.attacks.knifeThrow = new ability_js_1.Attack({
name: "Knife Throw",
damage: 18,
cooldown: 1.6,
cooldownBetweenShots: 1.6,
armorPenetration: 0,
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";
exports.default = ChakruWarrior;
//# sourceMappingURL=chakru-warrior.js.map