From 3caaf01bf3e3325330c6e4479cdf0210e9c492a0 Mon Sep 17 00:00:00 2001 From: raeleus Date: Tue, 17 Sep 2024 20:52:01 -0700 Subject: [PATCH] Corrected phrasing for attack. --- Input.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Input.js b/Input.js index dca1a9c..83c90f2 100644 --- a/Input.js +++ b/Input.js @@ -1028,8 +1028,8 @@ function doAttack(command) { else state.prefix = `\n[Enemy AC: ${targetRoll}. Attack roll: ${dieText}. ${score >= targetRoll ? "Success!" : "Failure!"}]\n` var text - if (score + modifier >= targetRoll) text = `\n${character.name} successfully hit the ${targetText}!` - else text = `\n${character.name} ${tryWord} to hit the ${targetText}. ${character.name} ${missWord}!` + if (score + modifier >= targetRoll) text = `\n${character.name} successfully hit ${targetText}!` + else text = `\n${character.name} ${tryWord} to hit ${targetText}. ${character.name} ${missWord}!` if (score == 20) text += " Critical success! Your attack is exceptionally damaging!" else if (score == 1) text += " Critical failure! Your attack missed in a spectacular way!" @@ -1626,4 +1626,4 @@ function doHelp(command) { return " " } -modifier(text) +modifier(text) \ No newline at end of file