修复seatTranslation在不传入player参数导致的结果少1的bug(修复国战号数显示问题
157→78.5
This commit is contained in:
parent
307c873455
commit
a6a002848e
|
@ -57,8 +57,8 @@ export class Get extends Uninstantable {
|
||||||
* @param {number | Player} seat
|
* @param {number | Player} seat
|
||||||
*/
|
*/
|
||||||
static seatTranslation(seat) {
|
static seatTranslation(seat) {
|
||||||
if (get.itemtype(seat) === 'player') seat = seat.getSeatNum();
|
if (get.itemtype(seat) === 'player') seat = seat.getSeatNum() - 1;
|
||||||
return `${get.cnNumber(seat, true)}号位`;
|
return `${get.cnNumber(seat + 1, true)}号位`;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @param {number} numberOfPlayers
|
* @param {number} numberOfPlayers
|
||||||
|
|
Loading…
Reference in New Issue