ZeroSpace.gg

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"; 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", "Attackable.Beast", ]; this.internalSecondaryTags = ["Biological"]; this.description = "Heavy beast that can be mounted by Legion infantry units. \nCan walk over allied infantry. Deals 50 damage in a line upon killing a unit. Deals bonus damage to Buildings. \n\nThrall provides +125 movement speed. \nSteelsworn adds +3 Armor. \nDark Disciple or Storm Bringer causes it to trample nearby enemies for 60 damage per second while moving, and also grants the Thrall movement speed bonus."; this.wikiDescription = ` Heavy beast that can be mounted by Legion infantry units. Can walk over allied infantry. Deals 50 damage in a line upon killing a unit, and bonus damage to Buildings. - [[faction/legion/unit/thrall]]: +125 movement speed. - [[faction/legion/unit/steelsworn]]: +3 Armor. - [[faction/legion/unit/dark-disciple]] or [[faction/legion/unit/storm-bringer]]: tramples nearby enemies for 60 damage per second while moving, and grants the Thrall movement speed bonus. `; this.supply = 6; this.hp = 1000; this.shields = 0; this.armor = 1; this.armorType = "heavy"; 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.unstoppableRam = new Attack({ internalId: "Default__Weapon_Mammoth_C", name: "Unstoppable Ram", damage: 90, cooldown: 2.0, armorPenetration: 0, delay: 0.58, range: 250, targets: ["ground"], bonusDamage: [{ multiplier: 2.5, vs: ["building"] }], parentId: this.id, parentUUID: this.uuid, }); this.passives.stomp = 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", unlockedBy: ["faction/legion/building/citadel"], description: "Doubles all troop bonuses", tier: "T1", position: "A", fluxCost: 100, researchTime: 50, apply() {}, parentId: this.id, parentUUID: this.uuid, }); } } export default Mammoth;