Foundry reader now properly read max HP (formerly read current HP).

This commit is contained in:
Mark Wolfman
2021-07-01 22:13:53 -05:00
parent d678002131
commit 27cbd7c8a2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ class FoundryCharacterReader(JSONCharacterReader):
char_props["_proficiencies_text"] = tool_profs char_props["_proficiencies_text"] = tool_profs
# Combat stats # Combat stats
char_props["hp_max"] = self.as_int( char_props["hp_max"] = self.as_int(
json_data["data"]["attributes"]["hp"]["value"] json_data["data"]["attributes"]["hp"]["max"]
) )
# Equipment # Equipment
currency = json_data["data"]["currency"] currency = json_data["data"]["currency"]
+2 -2
View File
@@ -53,7 +53,7 @@
"min": 0 "min": 0
}, },
"hp": { "hp": {
"value": 47, "value": 33,
"min": 0, "min": 0,
"max": 47, "max": 47,
"temp": null, "temp": null,
@@ -3049,4 +3049,4 @@
"tint": "" "tint": ""
} }
] ]
} }