修复seatTranslation在不传入player参数导致的结果少1的bug(修复国战号数显示问题

157→78.5
This commit is contained in:
mengxinzxz 2024-04-05 22:19:26 +08:00
parent 307c873455
commit a6a002848e
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ export class Get extends Uninstantable {
* @param {number | Player} seat
*/
static seatTranslation(seat) {
if (get.itemtype(seat) === 'player') seat = seat.getSeatNum();
return `${get.cnNumber(seat, true)}号位`;
if (get.itemtype(seat) === 'player') seat = seat.getSeatNum() - 1;
return `${get.cnNumber(seat + 1, true)}号位`;
}
/**
* @param {number} numberOfPlayers