@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
96 lines • 3.78 kB
JavaScript
/**
* 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 { GrellHeroUnit } from "../../../../defaults/grell.js";
import { Attack, Spell } from "../../../../engine/ability.js";
export class Vynthra extends GrellHeroUnit {
// Static properties for ID references
constructor() {
super();
// Auto-generated fixes from dev data comparison
this.hexiteCost = 220;
this.fluxCost = 0;
this.buildTime = 45;
this.name = "Vynthra";
this.uuid = "13e0634b-8a3d-4090-b392-789a606ba4c2";
this.internalId = "Troop_MPHero_Vynthra_C";
this.internalPath = "/Game/Nova/Archetypes_Heroes/Troop_MPHero_Vynthra.Default__Troop_MPHero_Vynthra_C";
this.internalTags = [
"Attackable.Unit.Hero",
"Logic.SpawnAtOldestSpawner",
"Attackable.Biological",
"Logic.NoVeterancy",
];
this.internalSecondaryTags = [];
this.hp = 280;
this.armorType = "medium";
this.speed = 525;
this.vision = 1800;
this.turnSpeed = 6000;
this.healthRegen = 6;
this.pushability = 0.1;
// Primary long-range attack
this.attacks.attack = new Attack({
name: "Attack",
damage: 30,
cooldown: 1.8,
cooldownBetweenShots: 1.8,
range: 1200,
targets: ["ground", "air"],
armorPenetration: 0,
delay: 0.14,
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