@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
54 lines • 2.04 kB
JavaScript
/**
* Guardian Obelisk - Temporary defensive structure
* Sacred defensive turret that provides protection for a limited time
*/
import { LegionSpecialBuilding } from "../../../../defaults/legion.js";
import { Attack } from "../../../../engine/ability.js";
export class GuardianObelisk extends LegionSpecialBuilding {
// Readonly properties
constructor() {
super();
// Auto-generated fixes from dev data comparison
this.hexiteCost = 190;
this.fluxCost = 0;
this.buildTime = 10;
this.buildCount = 1;
this.timedLife = 150;
this.name = "Guardian Obelisk";
this.tier = "";
this.internalId = "Building_Legion_Obelisk_Defensive_C";
this.internalPath =
"/Game/Nova/Archetypes_Buildings/Building_Legion_Obelisk_Defensive.Default__Building_Legion_Obelisk_Defensive_C";
this.internalTags = [
"Attackable.Building.Anorganic",
"Building.NoContructionCompleteSound",
"Building.Legion.Obelisk",
];
this.uuid = "3135ef12-8504-4ca5-b20a-6cd651a7d4a7";
// Temporary defensive structure stats
this.hp = 500;
this.armor = 0;
this.armorType = "building";
this.speed = 0;
// Defensive turret attack
this.attacks.cannon = new Attack({
name: "Attack",
damage: 50,
cooldown: 1.5,
cooldownBetweenShots: 1.5,
armorPenetration: 0,
delay: 0,
range: 1600,
targets: ["air", "ground"],
parentId: this.id,
parentUUID: this.uuid,
});
// Relationships
this.createdBy = ["faction/legion/unit/legion-build-drone"];
this.unlockedBy = ["faction/legion/building/legion-barracks"];
// Lore - temporary sacred fortification
}
}
GuardianObelisk.src = "src/zerospace/faction/legion/building/guardian-obelisk.ts";
export default GuardianObelisk;
//# sourceMappingURL=guardian-obelisk.js.map