lib.element.contents.phase添加lib.element.content.phase修改内容
This commit is contained in:
parent
7fcab33cf7
commit
6b1469adbd
|
@ -8,6 +8,11 @@ import { GNC as gnc } from '../../gnc/index.js';
|
||||||
|
|
||||||
export const Contents = {
|
export const Contents = {
|
||||||
phase: [
|
phase: [
|
||||||
|
async (event) => {
|
||||||
|
//规则集中的“回合开始后③(处理“游戏开始时”的时机)”
|
||||||
|
//提前phaseBefore时机解决“游戏开始时”时机和“一轮开始时”先后
|
||||||
|
event.trigger('phaseBefore');
|
||||||
|
},
|
||||||
async (event, _trigger, player) => {
|
async (event, _trigger, player) => {
|
||||||
// 初始化阶段列表
|
// 初始化阶段列表
|
||||||
if (!event.phaseList) {
|
if (!event.phaseList) {
|
||||||
|
@ -82,10 +87,6 @@ export const Contents = {
|
||||||
//规则集中的“回合开始后②(1v1武将登场专用)”
|
//规则集中的“回合开始后②(1v1武将登场专用)”
|
||||||
event.trigger('phaseBeforeStart');
|
event.trigger('phaseBeforeStart');
|
||||||
},
|
},
|
||||||
async (event) => {
|
|
||||||
//规则集中的“回合开始后③(处理“游戏开始时”的时机)”
|
|
||||||
event.trigger('phaseBefore');
|
|
||||||
},
|
|
||||||
async (event) => {
|
async (event) => {
|
||||||
//规则集中的“回合开始后④(卑弥呼〖纵傀〗的时机)”
|
//规则集中的“回合开始后④(卑弥呼〖纵傀〗的时机)”
|
||||||
event.trigger('phaseBeforeEnd');
|
event.trigger('phaseBeforeEnd');
|
||||||
|
@ -96,6 +97,12 @@ export const Contents = {
|
||||||
event.cancel();
|
event.cancel();
|
||||||
player.turnOver();
|
player.turnOver();
|
||||||
player.phaseSkipped = true;
|
player.phaseSkipped = true;
|
||||||
|
var players = game.players.slice(0).concat(game.dead);
|
||||||
|
for (var i = 0; i < players.length; i++) {
|
||||||
|
var current = players[i];
|
||||||
|
current.getHistory().isSkipped = true;
|
||||||
|
current.getStat().isSkipped = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
player.phaseSkipped = false;
|
player.phaseSkipped = false;
|
||||||
|
|
Loading…
Reference in New Issue