mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Updated flavor text for #rest. Resolves #57
This commit is contained in:
parent
2a57a9aff2
commit
330af759ef
1 changed files with 6 additions and 1 deletions
7
Input.js
7
Input.js
|
@ -1291,16 +1291,21 @@ function doRest(command) {
|
|||
state.enemies = []
|
||||
state.characters.forEach(function(character) {
|
||||
if (commandName.toLowerCase() == "shortrest") {
|
||||
state.day--
|
||||
var max = getHealthMax(character)
|
||||
character.health += Math.floor(max / 2)
|
||||
if (character.health > max) character.health = max
|
||||
|
||||
text = `\n[All characters have healed 50%.]\n`
|
||||
} else {
|
||||
character.health = getHealthMax(character)
|
||||
|
||||
text = `\n[All characters have rested and feel rejuvinated. It's now day ${state.day}]\n`
|
||||
}
|
||||
|
||||
state.show = "none"
|
||||
return text
|
||||
})
|
||||
return `\n[All characters have rested and feel rejuvinated. It's now day ${state.day}]\n`
|
||||
}
|
||||
|
||||
function doFlipCommandAbility(command) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue