ZeroSpace.gg

Cultivator

Grell Co-Op T0 Special Building

import { GrellSpecialBuilding } from "../../../../../defaults/grell.js"; import { Attack } from "../../../../../engine/ability.js"; import { Turret } from "../../../../../engine/turret.js"; export class CoopCultivator extends GrellSpecialBuilding { override uuid: string; static override src = "src/zerospace/coop/commander/vynthra/building/coop-vynthra-cultivator.ts"; override get variantOf(): string { return "faction/grell/building/cultivator"; } constructor() { super(); this.hexiteCost = 15; 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 = 2400; this.uuid = "91944486-8d50-4e1d-870e-c8959a98121e"; 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 = 400; this.shields = 0; this.armor = 0; this.armorType = "building"; this.speed = 0; this.createdBy = [ "coop/commander/vynthra/unit/coop-vynthra-seedling", "coop/commander/vynthra/unit/coop-vynthra-gatherer", ]; this.unlockedBy = ["coop/commander/vynthra/building/coop-vynthra-bloomwell"]; const cultivator = this; this.attacks.decomposerSpray = new Attack({ name: "Decomposer Spray", description: "Requires Cultivator Defender upgrade", damage: 15, cooldown: 1.1, range: 1500, targets: ["air", "ground"], bonusDamage: [{ multiplier: 1.5, vs: ["domain:air"] }], 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 600 amd allow the Cultivator to attack enemies.\nAdds 1 armor.", hexiteCost: 50, buildTime: 20, hp: 1000, armor: 1, unlocked: false, unlockedBy: ["coop/commander/vynthra/building/coop-vynthra-broodwomb"], // TODO: display requirement apply() { cultivator.hp = 1000; cultivator.armor = 1; cultivator.attacks.decomposerSpray!.unlocked = true; cultivator.providesDetection = true; }, }); this.setVariantUUID("coop-vynthra"); this.unlockedBy = ["coop/commander/vynthra/building/coop-vynthra-bloomwell"]; this.createdBy = [ "coop/commander/vynthra/unit/coop-vynthra-seedling", "coop/commander/vynthra/unit/coop-vynthra-gatherer", ]; } } export default CoopCultivator;