Skip to content

Commit

Permalink
Merge pull request #98 from crash1115/dev
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
crash1115 authored May 25, 2023
2 parents c268d8b + b72b331 commit 8eac78e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 1.0.2
- Updated how ability lavels are referenced in sheet renders
- Fixed how actor data is referenced in the audit log

# Version 1.0.1
- Compatibility update for Foundry v11
- Removed console log spam when running migration scripts
Expand Down
10 changes: 5 additions & 5 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://github.com/crash1115/5e-training",
"readme": "https://github.com/crash1115/5e-training/blob/master/README.md",
"bugs": "https://github.com/crash1115/5e-training/issues",
"version": "1.0.1",
"version": "1.0.2",
"esmodules": [
"scripts/crash-5e-training.js"
],
Expand Down Expand Up @@ -35,7 +35,7 @@
}
],
"manifest": "https://raw.githubusercontent.com/crash1115/5e-training/master/module.json",
"download": "https://github.com/crash1115/5e-training/releases/download/v1.0.1/5e-training.zip",
"download": "https://github.com/crash1115/5e-training/releases/download/v1.0.2/5e-training.zip",
"id": "5e-training",
"authors": [
{
Expand All @@ -44,7 +44,7 @@
}
],
"compatibility": {
"minimum": "10",
"minimum": "11",
"verified": "11"
},
"relationships": {
Expand All @@ -53,8 +53,8 @@
"type": "system",
"manifest": "https://raw.githubusercontent.com/foundryvtt/dnd5e/master/system.json",
"compatibility": {
"minimum": "2.0.3",
"verified": "2.0.3"
"minimum": "2.2.0",
"verified": "2.2.0"
}
}]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/AuditLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class AuditLog extends FormApplication {

async getData(options = {}) {
let originalData = super.getData();
let activities = originalData.object.data.flags["5e-training"].trainingItems || [];
let activities = originalData.object.flags["5e-training"].trainingItems || [];
let changes = [];

// Loop through each activity. If it's got no changes array, move on to the next one.
Expand Down
2 changes: 1 addition & 1 deletion scripts/CrashTrackingAndTraining.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class CrashTrackingAndTraining {

// Progression Type: Ability Check or DC - ABILITY
if (rollType === "ABILITY"){
let abilityName = CONFIG.DND5E.abilities[thisItem.ability];
let abilityName = CONFIG.DND5E.abilities[thisItem.ability].label;
// Roll to increase progress
let options = CrashTrackingAndTraining.getRollOptions();
let r = await actor.rollAbilityTest(thisItem.ability, options);
Expand Down
2 changes: 1 addition & 1 deletion scripts/handlebars-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function registerHelpers(){
if(item.progressionStyle === "FIXED"){
formatted = game.i18n.localize("C5ETRAINING.ProgressionStyleFixed");
} else if(item.progressionStyle === "ABILITY" ){
formatted = CONFIG.DND5E.abilities[item.ability];
formatted = CONFIG.DND5E.abilities[item.ability].label;
} else if(item.progressionStyle === "SKILL" ){
formatted = CONFIG.DND5E.skills[item.skill].label;
} else if(item.progressionStyle === "TOOL" ){
Expand Down

0 comments on commit 8eac78e

Please sign in to comment.