aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xyahoozy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yahoozy.py b/yahoozy.py
index 7a5ee78..9eba0bf 100755
--- a/yahoozy.py
+++ b/yahoozy.py
@@ -291,7 +291,7 @@ class DiceState:
# the user has selected the die for rerolling.
self.rollmsk = 0
- def reroll_dice(self) -> None:
+ def reroll(self) -> None:
"""Reroll the dice according to the reroll mask."""
while self.rollmsk != 0:
n = self.rollmsk.bit_length() - 1
@@ -705,7 +705,7 @@ def game_loop(rs: RenderState, body_win) -> None:
elif ds.rollmsk == 0:
rs.hp.diag = "No dice selected to reroll"
else:
- ds.reroll_dice()
+ ds.reroll()
elif k == "\n" and rs.sel >= 0:
ds.rollmsk ^= 1 << rs.sel
elif k == curses.KEY_UP: