diff --git a/dungeonsheets/readers.py b/dungeonsheets/readers.py index 658b52f..052bad9 100644 --- a/dungeonsheets/readers.py +++ b/dungeonsheets/readers.py @@ -529,7 +529,7 @@ class FoundryCharacterReader(JSONCharacterReader): char_props["_proficiencies_text"] = tool_profs # Combat stats char_props["hp_max"] = self.as_int( - json_data["data"]["attributes"]["hp"]["value"] + json_data["data"]["attributes"]["hp"]["max"] ) # Equipment currency = json_data["data"]["currency"] diff --git a/examples/bard3_foundry.json b/examples/bard3_foundry.json index 3bf571a..8fae3f3 100644 --- a/examples/bard3_foundry.json +++ b/examples/bard3_foundry.json @@ -53,7 +53,7 @@ "min": 0 }, "hp": { - "value": 47, + "value": 33, "min": 0, "max": 47, "temp": null, @@ -3049,4 +3049,4 @@ "tint": "" } ] -} \ No newline at end of file +}