diff --git a/src/lib/components/influenceStatblock.svelte b/src/lib/components/influenceStatblock.svelte new file mode 100644 index 0000000..9757410 --- /dev/null +++ b/src/lib/components/influenceStatblock.svelte @@ -0,0 +1,42 @@ + + +
{statblock.type}
+Perception {#if statblock.perception >= 0}+{/if}{statblock.perception}
+Will {#if statblock.will >= 0}+{/if}{statblock.will}
+Discovery {#each statblock.discovery as discovery, index}
+
Influence Skills {#each statblock.influence as influence, index}
+
Resistances {@html statblock.resistance.replace("\n\n", "
")}
Weakness {@html statblock.weakness.replace("\n\n", "
")}
Background {@html statblock.background.replace("\n\n", "
")}
Appearance {@html statblock.appearance.replace("\n\n", "
")}
Personality {@html statblock.personality.replace("\n\n", "
")}
Penalty {@html statblock.penalty.replace("\n\n", "
")}
Influence {value} {@render children()}
\ No newline at end of file diff --git a/src/lib/data/influence.ts b/src/lib/data/influence.ts new file mode 100644 index 0000000..638c031 --- /dev/null +++ b/src/lib/data/influence.ts @@ -0,0 +1,17 @@ +const statblocks = import.meta.glob( + "/data/*-influence.json", + { + eager: true + } +); + +const influence: Record