mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
#note can now save the last action's text. Resolves #36
This commit is contained in:
parent
655a539bd3
commit
2ab67ebe71
2 changed files with 8 additions and 4 deletions
8
Input.js
8
Input.js
|
@ -24,7 +24,7 @@ const removeSkillSynonyms = ["removeskill", "deleteskill", "cancelskill"]
|
|||
const clearSkillsSynonyms = ["clearskills"]
|
||||
const checkSynonyms = ["check", "checkstat", "checkstatistic", "checkattribute", "checkability", "checkskill", "skillcheck", "abilitycheck"]
|
||||
const showNotesSynonyms = ["notes", "shownotes", "viewnotes"]
|
||||
const noteSynonyms = ["note", "takenote", "setnote", "createnote"]
|
||||
const noteSynonyms = ["note", "takenote", "setnote", "createnote", "remember"]
|
||||
const clearNotesSynonyms = ["clearnotes"]
|
||||
const eraseNoteSynonyms = ["erasenote", "removenote", "deletenote", "cancelnote"]
|
||||
const takeSynonyms = ["take", "steal", "get", "grab", "receive", "loot"]
|
||||
|
@ -1180,7 +1180,11 @@ function doNote(command) {
|
|||
state.notes.push(arg0)
|
||||
state.show = "none"
|
||||
return "\n[Note added successfully]\n"
|
||||
} else return doShowNotes(command)
|
||||
} else {
|
||||
state.notes.push(history[history.length - 1].text)
|
||||
state.show = "none"
|
||||
return "\n[The last action was successfully added to the notes]"
|
||||
}
|
||||
}
|
||||
|
||||
function doShowNotes(command) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue