@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
60 lines • 2.04 kB
JavaScript
/**
* Spiderling - Light Grell Infantry
*
* A small, fast-moving Grell creature that serves as a cheap early-game unit.
* Spiderlings are fragile but mobile, making them useful for scouting and
* quick harassment tactics.
*/
import { GrellArmyUnit } from "../../../../defaults/grell.js";
import { Attack } from "../../../../engine/ability.js";
class Spiderling extends GrellArmyUnit {
constructor() {
super();
// Auto-generated fixes from dev data comparison
this.name = "Spiderling";
this.tier = "T0";
this.hotkey = "";
this.domain = "ground";
this.uuid = "7c978ffc-7c1f-437f-883f-f2f2604e0102";
// Internal game engine data
this.internalId = "Troop_GrellSpiderling_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_GrellSpiderling.Default__Troop_GrellSpiderling_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Unit.Light",
"Attackable.ArmorType.Light",
"Attackable.Biological",
];
this.internalSecondaryTags = [];
// Stats from dev data
this.hp = 80;
this.speed = 725;
this.vision = 1800;
this.armorType = "light";
this.supply = 0;
this.buildTime = 16;
this.turnSpeed = 5000;
this.pushability = 1;
// Costs
this.hexiteCost = 0;
this.fluxCost = 0;
// Basic melee attack
this.attacks.attack = new Attack({
name: "Attack",
damage: 4,
cooldown: 1,
cooldownBetweenShots: 1,
range: 100,
targets: ["ground"],
armorPenetration: 0,
delay: 0,
parentId: this.id,
parentUUID: this.uuid,
internalId: "Default__Grell_SpiderlingMelee_C",
});
}
}
// Static property for source path
Spiderling.src = "src/zerospace/faction/grell/unit/spiderling.ts";
export default Spiderling;
//# sourceMappingURL=spiderling.js.map