diff --git a/module/token.js b/module/token.js index aca893a..ec38638 100644 --- a/module/token.js +++ b/module/token.js @@ -9,7 +9,7 @@ export class SimpleTokenDocument extends TokenDocument { const attr = alternative || this.data[barName]?.attribute; if ( !data || !attr || !this.actor ) return data; 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; return data; } diff --git a/system.json b/system.json index 4d1870f..4b9a092 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "worldbuilding", "title": "Simple World-Building", "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", "compatibleCoreVersion": "9", "author": "Atropos", @@ -22,6 +22,6 @@ "secondaryTokenAttribute": "power", "url": "https://gitlab.com/foundrynet/worldbuilding/", "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" }