Merge branch '0.6.x'

This commit is contained in:
fyorl 2022-01-17 16:53:53 +00:00
commit a6ebc7b4fa
No known key found for this signature in database
GPG key ID: 3A4E57DAE36AC3C4
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ export class SimpleTokenDocument extends TokenDocument {
const attr = alternative || this.data[barName]?.attribute; const attr = alternative || this.data[barName]?.attribute;
if ( !data || !attr || !this.actor ) return data; if ( !data || !attr || !this.actor ) return data;
const current = foundry.utils.getProperty(this.actor.data.data, attr); const current = foundry.utils.getProperty(this.actor.data.data, attr);
if ( "min" in current ) data.min = parseInt(current.min || 0); if ( current?.dtype === "Resource" ) data.min = parseInt(current.min || 0);
data.editable = true; data.editable = true;
return data; return data;
} }

View file

@ -2,7 +2,7 @@
"name": "worldbuilding", "name": "worldbuilding",
"title": "Simple World-Building", "title": "Simple World-Building",
"description": "A minimalist game system which provides configurable Actor and Item templates to support free-form system agnostic game-play.", "description": "A minimalist game system which provides configurable Actor and Item templates to support free-form system agnostic game-play.",
"version": "0.6.3", "version": "0.6.4",
"minimumCoreVersion": "0.8.9", "minimumCoreVersion": "0.8.9",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",
"author": "Atropos", "author": "Atropos",
@ -22,6 +22,6 @@
"secondaryTokenAttribute": "power", "secondaryTokenAttribute": "power",
"url": "https://gitlab.com/foundrynet/worldbuilding/", "url": "https://gitlab.com/foundrynet/worldbuilding/",
"manifest": "https://gitlab.com/foundrynet/worldbuilding/raw/0.6.x/system.json", "manifest": "https://gitlab.com/foundrynet/worldbuilding/raw/0.6.x/system.json",
"download": "https://gitlab.com/foundrynet/worldbuilding/-/archive/release-063/worldbuilding-release-063.zip", "download": "https://gitlab.com/foundrynet/worldbuilding/-/archive/release-064/worldbuilding-release-064.zip",
"license": "LICENSE.txt" "license": "LICENSE.txt"
} }