Skip to content

Commit

Permalink
0.0.6
Browse files Browse the repository at this point in the history
Fixed issue with displaying synced monsters
  • Loading branch information
valentine195 committed Jul 1, 2021
1 parent 2ad221a commit 3b88038
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];

Expand All @@ -67,7 +67,7 @@ export default class InitiativeTracker extends Plugin {
modifier: Math.floor((m.stats[1] - 10) / 2)
});
}),
...this._homebrewcreatures

];
}

Expand Down
2 changes: 1 addition & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"0.0.5": "0.12.4"
"0.0.6": "0.12.4"
}

0 comments on commit 3b88038

Please sign in to comment.