@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
62 lines • 2.49 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 "../../defaults/chakru.js";
// Import units
// Import buildings
// 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 = [
"mercenary/chakru/unit/chakru-clackjaw",
"mercenary/chakru/unit/chakru-cultist",
"mercenary/chakru/unit/chakru-ghost-crab",
"mercenary/chakru/unit/chakru-hatun",
"mercenary/chakru/unit/chakru-rageborn",
"mercenary/chakru/unit/chakru-warrior",
];
// Set buildings array
this.buildings = ["mercenary/chakru/building/chakru-temple-of-earth", "mercenary/chakru/building/chakru-temple-of-water"];
// 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