A repository for a FoundryVTT plugin for Kingmaker homebrew.

Adding data into code

+42
+42
src/data/index.ts
··· 1 + import charters from "./charter.json"; 2 + import governments from "./government.json"; 3 + import heartlands from "./heartland.json"; 4 + 5 + export interface Charter { 6 + id: string; 7 + boosts: Boost[]; 8 + } 9 + 10 + export interface Government { 11 + id: string; 12 + boosts: Boost[]; 13 + feat: string; 14 + } 15 + 16 + export interface Heartland { 17 + id: string; 18 + boost: Boost; 19 + } 20 + 21 + export enum Attribute { 22 + Loyalty = "loyalty", 23 + Culture = "culture", 24 + Stability = "stability", 25 + Economy = "economy", 26 + None = "" 27 + } 28 + 29 + export enum Boost { 30 + Loyalty = "loyalty", 31 + Culture = "culture", 32 + Stability = "stability", 33 + Economy = "economy", 34 + None = "", 35 + Free = "free" 36 + } 37 + 38 + export const data = { 39 + charters, 40 + governments, 41 + heartlands 42 + };