UNPKG

@zerospacegg/iolin

Version:

Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)

75 lines 2.98 kB
/** * Vynthra - Grell Hero * Can slow and damage enemy units with Deadly Vines, Deep Burrow itself to biomass, or Consume itself of friendly units to gain buffs. */ import { Attack, Spell } from "../../../../engine/ability.js"; import { GrellHeroUnit } from "../../grell-classes.js"; export class Vynthra extends GrellHeroUnit { constructor() { super(); this.name = "Vynthra"; this.uuid = "13e0634b-8a3d-4090-b392-789a606ba4c2"; this.hp = 280; this.armorType = "medium"; this.speed = 525; // Primary long-range attack this.attacks.attack = new Attack({ name: "Attack", damage: 30, cooldown: 1.8, range: 1200, targets: ["ground", "air"], parentId: this.id, parentUUID: this.uuid, }); // Deadly Vines - Area control spell this.spells.deadlyVines = new Spell({ name: "Deadly Vines", hotkey: "Z", cooldown: 15, targets: ["map"], description: "Throw a tangle of vines. At its location, enemy ground units are slowed, can't use movement abilities, and take 60 damage over 10 seconds", parentId: this.id, parentUUID: this.uuid, }); // Deep Burrow - Biomass teleportation this.spells.deepBurrow = new Spell({ name: "Deep Burrow", hotkey: "F", cooldown: 30, targets: ["self"], description: "Teleports the hero to a visible location on biomass anywhere on the map. Cannot be interrupted.", parentId: this.id, parentUUID: this.uuid, }); // Consume - Life drain from friendly units this.spells.consume = new Spell({ name: "Consume", hotkey: "D", cooldown: 45, damage: 250, healing: 250, targets: ["friendly:ground", "friendly:air"], description: "Consume 250 health from a friendly unit, healing the hero for the same amount and granting a 20% movement speed boost for 10 seconds.", parentId: this.id, parentUUID: this.uuid, }); // Consume Self - Self-cast version affecting nearby friendlies this.spells.consumeSelf = new Spell({ name: "Consume Self", hotkey: "D", cooldown: 45, damage: 250, healing: 250, targets: ["self"], description: "Consume 250 health from Vynthra herself to heal and grant a 20% movement speed boost for 10 seconds to nearby friendly units.", parentId: this.id, parentUUID: this.uuid, }); // All other stats inherited from base GrellHeroUnit class } } // Static property for source path Vynthra.src = "src/zerospace/faction/grell/hero/vynthra.ts"; export default Vynthra; //# sourceMappingURL=vynthra.js.map