Skip to content

Commit

Permalink
Merge pull request #44 from crash1115/dev
Browse files Browse the repository at this point in the history
v 0.4.11
  • Loading branch information
crash1115 authored Jan 15, 2021
2 parents 8695c6b + 8501809 commit 94aa914
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## Version 0.4.11
- Fixed an issue where the downtime tab would attempt to display on actor sheets inside compendiums and throw some errors.

## Version 0.4.10
- Compatibility patch for Tidy5e v0.4.x. It's not pretty, but you can see the buttons now.

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "5e-training",
"title": "Crash's 5e Downtime Tracking",
"description": "Adds a section to the character sheet to keep track of downtime activity progression. Track proficiency training, spell scribing, and anything else you can think of.",
"version": "0.4.10",
"version": "0.4.11",
"author": "CRASH1115#2944",
"minimumCoreVersion": "0.7.6",
"compatibleCoreVersion": "0.7.9",
Expand All @@ -28,5 +28,5 @@
],
"url": "https://github.com/crash1115/5e-training",
"manifest": "https://raw.githubusercontent.com/crash1115/5e-training/master/module.json",
"download": "https://github.com/crash1115/5e-training/releases/download/v0.4.10/5e-training.zip"
"download": "https://github.com/crash1115/5e-training/releases/download/v0.4.11/5e-training.zip"
}
4 changes: 2 additions & 2 deletions training.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ async function addTrainingTab(app, html, data) {

// Determine if we should show the downtime tab
let showTrainingTab = false;
if(data.isCharacter){ showTrainingTab = game.settings.get("5e-training", "enableTraining"); }
else if(data.isNPC){ showTrainingTab = game.settings.get("5e-training", "enableTrainingNpc"); }
if(data.isCharacter && data.editable){ showTrainingTab = game.settings.get("5e-training", "enableTraining"); }
else if(data.isNPC && data.editable){ showTrainingTab = game.settings.get("5e-training", "enableTrainingNpc"); }

if (showTrainingTab){

Expand Down

0 comments on commit 94aa914

Please sign in to comment.