ZSGG Public Library
Behemoth
Grell T3 Army Unit
import { GrellArmyUnit } from "../../../../defaults/grell.js";
import { Attack, Upgrade } from "../../../../engine/ability.js";
export class Behemoth extends GrellArmyUnit {
override uuid: string;
static override src = "src/zerospace/faction/grell/unit/behemoth.ts";
constructor() {
super();
this.hexiteCost = 100;
this.fluxCost = 200;
this.buildTime = 80;
this.buildCount = 1;
this.name = "Behemoth";
this.tier = "T3";
this.hotkey = "D";
this.uuid = "6774a583-46f9-41a8-9feb-ddaf997bc401";
this.internalId = "Troop_GrellBehemoth_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_GrellBehemoth.Default__Troop_GrellBehemoth_C";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.ArmorType.Heavy",
"Logic.ABES",
"Attackable.Biological",
"Attackable.FlyingUnit",
];
this.internalSecondaryTags = ["Biological", "Air"];
this.unlockedBy = ["faction/grell/building/elderwomb", "faction/grell/building/skyclutch"];
this.createdBy = ["faction/grell/building/elderwomb"];
this.upgradedBy = ["faction/grell/building/skyclutch"];
this.hp = 625;
this.shields = 0;
this.armor = 0;
this.armorType = "heavy";
this.speed = 500;
this.supply = 8;
this.turnSpeed = 2500;
this.vision = 1800;
this.description = "Powerful flying brawler. \nPeriodically deals area damage over time on attacks.";
const behemoth = this;
this.attacks.energyBurst = new Attack({
name: "Energy Burst",
damage: 30,
cooldown: 2.0,
armorPenetration: 0,
delay: 0.3,
range: 1200,
targets: ["ground"],
bonusDamage: [{ multiplier: 3.0, vs: ["armor:heavy"] }],
parentId: this.id,
parentUUID: this.uuid,
});
// should be a trigger later, and be called deathbloom, but i forget how triggers work and meh
//
// this.spells.sacrifice = new Spell({
// name: "Sacrifice",
// description:
// "Sacrifices itself, healing nearby units and damaging enemies. +25% damage and healing from death effect. Autocast on death.",
// hotkey: "M",
// targets: ["self"],
// parentId: this.id,
// parentUUID: this.uuid,
// });
this.attacks.faerieFire = new Attack({
name: "Faerie Fire",
energyCost: 5,
energyType: "abes",
cooldown: 0,
damageOverTime: 40,
duration: 8,
range: 200,
targets: ["ground"],
splash: { multiplier: 1.0, range: 200 },
description:
"Area damage spell unleashed once every 5 attacks. Deals 20 damage every 0.5s for 8s to enemies in area.",
parentId: this.id,
parentUUID: this.uuid,
});
this.upgrades.weaponRange = new Upgrade({
name: "Weapon Range",
description: "+6 attack range.",
tier: "T3.5" as const,
fluxCost: 100,
researchTime: 50,
apply: () => {
behemoth.attacks.energyBurst!.range = 1800;
},
parentId: this.id,
parentUUID: this.uuid,
});
this.upgrades.deathbloom = new Upgrade({
name: "Deathbloom",
description: "Deals 50 damage and heals 50 health per second to nearby ground uits upon death. Lasts 5 seconds.",
tier: "T3.5",
fluxCost: 100,
researchTime: 50,
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default Behemoth;