From 7c2baa827d9ae20722c6ddb34f684e73fe83c473 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 15 Dec 2023 20:13:20 +0100 Subject: fix player name function --- rules.js | 3 +-- 1 file changed, 1 insertion(+), 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 } -- cgit v1.2.3