summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-15 20:13:20 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit7c2baa827d9ae20722c6ddb34f684e73fe83c473 (patch)
treebba18e71da23a3305e2a64ceaa258230c4e85c96 /rules.js
parentbdd654a6ef19ff2e9739e7c56383af1ba9483284 (diff)
downloadtable-battles-7c2baa827d9ae20722c6ddb34f684e73fe83c473.tar.gz
fix player name function
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index f8a2aae..e1bddda 100644
--- a/rules.js
+++ b/rules.js
@@ -492,8 +492,7 @@ function card_name(c) {
return data.cards[c].name
}
-function player_name() {
- let p = player_index()
+function player_name(p) {
return data.scenarios[game.scenario].players[p].name
}