部分格式优化
This commit is contained in:
parent
69776ce780
commit
cadb62580d
|
@ -31,9 +31,6 @@ game.import("character", function () {
|
||||||
ol_mengda(mode) {
|
ol_mengda(mode) {
|
||||||
return mode !== "guozhan";
|
return mode !== "guozhan";
|
||||||
},
|
},
|
||||||
ol_mengda(mode) {
|
|
||||||
return mode !== "guozhan";
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
character: {
|
character: {
|
||||||
sp_sunce: ["male", "qun", 4, ["olliantao"]],
|
sp_sunce: ["male", "qun", 4, ["olliantao"]],
|
||||||
|
@ -1802,11 +1799,12 @@ game.import("character", function () {
|
||||||
target.popup(list[result[1]]);
|
target.popup(list[result[1]]);
|
||||||
for (let current of [player, target]) {
|
for (let current of [player, target]) {
|
||||||
switch (list[result[current == player ? 0 : 1]]) {
|
switch (list[result[current == player ? 0 : 1]]) {
|
||||||
case "重铸":
|
case "重铸": {
|
||||||
let result2 = yield current.chooseCard("he", "请重铸一张牌", (card, player) => player.canRecast(card), true);
|
let result2 = yield current.chooseCard("he", "请重铸一张牌", (card, player) => player.canRecast(card), true);
|
||||||
if (result2.bool) current.recast(result2.cards);
|
if (result2.bool) current.recast(result2.cards);
|
||||||
break;
|
break;
|
||||||
case "出杀":
|
}
|
||||||
|
case "出杀": {
|
||||||
current.chooseToUse({
|
current.chooseToUse({
|
||||||
prompt: "请使用一张【杀】",
|
prompt: "请使用一张【杀】",
|
||||||
filterCard: function (card, player) {
|
filterCard: function (card, player) {
|
||||||
|
@ -1819,11 +1817,13 @@ game.import("character", function () {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "弃牌":
|
}
|
||||||
|
case "弃牌": {
|
||||||
current.chooseToDiscard("he", 2, true);
|
current.chooseToDiscard("he", 2, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
order: function (item, player) {
|
order: function (item, player) {
|
||||||
|
@ -2112,7 +2112,7 @@ game.import("character", function () {
|
||||||
}),
|
}),
|
||||||
att = get.attitude(player, target);
|
att = get.attitude(player, target);
|
||||||
if (goon) return 5 * att;
|
if (goon) return 5 * att;
|
||||||
if (!!player.countCards("he", cardx => player.canSaveCard(cardx, player))) return att;
|
if (player.countCards("he", cardx => player.canSaveCard(cardx, player)) > 0) return att;
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -27841,19 +27841,21 @@ game.import("character", function () {
|
||||||
"step 1";
|
"step 1";
|
||||||
var num = get.rand(0, 2);
|
var num = get.rand(0, 2);
|
||||||
switch (num) {
|
switch (num) {
|
||||||
case 0:
|
case 0: {
|
||||||
player.line(trigger.player, "fire");
|
player.line(trigger.player, "fire");
|
||||||
trigger.player.damage("fire");
|
trigger.player.damage("fire");
|
||||||
trigger.player.addTempSkill("xinfu_xionghuo_disable");
|
trigger.player.addTempSkill("xinfu_xionghuo_disable");
|
||||||
trigger.player.markAuto("xinfu_xionghuo_disable", [player]);
|
trigger.player.markAuto("xinfu_xionghuo_disable", [player]);
|
||||||
break;
|
break;
|
||||||
case 1:
|
}
|
||||||
|
case 1: {
|
||||||
player.line(trigger.player, "water");
|
player.line(trigger.player, "water");
|
||||||
trigger.player.loseHp();
|
trigger.player.loseHp();
|
||||||
trigger.player.addMark("xinfu_xionghuo_low", 1, false);
|
trigger.player.addMark("xinfu_xionghuo_low", 1, false);
|
||||||
trigger.player.addTempSkill("xinfu_xionghuo_low");
|
trigger.player.addTempSkill("xinfu_xionghuo_low");
|
||||||
break;
|
break;
|
||||||
case 2:
|
}
|
||||||
|
case 2: {
|
||||||
player.line(trigger.player, "green");
|
player.line(trigger.player, "green");
|
||||||
/*
|
/*
|
||||||
var card1=trigger.player.getCards('h').randomGet();
|
var card1=trigger.player.getCards('h').randomGet();
|
||||||
|
@ -27867,6 +27869,7 @@ game.import("character", function () {
|
||||||
if (cards.length) player.gain(cards.randomGets(2), trigger.player, "giveAuto", "bySelf");
|
if (cards.length) player.gain(cards.randomGets(2), trigger.player, "giveAuto", "bySelf");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
"step 2";
|
"step 2";
|
||||||
game.delay();
|
game.delay();
|
||||||
},
|
},
|
||||||
|
@ -28891,7 +28894,6 @@ game.import("character", function () {
|
||||||
ruiji: ["ruiji", "dc_ruiji"],
|
ruiji: ["ruiji", "dc_ruiji"],
|
||||||
jsp_huangyueying: ["jsp_huangyueying", "re_jsp_huangyueying"],
|
jsp_huangyueying: ["jsp_huangyueying", "re_jsp_huangyueying"],
|
||||||
ganfuren: ["ganfuren", "dc_ganfuren", "jsp_ganfuren"],
|
ganfuren: ["ganfuren", "dc_ganfuren", "jsp_ganfuren"],
|
||||||
wenqin: ["wenqin", "pe_wenqin"],
|
|
||||||
zhouqun: ["ol_zhouqun", "zhouqun"],
|
zhouqun: ["ol_zhouqun", "zhouqun"],
|
||||||
qianzhao: ["ol_qianzhao", "qianzhao"],
|
qianzhao: ["ol_qianzhao", "qianzhao"],
|
||||||
ol_pengyang: ["ol_pengyang", "sp_pengyang"],
|
ol_pengyang: ["ol_pengyang", "sp_pengyang"],
|
||||||
|
|
Loading…
Reference in New Issue