diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-15 20:13:20 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 7c2baa827d9ae20722c6ddb34f684e73fe83c473 (patch) | |
tree | bba18e71da23a3305e2a64ceaa258230c4e85c96 | |
parent | bdd654a6ef19ff2e9739e7c56383af1ba9483284 (diff) | |
download | table-battles-7c2baa827d9ae20722c6ddb34f684e73fe83c473.tar.gz |
fix player name function
-rw-r--r-- | rules.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 } |