From 9e26bad3e738a0451da1cefb3e13e8f2cb98d228 Mon Sep 17 00:00:00 2001 From: "Erik L. Arneson" Date: Wed, 7 Jun 2023 08:43:54 -0700 Subject: Ensure we read numbers for initiative modifiers Signed-off-by: Erik L. Arneson --- org-d20.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org-d20.el') diff --git a/org-d20.el b/org-d20.el index 0ca580c..a3a8093 100644 --- a/org-d20.el +++ b/org-d20.el @@ -360,7 +360,7 @@ the best N of them, e.g., 4d6k3." (interactive "*" org-mode) (if (org-at-table-p) (let* ((name-input (read-string "Monster/NPC name: ")) - (init-input (read-string (concat name-input "'s init modifier: "))) + (init-input (read-number (concat name-input "'s init modifier: "))) (hd-input (read-string (concat name-input "'s hit points: "))) (num-input (cdr (org-d20--roll -- cgit v1.2.3