From 930376791510d9b10a033db03b15a7a0eaea3b50 Mon Sep 17 00:00:00 2001 From: kuangshen04 <2832899707@qq.com> Date: Sun, 24 Mar 2024 21:47:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAchoosePlayerCard=E7=B3=BB=E5=88=97?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E9=BB=98=E8=AE=A4complex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/player.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/noname/library/element/player.js b/noname/library/element/player.js index 3a3a4a4eb..4360c7b20 100644 --- a/noname/library/element/player.js +++ b/noname/library/element/player.js @@ -4790,7 +4790,8 @@ export class Player extends HTMLDivElement { next.selectButton = arguments[i]; } else if (typeof arguments[i] == 'boolean') { - next.forced = arguments[i]; + if (!next.forced) next.forced = arguments[i]; + else next.complexSelect = arguments[i]; } else if (get.itemtype(arguments[i]) == 'position') { next.position = arguments[i]; @@ -4817,6 +4818,7 @@ export class Player extends HTMLDivElement { if (get.attitude(_status.event.player, get.owner(button.link)) > 0) return -val; return val; }; + if (next.complexSelect !== false) next.complexSelect = true; next.setContent('choosePlayerCard'); next._args = Array.from(arguments); return next; @@ -4835,7 +4837,8 @@ export class Player extends HTMLDivElement { next.selectButton = arguments[i]; } else if (typeof arguments[i] == 'boolean') { - next.forced = arguments[i]; + if (!next.forced) next.forced = arguments[i]; + else next.complexSelect = arguments[i]; } else if (get.itemtype(arguments[i]) == 'position') { next.position = arguments[i]; @@ -4862,6 +4865,7 @@ export class Player extends HTMLDivElement { if (get.attitude(_status.event.player, get.owner(button.link)) > 0) return -val; return val; }; + if (next.complexSelect !== false) next.complexSelect = true; next.setContent('discardPlayerCard'); next._args = Array.from(arguments); return next; @@ -4880,7 +4884,8 @@ export class Player extends HTMLDivElement { next.selectButton = arguments[i]; } else if (typeof arguments[i] == 'boolean') { - next.forced = arguments[i]; + if (!next.forced) next.forced = arguments[i]; + else next.complexSelect = arguments[i]; } else if (get.itemtype(arguments[i]) == 'position') { next.position = arguments[i]; @@ -4910,6 +4915,7 @@ export class Player extends HTMLDivElement { if (get.attitude(_status.event.player, get.owner(button.link)) > 0) return -val; return val; }; + if (next.complexSelect !== false) next.complexSelect = true; next.setContent('gainPlayerCard'); next._args = Array.from(arguments); return next;