@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
75 lines • 2.92 kB
JavaScript
/**
* Cha'Kru Cultist - Mystical priest-warrior who serves as battlefield support and living conduit to the Leviathan
* Earth-aligned devotee with acidic blood magic and healing abilities
*/
import { ChakruMercUnit } from "../../../../defaults/chakru.js";
import { Attack, Spell } from "../../../../engine/ability.js";
class ChakruCultist extends ChakruMercUnit {
constructor() {
super();
// Auto-generated fixes from dev data comparison
// Fix: HP
this.hexiteCost = 50;
this.fluxCost = 100;
// hp is set later in the mutable properties section
this.name = "Cha'Kru Cultist";
this.tier = "T1";
this.hotkey = "";
this.internalId = "Troop_KingdomCultist_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_KingdomCultist.Default__Troop_KingdomCultist_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Unit.Light",
"Attackable.ArmorType.Light",
"Attackable.Biological",
"Attackable.Unit.Chakru.A",
];
this.internalSecondaryTags = ["Infantry"];
this.uuid = "e080a169-c298-4103-8380-3a8359abd1c7";
this.description = "Heals and hides friendly units.";
// Mutable properties (can be modified by upgrades)
this.shortName = "Cultist";
this.hp = 200;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 500;
this.supply = 3;
this.energy = 100;
this.startingEnergy = 50;
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"];
// Acidic Throw attack - Weaponized blood magic
this.attacks.acidicThrow = new Attack({
name: "Acidic Throw",
damage: 19,
cooldown: 1.3,
cooldownBetweenShots: 0.5,
armorPenetration: 0,
delay: 0.346,
range: 1200,
targets: ["air", "ground"],
parentId: this.id,
parentUUID: this.uuid,
});
// Heal spell - Leviathan blood magic restoration
this.spells.heal = new Spell({
name: "Heal",
energyCost: 40,
energyType: "classic",
targets: [],
healing: 250,
duration: 8,
description: "Heals target for 250 HP and provides stealth and +25% movement speed for 8s. Only targets non-mechanical units.",
parentId: this.id,
parentUUID: this.uuid,
});
}
}
// Static property for source path
ChakruCultist.src = "src/zerospace/mercenary/chakru/unit/chakru-cultist.ts";
export default ChakruCultist;
//# sourceMappingURL=chakru-cultist.js.map