mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Corrected phrasing for attack.
This commit is contained in:
parent
5a6b7784bd
commit
3caaf01bf3
1 changed files with 3 additions and 3 deletions
6
Input.js
6
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)
|
Loading…
Add table
Add a link
Reference in a new issue