修改game.phaseNumber的结算时间点
This commit is contained in:
parent
bed6898399
commit
12a1cf042a
|
@ -3017,16 +3017,10 @@ export const Content = {
|
||||||
//提前phaseBefore时机解决“游戏开始时”时机和“一轮开始时”先后
|
//提前phaseBefore时机解决“游戏开始时”时机和“一轮开始时”先后
|
||||||
event.trigger("phaseBefore");
|
event.trigger("phaseBefore");
|
||||||
"step 1";
|
"step 1";
|
||||||
|
game.phaseNumber++;
|
||||||
//初始化阶段列表
|
//初始化阶段列表
|
||||||
if (!event.phaseList) {
|
if (!event.phaseList) {
|
||||||
event.phaseList = [
|
event.phaseList = ["phaseZhunbei", "phaseJudge", "phaseDraw", "phaseUse", "phaseDiscard", "phaseJieshu"];
|
||||||
"phaseZhunbei",
|
|
||||||
"phaseJudge",
|
|
||||||
"phaseDraw",
|
|
||||||
"phaseUse",
|
|
||||||
"phaseDiscard",
|
|
||||||
"phaseJieshu",
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
if (typeof event.num != "number") {
|
if (typeof event.num != "number") {
|
||||||
event.num = 0;
|
event.num = 0;
|
||||||
|
@ -3040,11 +3034,7 @@ export const Content = {
|
||||||
} else if (_status.seatNumSettled) {
|
} else if (_status.seatNumSettled) {
|
||||||
var seatNum = player.getSeatNum();
|
var seatNum = player.getSeatNum();
|
||||||
if (seatNum != 0) {
|
if (seatNum != 0) {
|
||||||
if (
|
if (get.itemtype(_status.lastPhasedPlayer) != "player" || seatNum < _status.lastPhasedPlayer.getSeatNum()) isRound = true;
|
||||||
get.itemtype(_status.lastPhasedPlayer) != "player" ||
|
|
||||||
seatNum < _status.lastPhasedPlayer.getSeatNum()
|
|
||||||
)
|
|
||||||
isRound = true;
|
|
||||||
_status.lastPhasedPlayer = player;
|
_status.lastPhasedPlayer = player;
|
||||||
}
|
}
|
||||||
} else if (player == _status.roundStart) isRound = true;
|
} else if (player == _status.roundStart) isRound = true;
|
||||||
|
@ -3122,7 +3112,6 @@ export const Content = {
|
||||||
while (ui.dialogs.length) {
|
while (ui.dialogs.length) {
|
||||||
ui.dialogs[0].close();
|
ui.dialogs[0].close();
|
||||||
}
|
}
|
||||||
game.phaseNumber++;
|
|
||||||
player.phaseNumber++;
|
player.phaseNumber++;
|
||||||
game.broadcastAll(
|
game.broadcastAll(
|
||||||
function (player, num, popup) {
|
function (player, num, popup) {
|
||||||
|
@ -3151,11 +3140,7 @@ export const Content = {
|
||||||
game.log();
|
game.log();
|
||||||
game.log(player, "的回合开始");
|
game.log(player, "的回合开始");
|
||||||
player._noVibrate = true;
|
player._noVibrate = true;
|
||||||
if (
|
if (get.config("identity_mode") != "zhong" && get.config("identity_mode") != "purple" && !_status.connectMode) {
|
||||||
get.config("identity_mode") != "zhong" &&
|
|
||||||
get.config("identity_mode") != "purple" &&
|
|
||||||
!_status.connectMode
|
|
||||||
) {
|
|
||||||
var num;
|
var num;
|
||||||
switch (get.config("auto_identity")) {
|
switch (get.config("auto_identity")) {
|
||||||
case "one":
|
case "one":
|
||||||
|
@ -3174,12 +3159,7 @@ export const Content = {
|
||||||
num = 0;
|
num = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (
|
if (num && !_status.identityShown && game.phaseNumber > game.players.length * num && game.showIdentity) {
|
||||||
num &&
|
|
||||||
!_status.identityShown &&
|
|
||||||
game.phaseNumber > game.players.length * num &&
|
|
||||||
game.showIdentity
|
|
||||||
) {
|
|
||||||
if (!_status.video) player.popup("显示身份");
|
if (!_status.video) player.popup("显示身份");
|
||||||
_status.identityShown = true;
|
_status.identityShown = true;
|
||||||
game.showIdentity(false);
|
game.showIdentity(false);
|
||||||
|
|
Loading…
Reference in New Issue