mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-05 20:38:26 +02:00
Foundry reader now properly read max HP (formerly read current HP).
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
@@ -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": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user