UNPKG

@zerospacegg/iolin

Version:

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

44 lines 1.46 kB
/** * Legion Laborer - Legion's resource harvesting unit * Harvests flux with healing abilities, essential for Legion economy */ import { Heal } from "../../../../engine/ability.js"; import { LegionHarvesterUnit } from "../../legion-classes.js"; import GarrisonTower from "../building/garrison-tower.js"; export class LegionLaborer extends LegionHarvesterUnit { constructor() { super(); this.name = "Laborer"; this.tier = "T0"; this.hexiteCost = 75; this.fluxCost = 0; this.buildTime = 25; this.buildCount = 1; this.gathersFlux = 0.7; this.gathersRichFlux = 1.4; this.uuid = "8a5b5790-9747-4639-8596-398bf4f64c38"; // Basic stats this.hp = 150; this.shields = 0; this.armor = 0; this.armorType = "light"; this.speed = 450; this.supply = 0; this.maxOwned = 15; // Production requirements this.createdBy = [GarrisonTower.id]; this.unlockedBy = ["faction/legion/building/garrison-tower"]; // Healing ability this.heals.heal = new Heal({ name: "Heal", healing: 10, range: 100, cooldown: 0.5, parentId: this.id, parentUUID: this.uuid, }); } } LegionLaborer.src = "src/zerospace/faction/legion/unit/legion-laborer.ts"; export default LegionLaborer; //# sourceMappingURL=legion-laborer.js.map