@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
70 lines • 2.79 kB
JavaScript
"use strict";
/**
* Dread Raider - Fast T1 scout unit with thieve ability
* Fast-moving operative who redistributes wealth through hit-and-run tactics
*/
Object.defineProperty(exports, "__esModule", { value: true });
const dread_js_1 = require("../../../../defaults/dread.cjs");
const ability_js_1 = require("../../../../engine/ability.cjs");
class DreadRaider extends dread_js_1.DreadRaidersMercUnit {
constructor() {
super();
// Auto-generated fixes from dev data comparison
this.name = "Dread Raider";
this.tier = "T1";
this.hotkey = "Q";
this.internalId = "Troop_Dread_Demo_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Dread_Demo.Default__Troop_Dread_Demo_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Unit.Light",
"Attackable.ArmorType.Light",
"Attackable.Biological",
];
this.internalSecondaryTags = ["Infantry"];
this.uuid = "20298043-24f6-48ac-968e-f915c9c2cde5";
this.description =
"Light infantry which can steal Hexite from enemies. Can jump up and down cliffs. Attacks ground and air units.";
// Mutable properties (can be modified by upgrades)
this.shortName = "Raider";
this.hp = 175;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 650;
this.supply = 2;
this.turnSpeed = 5000;
// TODO: Convert to getter - this.infuseCost = 3;
// Relationships
this.createdBy = ["mercenary/dread/building/dread-merc-outpost"];
this.unlockedBy = ["mercenary/dread/building/dread-merc-outpost"];
// Primary attack
this.attacks.attack = new ability_js_1.Attack({
name: "Attack",
damage: 12,
cooldown: 1.5,
cooldownBetweenShots: 0.62,
armorPenetration: 0,
delay: 0,
range: 800,
targets: ["air", "ground"],
bonusDamage: [{ multiplier: 1.75, vs: ["unit:harvester"] }],
parentId: this.id,
parentUUID: this.uuid,
});
// Thieve ability
this.spells.thieve = new ability_js_1.Spell({
name: "Thieve",
cooldown: 60.0,
targets: ["ground"],
delay: 5.0,
description: "60s cooldown. Steals 100 hexite from target extractor or harvester after 5 seconds. The owner does not lose resources.",
parentId: this.id,
parentUUID: this.uuid,
});
}
}
// Static property for source path
DreadRaider.src = "src/zerospace/mercenary/dread/unit/dread-raider.ts";
exports.default = DreadRaider;
//# sourceMappingURL=dread-raider.js.map