mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-06 21:01:26 +02:00
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.
This commit is contained in:
@@ -125,7 +125,7 @@ class App(npyscreen.NPSAppManaged):
|
|||||||
if i == 0:
|
if i == 0:
|
||||||
num -= 1
|
num -= 1
|
||||||
for d in range(num):
|
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.hp_max.value = str(hp_max)
|
||||||
abil.display()
|
abil.display()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user