From 3b8803802572e3319d22ef70806be7dede785674 Mon Sep 17 00:00:00 2001 From: valentine195 <38669521+valentine195@users.noreply.github.com> Date: Thu, 1 Jul 2021 09:58:13 -0400 Subject: [PATCH] 0.0.6 Fixed issue with displaying synced monsters --- manifest.json | 2 +- package.json | 2 +- src/main.ts | 4 ++-- src/settings.ts | 2 +- versions.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 2ab2a490..f167e456 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-initiative-tracker", "name": "Obsidian Initiative Tracker", - "version": "0.0.5", + "version": "0.0.6", "minAppVersion": "0.12.5", "author": "Jeremy Valentine", "description": "TTRPG Initiative Tracker for Obsidian.md", diff --git a/package.json b/package.json index 5937c49a..61bf34e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-initiative-tracker", - "version": "0.0.5", + "version": "0.0.6", "description": "TTRPG Initiative Tracker for Obsidian.md", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index ea246f9e..b34b7008 100644 --- a/src/main.ts +++ b/src/main.ts @@ -51,7 +51,7 @@ export default class InitiativeTracker extends Plugin { this.data.players = players; } - private get statblock_creatures() { + get statblock_creatures() { if (!this.data.sync) return []; if (!this.app.plugins.plugins["obsidian-5e-statblocks"]) return []; @@ -67,7 +67,7 @@ export default class InitiativeTracker extends Plugin { modifier: Math.floor((m.stats[1] - 10) / 2) }); }), - ...this._homebrewcreatures + ]; } diff --git a/src/settings.ts b/src/settings.ts index 4fe37b32..1d03a9ee 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -62,7 +62,7 @@ export default class InitiativeTrackerSettings extends PluginSettingTab { }); if (this.plugin.data.sync) { const synced = new Setting(syncEl).setDesc( - `${this.plugin.homebrew.length} monsters synced.` + `${this.plugin.statblock_creatures.length} monsters synced.` ); synced.settingEl.addClass("initiative-synced"); setIcon(synced.nameEl, "check-in-circle"); diff --git a/versions.json b/versions.json index c62e5827..72029ad6 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "0.0.5": "0.12.4" + "0.0.6": "0.12.4" }