ZeroSpace.gg

Cultivator

Grell T0 Special Building

import { GrellSpecialBuilding } from "../../../../defaults/grell.js"; import { Attack } from "../../../../engine/ability.js"; import { Turret } from "../../../../engine/turret.js"; export class Cultivator extends GrellSpecialBuilding { override uuid: string; static override src = "src/zerospace/faction/grell/building/cultivator.ts"; constructor() { super(); this.hexiteCost = 20; this.fluxCost = 0; this.buildTime = 8; this.buildCount = 1; this.name = "Cultivator"; this.description = "Generates Biomass. \nCan be upgraded to attack."; this.tier = "T0"; this.hotkey = "E"; this.maxTurrets = 1; this.providesBiomass = 1500; this.uuid = "6a63e0bb-cf32-4aab-85e8-b21d0567a3a1"; this.internalId = "Building_Grell_Cultivator_C"; this.internalPath = "/Game/Nova/Archetypes_Buildings/Building_Grell_Cultivator.Default__Building_Grell_Cultivator_C"; this.internalTags = [ "Attackable.Building", "Building.Grell.Cultivator", "Building.CreepSpread", "Attackable.Biological", ]; this.internalSecondaryTags = []; this.hp = 250; this.shields = 0; this.armor = 0; this.armorType = "building"; this.speed = 0; this.createdBy = ["faction/grell/unit/seedling", "faction/grell/unit/gatherer"]; this.unlockedBy = ["faction/grell/building/bloomwell"]; const cultivator = this; this.attacks.attack = new Attack({ name: "Attack", description: "Requires Cultivator Defender upgrade", damage: 12, shots: 3, cooldown: 1.8, range: 1500, targets: ["air", "ground"], unlocked: false, parentId: this.id, parentUUID: this.uuid, }); this.turrets.cultivatorDefender = new Turret({ internalId: "Building_Grell_CultivatorAttacker_C", internalPath: "/Game/Nova/Archetypes_Buildings/Building_Grell_CultivatorAttacker.Default__Building_Grell_CultivatorAttacker_C", name: "Cultivator Defender", description: "Upgrade to increase health by 150 amd allow the Cultivator to attack enemies.", hexiteCost: 75, buildTime: 20, hp: 400, unlocked: false, apply() { cultivator.hp = 400; cultivator.attacks.attack!.unlocked = true; cultivator.providesDetection = true; }, }); } } export default Cultivator;