Skip to content

Commit

Permalink
Vulnerability line
Browse files Browse the repository at this point in the history
ben committed Feb 4, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6f8df14 commit a1a118e
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "13th-age-statblocks",
"name": "13th Age Statblocks",
"version": "0.1.3",
"version": "0.1.4",
"minAppVersion": "0.12.0",
"description": "Render 13th Age statblocks in Obsidian.",
"author": "Ben Straub",
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-sample-plugin",
"version": "0.1.3",
"version": "0.1.4",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
6 changes: 6 additions & 0 deletions statblockrenderer.ts
Original file line number Diff line number Diff line change
@@ -26,6 +26,12 @@ export class StatblockRenderer extends MarkdownRenderChild {
if (params.initiative !== undefined) {
this.statblockEl.createDiv({
text: `Initiative: ${bonus(params.initiative)}`,
cls: params.vuln ? "nomargin" : undefined,
});
}
if (params.vuln !== undefined) {
this.statblockEl.createDiv({
text: `Vulnerability: ${params.vuln}`,
});
}

0 comments on commit a1a118e

Please sign in to comment.