mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
#showenemies now shows the index number.
This commit is contained in:
parent
51895a0d91
commit
60c08ef7a1
1 changed files with 2 additions and 1 deletions
|
@ -223,8 +223,9 @@ const modifier = (text) => {
|
|||
if (state.enemies.length == 0) {
|
||||
text += "There are no enemies present here. Call #encounter to generate a scripted set or #addenemy to add your own\n"
|
||||
} else {
|
||||
var index = 0
|
||||
for (var enemy of state.enemies) {
|
||||
text += `${enemy.name} (Health: ${enemy.health} AC: ${enemy.ac} Initiative: ${enemy.initiative})\n`
|
||||
text += `${++index}. ${enemy.name} (Health: ${enemy.health} AC: ${enemy.ac} Initiative: ${enemy.initiative})\n`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue