@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
57 lines • 2.29 kB
JavaScript
"use strict";
/**
* Grell Harvester - Economic unit that generates biomass and spawns cultivators
* Essential for Grell economy and forward positioning strategies
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GrellHarvester = void 0;
const ability_js_1 = require("../../../../engine/ability.cjs");
const grell_classes_js_1 = require("../../grell-classes.cjs");
const cultivator_js_1 = __importDefault(require("../building/cultivator.cjs"));
const root_colony_js_1 = __importDefault(require("../building/root-colony.cjs"));
class GrellHarvester extends grell_classes_js_1.GrellHarvesterUnit {
constructor() {
super();
this.name = "Grell Harvester";
this.tier = "T0";
this.hotkey = "H";
this.hexiteCost = 100;
this.fluxCost = 0;
this.buildTime = 25;
this.buildCount = 1;
this.gathersFlux = 1;
this.gathersRichFlux = 2;
this.uuid = "3cba31af-7e39-4f33-94ba-dff08dd4a213";
this.unlockedBy = [root_colony_js_1.default.id];
this.createdBy = [root_colony_js_1.default.id];
this.creates = [cultivator_js_1.default.id];
this.description = "Harvests flux. Has the ability to spawn Cultivators. Harvesters respawn 60s after being destroyed.";
this.hp = 275;
this.shields = 0;
this.armor = 0;
this.armorType = "light";
this.speed = 450;
this.supply = 0;
this.maxOwned = 10;
this.providesBiomass = 375;
this.spells.spawnCultivator = new ability_js_1.Spell({
name: "Spawn Cultivator",
description: "Spawns a free cultivator (spawns with ability off cooldown)",
hotkey: "G",
cooldown: 60,
cooldownAtBuild: false,
range: 375,
targets: ["map"],
parentId: this.id,
parentUUID: this.uuid,
});
}
}
exports.GrellHarvester = GrellHarvester;
// Static property for source path
GrellHarvester.src = "src/zerospace/faction/grell/unit/grell-harvester.ts";
exports.default = GrellHarvester;
//# sourceMappingURL=grell-harvester.js.map