mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 13:10:28 -04:00
Fix crash when using #try without parameters.
This commit is contained in:
parent
034c839897
commit
9cb476e1ed
1 changed files with 5 additions and 0 deletions
5
Input.js
5
Input.js
|
@ -1356,6 +1356,11 @@ function doCheck(command) {
|
|||
}
|
||||
|
||||
function doTry(command) {
|
||||
if (getArguments(command).length <= 1) {
|
||||
state.show = "none"
|
||||
return "\n[Error: Not enough parameters. See #help]\n"
|
||||
}
|
||||
|
||||
const advantageNames = ["normal", "advantage", "disadvantage"]
|
||||
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
|
||||
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue