@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
70 lines • 2.83 kB
JavaScript
/**
* Chakru Mercenary Faction
* Cha'Kru Kingdom - Masters of blood magic and biotechnology, worshipping the mythic Leviathan
*
* Mercenary faction structure:
* - Two talents (Revive, Lifesteal)
* - Six units (3 water-based, 3 earth-based)
* - Two temple buildings (Temple of Water, Temple of Earth)
* - No hero (mercHeroesAllowed = true but no specific hero)
* - Two sacrifice topbars (Sacrifice to Pachamama, Sacrifice to Illapu)
*/
import { ChakruFaction, ChakruTalent, ChakruTopbar } from "./chakru-classes.js";
// Import units
import ChakruClackjaw from "./chakru/unit/chakru-clackjaw.js";
import ChakruCultist from "./chakru/unit/chakru-cultist.js";
import ChakruGhostCrab from "./chakru/unit/chakru-ghost-crab.js";
import ChakruHatun from "./chakru/unit/chakru-hatun.js";
import ChakruRageborn from "./chakru/unit/chakru-rageborn.js";
import ChakruWarrior from "./chakru/unit/chakru-warrior.js";
// Import buildings
import ChakruTempleOfEarth from "./chakru/building/chakru-temple-of-earth.js";
import ChakruTempleOfWater from "./chakru/building/chakru-temple-of-water.js";
// Create concrete Chakru faction class
export class Chakru extends ChakruFaction {
constructor() {
super();
this.name = "Cha'Kru Kingdom";
this.uuid = "92e6d4b9-621c-4859-a86a-4249e4dc6531";
// Mercenary faction settings
// Set talents
this.talents.revive = new ChakruTalent({
uuid: "56aa47b8-720b-4523-96e8-d1c307c3efe7",
name: "Revive",
level: 2,
description: "Units revive with 50% health when killed",
});
this.talents.lifesteal = new ChakruTalent({
uuid: "2723225b-2489-4c01-8e71-a237071f68eb",
name: "Lifesteal",
level: 4,
description: "Units heal for 25% of damage dealt",
});
// Set topbars
this.topbars.sacrificeToPachamama = new ChakruTopbar({
name: "Sacrifice to Pachamama",
description: "Sacrifice units to Pachamama for earth power",
});
this.topbars.sacrificeToIllapu = new ChakruTopbar({
name: "Sacrifice to Illapu",
description: "Sacrifice units to Illapu for water power",
});
// Set units array
this.units = [
ChakruClackjaw.id,
ChakruCultist.id,
ChakruGhostCrab.id,
ChakruHatun.id,
ChakruRageborn.id,
ChakruWarrior.id,
];
// Set buildings array
this.buildings = [ChakruTempleOfEarth.id, ChakruTempleOfWater.id];
// Set heroes array (TODO: implement Chakru hero)
this.heroes = [];
}
}
// Static property for source path
Chakru.src = "src/zerospace/mercenary/chakru.ts";
export default Chakru;
//# sourceMappingURL=chakru.js.map