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
# 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"]