Skip to content

Commit

Permalink
fix: Adds Regional Effects to the Basic 5e Statblock
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Apr 27, 2024
1 parent fb58048 commit 8274249
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions index.ts
Expand Up @@ -105,6 +105,8 @@ export interface Monster {
creature?: string;
extends?: string | string[];
bestiary: boolean;

[key: string]: any;
}

export interface StatblockParameters
Expand Down
10 changes: 9 additions & 1 deletion src/layouts/basic 5e/basic5e.ts
Expand Up @@ -727,6 +727,14 @@ return "";`
heading: "Lair Actions",
conditioned: true,

dice: true
},
{
type: "traits",
id: nanoid(),
properties: ["regional_effects"],
heading: "Regional Effects",
conditioned: true,
dice: true
}
];
Expand All @@ -736,5 +744,5 @@ export const Layout5e: DefaultLayout = {
id: "basic-5e-layout",
name: "Basic 5e Layout",
edited: false,
version: 8
version: 9
};
2 changes: 1 addition & 1 deletion src/layouts/layout.types.ts
Expand Up @@ -49,7 +49,7 @@ type RequiredProps = {
};

export type CommonProps = RequiredProps & {
properties: Array<keyof Monster>;
properties: string[];
fallback?: string;
hasRule?: boolean;
dice?: boolean;
Expand Down

0 comments on commit 8274249

Please sign in to comment.