@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
52 lines • 2.04 kB
JavaScript
"use strict";
/**
* Dread Rover - Fast T1 assault vehicle with twin rapid-fire guns
* High-speed nomadic vehicle that embodies perpetual motion and freedom
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ability_js_1 = require("../../../../engine/ability.cjs");
const dread_classes_js_1 = require("../../dread-classes.cjs");
const dread_merc_outpost_js_1 = __importDefault(require("../building/dread-merc-outpost.cjs"));
class DreadRover extends dread_classes_js_1.DreadRaidersMercUnit {
constructor() {
super();
this.name = "Dread Rover";
this.tier = "T1";
this.hotkey = "R";
this.hexiteCost = 200;
this.fluxCost = 50;
this.buildTime = 30;
this.buildCount = 2;
this.uuid = "02ebf5cc-78dd-4201-9f4a-7fea47f55c17";
this.description = "Light vehicle which can shoot while moving. Gains bonus attack speed vs nearby units. Attacks ground and air units.";
// Mutable properties (can be modified by upgrades)
this.shortName = "Rover";
this.hp = 320;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 750;
this.supply = 3;
// Relationships
this.createdBy = [dread_merc_outpost_js_1.default.id];
this.unlockedBy = [dread_merc_outpost_js_1.default.id];
// Primary attack - Twin rapid-fire guns
this.attacks.attack = new ability_js_1.Attack({
name: "Attack",
damage: 4,
volleys: 2,
cooldown: 0.47,
range: 700,
targets: ["air", "ground"],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
// Static property for source path
DreadRover.src = "src/zerospace/mercenary/dread/unit/dread-rover.ts";
exports.default = DreadRover;
//# sourceMappingURL=dread-rover.js.map