ZSGG Public Library
Marran Badger
Marran T2 Merc Unit
import { MarranMercUnit } from "../../../../defaults/marran.js";
import { Attack } from "../../../../engine/ability.js";
export class MarranBadger extends MarranMercUnit {
override uuid: string;
static override src = "src/zerospace/mercenary/marran/unit/marran-badger.ts";
constructor() {
super();
this.hexiteCost = 200;
this.fluxCost = 150;
this.buildCount = 3;
this.name = "Marran Badger";
this.tier = "T2";
this.hotkey = "C";
this.internalId = "Troop_Marran_Badger_C";
this.internalPath = "/Game/Nova/Archetypes_Troops/Troop_Marran_Badger.Default__Troop_Marran_Badger_C";
this.internalTags = ["Attackable.Unit.Troop", "Attackable.ArmorType.Heavy", "Local.Marran.Cruicible"];
this.internalSecondaryTags = ["Vehicle"];
this.uuid = "bd14c4a6-d658-4de0-9020-5e806f6ddd08";
// FUTURE-FEATURE: BUFFS — the stacking debuff has no home in the data, so the count and what
// it does on the sixth stack live in this description.
this.description =
"Tank whose attacks stack a debuff on the target. Every Badger's attack adds a stack, so several attacking together reach it faster, and the sixth deals area damage and slows.";
this.shortName = "Badger";
this.supply = 3;
this.shieldRegen = 9;
this.hp = 150;
this.shields = 150;
this.armorType = "heavy";
this.speed = 450;
this.turnSpeed = 1000;
this.pushability = 0.45;
this.createdBy = ["mercenary/marran/building/marran-bulwark"!];
this.attacks.pulseCharge = new Attack({
internalId: "Default__Weapon_MarranBadgerGun_C",
name: "Pulse Charge",
damage: 16,
cooldown: 1.7,
armorPenetration: 0,
delay: 0.1,
range: 1500,
targets: ["air", "ground"],
bonusDamage: [{ multiplier: 1.5, vs: ["armor:medium"] }],
parentId: this.id,
parentUUID: this.uuid,
});
// TODO add charged shot
// 30 damage (+50% vs Medium)
// doesn't affect flying units
}
}
export default MarranBadger;