调整出牌阶段的牌数限制计算刷新时间点

This commit is contained in:
Spmario233 2024-01-28 14:29:14 +08:00
parent 663c03a536
commit 9d973a6555
1 changed files with 17 additions and 18 deletions

View File

@ -2776,6 +2776,23 @@ export const Content = {
if (!event.logged) {
game.log(player, '进入了出牌阶段');
event.logged = true;
const stat = player.getStat();
for (let i in stat.skill) {
let bool = false;
const info = lib.skill[i];
if (!info) continue;
if (info.enable != undefined) {
if (typeof info.enable == 'string' && info.enable == 'phaseUse') bool = true;
else if (typeof info.enable == 'object' && info.enable.includes('phaseUse')) bool = true;
}
if (bool) stat.skill[i] = 0;
}
for (let i in stat.card) {
let bool = false;
const info = lib.card[i];
if (!info) continue;
if (info.updateUsable == 'phaseUse') stat.card[i] = 0;
}
}
var next = player.chooseToUse();
if (!lib.config.show_phaseuse_prompt) {
@ -2792,24 +2809,6 @@ export const Content = {
delete ui.tempnowuxie;
}
});
"step 2";
var stat = player.getStat();
for (var i in stat.skill) {
var bool = false;
var info = lib.skill[i];
if (!info) continue;
if (info.enable != undefined) {
if (typeof info.enable == 'string' && info.enable == 'phaseUse') bool = true;
else if (typeof info.enable == 'object' && info.enable.includes('phaseUse')) bool = true;
}
if (bool) stat.skill[i] = 0;
}
for (var i in stat.card) {
var bool = false;
var info = lib.card[i];
if (!info) continue;
if (info.updateUsable == 'phaseUse') stat.card[i] = 0;
}
},
phaseDiscard: function () {
"step 0";