@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
43 lines • 1.53 kB
JavaScript
/**
* Guardian Obelisk - Temporary defensive structure
* Sacred defensive turret that provides protection for a limited time
*/
import { Attack } from "../../../../engine/ability.js";
import { LegionSpecialBuilding } from "../../legion-classes.js";
import LegionBarracks from "../building/legion-barracks.js";
import LegionBuildDrone from "../unit/legion-build-drone.js";
export class GuardianObelisk extends LegionSpecialBuilding {
constructor() {
super();
this.name = "Guardian Obelisk";
this.tier = "";
this.hexiteCost = 75;
this.fluxCost = 0;
this.buildTime = 10;
this.buildCount = 1;
this.timedLife = 150;
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,
range: 1600,
targets: ["air", "ground"],
parentId: this.id,
parentUUID: this.uuid,
});
// Relationships
this.createdBy = [LegionBuildDrone.id];
this.unlockedBy = [LegionBarracks.id];
// Lore - temporary sacred fortification
}
}
GuardianObelisk.src = "src/zerospace/faction/legion/building/guardian-obelisk.ts";
export default GuardianObelisk;
//# sourceMappingURL=guardian-obelisk.js.map