Fix wounds bonus

This commit is contained in:
Melon-PieldeSapo
2024-12-29 05:48:22 +01:00
parent b863a76b51
commit 7efad26cc9
+1 -1
View File
@@ -423,7 +423,7 @@ export class DLActorGenerator extends FormApplication {
}
if (formData["system.stats.max_wounds.bonus"]){
//max_wounds represent the bonus, so an android get 1 fro a total of 3 (2+1),
data["system.hits.max"] = 2+formData["system.stats.max_wounds.bonus"];
data["system.hits.max"] = 2+parseInt(formData["system.stats.max_wounds.bonus"]);
}
else{
data["system.hits.max"] = 2;