From edb30f34437c829033da1443f71325b45dae19ae Mon Sep 17 00:00:00 2001 From: Robert Kubosz Date: Mon, 11 May 2020 18:45:50 +0200 Subject: [PATCH] fix reroll max hp This commit fixes a bug that occured in create-character menu. The 'reroll max hp' option crashed due to invalid parameters of function. --- dungeonsheets/create_character.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dungeonsheets/create_character.py b/dungeonsheets/create_character.py index dd67e80..4b57b54 100755 --- a/dungeonsheets/create_character.py +++ b/dungeonsheets/create_character.py @@ -125,7 +125,7 @@ class App(npyscreen.NPSAppManaged): if i == 0: num -= 1 for d in range(num): - hp_max += randint(low=1, high=hd.faces+1) + const + hp_max += randint(1, hd.faces) + const abil.hp_max.value = str(hp_max) abil.display()