UNPKG

@zerospacegg/iolin

Version:

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

62 lines 2.31 kB
/** * Dread Hero - Enigmatic leader of the Dread Raiders * Robin Hood-style space pirate who redistributes wealth from corporate powers * Famous for the battle cry "TOASTED GRELL!" when eliminating enemies */ import { Attack, Spell } from "../../../../engine/ability.js"; import { DreadRaidersHeroUnit } from "../../dread-classes.js"; class DreadHero extends DreadRaidersHeroUnit { constructor() { super(); this.name = "Dread Hero"; this.hotkey = ""; this.uuid = "d0451700-de2c-4e8a-b79d-b5e09b3b07a0"; this.description = "Can cliffwalk, throw Sticky bombs, and become invisible while leaving a mine behind."; // Mutable properties (can be modified by upgrades) this.hp = 150; this.shields = 0; this.armor = 0; this.armorType = "medium"; this.speed = 500; this.supply = 10; // Primary attack - Pulse Rifle this.attacks.pulseRifle = new Attack({ name: "Pulse Rifle", damage: 21, range: 1200, cooldown: 1.35, targets: ["ground", "air"], parentId: this.id, parentUUID: this.uuid, }); // X - Shadow Walk this.spells.shadowWalk = new Spell({ name: "Shadow Walk", description: "Cloak, +50% movement speed and 50% dodge chance for 4s", hotkey: "X", cooldown: 25, energyCost: 0, energyType: "classic", targets: ["self"], parentId: this.id, parentUUID: this.uuid, }); // C - Sticky Bomb this.spells.stickyBomb = new Spell({ name: "Sticky Bomb", description: "Throw a sticky bomb. After 7s it explodes damaging enemies for 50 and stunning them for 4s. If the target dies early the radius is reduced. radius 225", hotkey: "C", cooldown: 45, energyCost: 0, energyType: "classic", targets: ["ground"], delay: 5, parentId: this.id, parentUUID: this.uuid, }); } } // Static property for source path DreadHero.src = "src/zerospace/mercenary/dread/hero/dread-hero.ts"; export default DreadHero; //# sourceMappingURL=dread-hero.js.map