@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
55 lines • 2.12 kB
JavaScript
/**
* Sabretooth - Kraegar's loyal companion beast
* Unique rebuildable creature that grows stronger from allied beast deaths
*/
import { Attack, Passive } from "../../../../engine/ability.js";
import { LegionSpecialUnit } from "../../legion-classes.js";
import Kraegar from "../hero/kraegar.js";
export class Sabretooth extends LegionSpecialUnit {
constructor() {
super();
this.rebuildTime = 60;
this.rebuildable = true;
this.name = "Sabretooth";
this.tier = "T2";
this.hexiteCost = 150;
this.fluxCost = 150;
this.buildTime = 20;
this.uuid = "57355de4-49e0-4745-b70e-38f9266230a7";
// Companion beast stats - enhanced predator
this.hp = 200;
this.shields = 0;
this.armor = 0;
this.armorType = "medium";
this.speed = 525; // Swift predator
this.supply = 0; // Special companion unit
this.stunResist = 50; // Primal resilience
// Costs
// Relationships - created by Kraegar hero
this.createdBy = [Kraegar.id];
this.unlockedBy = [Kraegar.id];
// Tags for identification and targeting - none needed for Sabretooth
// Powerful melee attack with razor-sharp claws
this.attacks.attack = new Attack({
name: "Attack",
damage: 30,
range: 170,
cooldown: 2.0,
targets: ["ground"],
description: "Powerful melee attack with razor-sharp claws",
parentId: this.id,
parentUUID: this.uuid,
});
// Feed passive ability - grows stronger from allied beast deaths
this.passives.feed = new Passive({
name: "Feed",
description: "Any allied beast that dies anywhere on the map grants +1 dmg and +20hp to Sabretooth.",
parentId: this.id,
parentUUID: this.uuid,
});
// Lore - sacred companion embodying Legion philosophy
}
}
Sabretooth.src = "src/zerospace/faction/legion/hero/sabretooth.ts";
export default Sabretooth;
//# sourceMappingURL=sabretooth.js.map