ZSGG Public Library
Mammoth
Legion T2 Army Unit
import { LegionArmyUnit } from "../../../../defaults/legion.js";
import { Attack, Passive, Spell, Upgrade } from "../../../../engine/ability.js";
export class Mammoth extends LegionArmyUnit {
override uuid: string;
static override src = "src/zerospace/faction/legion/unit/mammoth.ts";
override get infuseCost(): number | undefined {
return 13;
}
constructor() {
super();
this.hexiteCost = 175;
this.fluxCost = 100;
this.buildTime = 48;
this.buildCount = 1;
this.name = "Mammoth";
this.tier = "T2";
this.internalId = "Troop_Empire_Mammoth_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Empire_Mammoth.Default__Troop_Empire_Mammoth_C";
this.uuid = "86d4965a-0320-48d7-bc41-7343522ad7fb";
this.internalTags = [
"Attackable.Unit.Troop",
"Attackable.Biological",
"Local.Legion.Infantry.Mammoth",
"Attackable.ArmorType.Heavy",
];
this.internalSecondaryTags = ["Biological"];
this.description =
"Heavy beast that can be mounted by Legion infantry units. \nEach infantry rider grants Mammoth unique benefits.";
this.supply = 8;
this.hp = 1000;
this.shields = 0;
this.armor = 0;
this.armorType = "medium";
this.speed = 400;
this.turnSpeed = 5000;
this.createdBy = ["faction/legion/building/beastiary"];
this.unlockedBy = ["faction/legion/building/terror-tower"];
this.upgradedBy = ["faction/legion/building/citadel"];
this.attacks.attack = new Attack({
name: "Attack",
damage: 90,
cooldown: 2.0,
armorPenetration: 0,
delay: 0.58,
range: 250,
targets: ["ground"],
bonusDamage: [{ multiplier: 3.0, vs: ["building"] }],
parentId: this.id,
parentUUID: this.uuid,
});
this.passives.thrallRider = new Passive({
name: "Thrall Rider",
description:
"A Thrall, Steelsworn, or Dark Disciple may ride the Mammoth. Bonuses: Mounted Thrall has +100% attack speed and +5% move speed (10% with upgrade). Mounted Steelsworn gives +4 armor to the Mammoth (8 with upgrade). Mounted Dark Disciple gives the Mammoth 40 area damage in its attack and unlocks Storm ability.",
wikiDescription: `
A [[faction/legion/unit/thrall]], [[faction/legion/unit/steelsworn]], or [[faction/legion/unit/dark-disciple]] may ride the Mammoth.
- [[faction/legion/unit/thrall]]: +100% attack speed and +5% move speed.
- [[faction/legion/unit/steelsworn]]: +4 armor to the Mammoth.
- [[faction/legion/unit/dark-disciple]]: Adds 40 area damage to the Mammoth's attack and unlocks [[faction/legion/unit/mammoth/spells/storm]].
[[faction/legion/unit/mammoth/ability/ironhide-accord]] doubles all rider bonuses.
`,
parentId: this.id,
parentUUID: this.uuid,
});
this.passives.trample = new Passive({
name: "Stomp",
description: "Deals 30 damage to units directly underneath the mammoth",
damage: 30,
cooldown: 1,
parentId: this.id,
parentUUID: this.uuid,
});
this.spells.storm = new Spell({
name: "Storm",
description:
"Casts a storm at a target location, dealing damage to units in the area for 5 seconds. Requires Dark Disciple rider. (20dmg every 1s, 100dmg total)",
energyCost: 30,
targets: ["map"],
parentId: this.id,
parentUUID: this.uuid,
});
const unit = this;
this.upgrades.ironhideAccord = new Upgrade({
name: "Ironhide Accord",
description: "Doubles all troop bonuses",
tier: "T2.5",
fluxCost: 150,
researchTime: 50,
apply() {},
parentId: this.id,
parentUUID: this.uuid,
});
}
}
export default Mammoth;