Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
version 0.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Aug 11, 2022
1 parent ca4d838 commit b2fa4e2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.10.3

- Bug fix [[BUG] Can no longer delete inventory items.](https://github.com/VanirDev/VariantEncumbrance/issues/68)

### 0.10.1-2

- Add integration with DAE
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "variant-encumbrance-dnd5e",
"version": "0.10.2",
"version": "0.10.3",
"description": "VariantEncumbrance+Midi",
"scripts": {
"package": "gulp package",
Expand Down
6 changes: 3 additions & 3 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "variant-encumbrance-dnd5e",
"title": "Variant Encumbrance+Midi",
"description": "A module for D&D 5th Edition, to automatically modify character carry weights to match the Variant Encumbrance optional rule set.",
"version": "0.10.2",
"version": "0.10.3",
"author": "Vanir#0001 (discord), 47Y, p4535992",
"authors": [
{ "name": "Vanir#0001 (discord)" },
Expand Down Expand Up @@ -81,8 +81,8 @@
"url": "https://github.com/VanirDev/VariantEncumbrance",
"manifest": "https://github.com/VanirDev/VariantEncumbrance/releases/latest/download/module.json",
"download": "https://github.com/VanirDev/VariantEncumbrance/releases/latest/download/module.zip",
"readme": "https://github.com/VanirDev/VariantEncumbrance/blob/v0.10.2/README.md",
"changelog": "https://github.com/VanirDev/VariantEncumbrance/blob/v0.10.2/changelog.md",
"readme": "https://github.com/VanirDev/VariantEncumbrance/blob/v0.10.3/README.md",
"changelog": "https://github.com/VanirDev/VariantEncumbrance/blob/v0.10.3/changelog.md",
"bugs": "https://github.com/VanirDev/VariantEncumbrance/issues",
"allowBugReporter": true,
"manifestPlusVersion": "1.2.0",
Expand Down
7 changes: 5 additions & 2 deletions src/module/lib/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export function retrieveActiveEffectDataChangeByKey(actor: Actor, key: string):
continue;
}
const c = retrieveActiveEffectDataChangeByKeyFromActiveEffect(actor, key, aef.data.changes);
if (c.value) {
if (c && c.value) {
valueDefault = c;
break;
}
Expand All @@ -501,13 +501,16 @@ export function retrieveActiveEffectDataChangeByKeyFromActiveEffect(
actor: Actor,
activeEffectDataChangeKey: string,
effectChanges: EffectChangeData[],
): EffectChangeDataProperties {
): EffectChangeDataProperties|undefined {
const effectEntityChanges = effectChanges.sort((a, b) => <number>a.priority - <number>b.priority);
const atcvEffectChangeData = <EffectChangeData>effectEntityChanges.find((aee) => {
if (aee.key === activeEffectDataChangeKey && aee.value) {
return aee;
}
});
if(!atcvEffectChangeData || !atcvEffectChangeData.value){
return undefined;
}
let myvalue = '';
if (atcvEffectChangeData.value && String(atcvEffectChangeData.value).includes('data.')) {
// Retrieve the formula.
Expand Down

0 comments on commit b2fa4e2

Please sign in to comment.