ZeroSpace.gg

Titan

Protectorate T2.5 Army Unit

import { ProtectorateArmyUnit } from "../../../../defaults/protectorate.js"; import { Attack, Spell, Upgrade } from "../../../../engine/ability.js"; export class Titan extends ProtectorateArmyUnit { override uuid: string; static override src = "src/zerospace/faction/protectorate/unit/titan.ts"; constructor() { super(); this.hexiteCost = 125; this.fluxCost = 75; this.buildTime = 40; this.name = "Titan"; this.tier = "T2.5"; this.supply = 5; this.uuid = "05d86203-d9ef-4ea8-bde2-a8801a1b122f"; this.internalId = "Troop_Prot_Atlas_C"; this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Prot_Atlas.Default__Troop_Prot_Atlas_C"; this.internalTags = ["Attackable.Unit.Troop", "Attackable.ArmorType.Medium"]; this.internalSecondaryTags = ["Mech"]; this.hp = 425; this.armor = 0; this.armorType = "medium"; this.speed = 550; this.maxTurrets = 0; this.turnSpeed = 2000; this.pushability = 0.7; this.description = "Mobile mech that can use Jetpack. Equipped with a secondary anti-air weapon."; const unit = this; this.attacks.dualGSP11430mmRotaryCannon = new Attack({ internalId: "Default__Weapon_Atlas_Gatling_C", name: "Dual GSP-114 30mm Rotary Cannon", damage: 8, volleys: 2, cooldown: 0.5, range: 1000, targets: ["ground"], bonusDamage: [{ multiplier: 1.25, vs: ["armor:light"] }], armorPenetration: 0, parentId: this.id, parentUUID: this.uuid, }); this.attacks.sTXFanusTwinMissile = new Attack({ name: "STX Fanus Twin Missile", damage: 20, shots: 2, range: 1400, splash: { multiplier: 0.5, range: 200 }, cooldown: 1, targets: ["air"], parentId: this.id, parentUUID: this.uuid, }); this.spells.jetpack = new Spell({ name: "Jetpack", description: "Jumps to a target location, ignoring terrain.", hotkey: "D", cooldown: 18, forceAutocast: false, unlocked: false, parentId: this.id, parentUUID: this.uuid, }); this.upgrades.jetpack = new Upgrade({ name: "Jetpack", unlockedBy: ["faction/protectorate/building/mechanical-research-lab"], description: "Unlocks the Jetpack ability", tier: "T1", position: "A", fluxCost: 125, researchTime: 50, apply: () => { unit.spells.jetpack!.unlocked = true; }, parentId: this.id, parentUUID: this.uuid, }); this.upgrades.antimatterBoosters = new Upgrade({ name: "Antimatter Boosters", unlockedBy: ["faction/protectorate/building/mechanical-research-lab"], description: "+3 attack range", tier: "T1", position: "B", fluxCost: 125, researchTime: 50, apply() { unit.attacks.dualGSP11430mmRotaryCannon!.range! += 300; unit.attacks.sTXFanusTwinMissile!.range! += 300; }, parentId: this.id, parentUUID: this.uuid, }); this.createdBy = ["faction/protectorate/building/assembly-plant"]; this.upgradedBy = ["faction/protectorate/building/mechanical-research-lab"]; this.unlockedBy = ["faction/protectorate/building/assembly-plant"]; this.tags.push("attacker", "spellcaster", "eligible:infusion", "eligible:reanimate", "can-be-mind-controlled"); } } export default Titan;