给需要仁库、议事、影、暴虐值、护甲发动的技能添加combo标签

This commit is contained in:
157 2024-06-01 01:11:16 +08:00
parent 18b361f191
commit d58e7f72a2
5 changed files with 96 additions and 57 deletions

View File

@ -1835,6 +1835,9 @@ const skills = {
}, },
}, },
}, },
ai: {
combo: "jsrgjinfa"
},
}, },
jsrgxuanfeng: { jsrgxuanfeng: {
audio: 2, audio: 2,
@ -1867,6 +1870,7 @@ const skills = {
}, },
ai: { ai: {
order: 2, order: 2,
combo: "jsrgjinfa"
}, },
}, },
//陆逊 //陆逊
@ -2921,6 +2925,9 @@ const skills = {
} }
player.logSkill("jsrgbazheng", dissident); player.logSkill("jsrgbazheng", dissident);
}, },
ai: {
combo: "jsrgyaoyan"
},
}, },
//刘永 //刘永
jsrgdanxin: { jsrgdanxin: {
@ -9399,6 +9406,9 @@ const skills = {
target.damage(); target.damage();
} }
}, },
ai: {
combo: "jsrgshelun"
},
}, },
jsrgtushe: { jsrgtushe: {
audio: "xinfu_tushe", audio: "xinfu_tushe",

View File

@ -1379,6 +1379,9 @@ const skills = {
async content(event, trigger, player) { async content(event, trigger, player) {
trigger.num++; trigger.num++;
}, },
ai: {
combo: "zhoulin"
},
}, },
zhoulin: { zhoulin: {
audio: 2, audio: 2,
@ -8387,62 +8390,6 @@ const skills = {
} }
}, },
}, },
//新华歆
yuanqing: {
audio: 2,
trigger: { player: "phaseUseEnd" },
forced: true,
filter: function (event, player) {
return player.hasHistory("useCard", function (evt) {
return evt.getParent("phaseUse") == event;
});
},
content: function () {
var map = {},
cards = [];
player.getHistory("useCard", function (evt) {
if (evt.getParent("phaseUse") == trigger) {
var type = get.type2(evt.card, false);
if (!map[type]) map[type] = [];
}
});
for (var i = 0; i < ui.discardPile.childNodes.length; i++) {
var card = ui.discardPile.childNodes[i],
type = get.type2(card, false);
if (map[type]) map[type].push(card);
}
for (var i in map) {
if (map[i].length) cards.push(map[i].randomGet());
}
if (cards.length) {
player.$gain2(cards, false);
game.cardsGotoSpecial(cards, "toRenku");
game.log(player, "将", cards, "置入了仁库");
game.delayx();
}
},
init: function (player) {
player.storage.renku = true;
},
},
shuchen: {
audio: 2,
init: function (player) {
player.storage.renku = true;
},
trigger: { global: "dying" },
forced: true,
filter: function (event, player) {
return _status.renku.length > 3;
},
logTarget: "player",
content: function () {
player.gain(_status.renku, "gain2", "fromRenku");
_status.renku.length = 0;
game.updateRenku();
trigger.player.recover();
},
},
//谯周 //谯周
zhiming: { zhiming: {
audio: 2, audio: 2,

View File

@ -6279,6 +6279,7 @@ const skills = {
}); });
}, },
ai: { ai: {
combo: "sbjushou",
order: 8, order: 8,
result: { result: {
target: -1, target: -1,
@ -7178,6 +7179,9 @@ const skills = {
player.addSkills("sbduojing"); player.addSkills("sbduojing");
player.storage.sbkeji = true; player.storage.sbkeji = true;
}, },
ai: {
combo: "sbkeji"
},
}, },
sbduojing: { sbduojing: {
audio: 2, audio: 2,
@ -7252,7 +7256,10 @@ const skills = {
} else player.removeSkill("sbxiayuan_round"); } else player.removeSkill("sbxiayuan_round");
}, },
subSkill: { round: { charlotte: true } }, subSkill: { round: { charlotte: true } },
ai: { expose: 0.2 }, ai: {
combo: "sbjieyue",
expose: 0.2
},
}, },
sbjieyue: { sbjieyue: {
audio: 4, audio: 4,

View File

@ -4001,6 +4001,9 @@ const skills = {
content: function () { content: function () {
game.cardsGotoSpecial(get.cards(), "toRenku"); game.cardsGotoSpecial(get.cards(), "toRenku");
}, },
ai: {
combo: "spsongshu"
},
}, },
spsongshu: { spsongshu: {
audio: 2, audio: 2,
@ -4042,6 +4045,9 @@ const skills = {
intro: { content: "不能对其他角色使用牌" }, intro: { content: "不能对其他角色使用牌" },
}, },
}, },
ai: {
combo: "gebo"
},
}, },
//张机 //张机
jishi: { jishi: {
@ -4079,6 +4085,9 @@ const skills = {
}, },
}, },
}, },
ai: {
combo: "binglun"
},
}, },
xinliaoyi: { xinliaoyi: {
audio: "liaoyi", audio: "liaoyi",
@ -4294,6 +4303,7 @@ const skills = {
}, },
}, },
ai: { ai: {
combo: "jishi",
order: 2, order: 2,
result: { result: {
player: 1, player: 1,
@ -5059,6 +5069,67 @@ const skills = {
onremove: true, onremove: true,
intro: { content: "已对$发动过此技能" }, intro: { content: "已对$发动过此技能" },
}, },
yuanqing: {
audio: 2,
trigger: { player: "phaseUseEnd" },
forced: true,
filter: function (event, player) {
return player.hasHistory("useCard", function (evt) {
return evt.getParent("phaseUse") == event;
});
},
content: function () {
var map = {},
cards = [];
player.getHistory("useCard", function (evt) {
if (evt.getParent("phaseUse") == trigger) {
var type = get.type2(evt.card, false);
if (!map[type]) map[type] = [];
}
});
for (var i = 0; i < ui.discardPile.childNodes.length; i++) {
var card = ui.discardPile.childNodes[i],
type = get.type2(card, false);
if (map[type]) map[type].push(card);
}
for (var i in map) {
if (map[i].length) cards.push(map[i].randomGet());
}
if (cards.length) {
player.$gain2(cards, false);
game.cardsGotoSpecial(cards, "toRenku");
game.log(player, "将", cards, "置入了仁库");
game.delayx();
}
},
init: function (player) {
player.storage.renku = true;
},
ai: {
combo: "shuchen"
},
},
shuchen: {
audio: 2,
init: function (player) {
player.storage.renku = true;
},
trigger: { global: "dying" },
forced: true,
filter: function (event, player) {
return _status.renku.length > 3;
},
logTarget: "player",
content: function () {
player.gain(_status.renku, "gain2", "fromRenku");
_status.renku.length = 0;
game.updateRenku();
trigger.player.recover();
},
ai: {
combo: "yuanqing"
},
},
hxrenshi: { hxrenshi: {
audio: 2, audio: 2,
enable: "phaseUse", enable: "phaseUse",

View File

@ -4355,6 +4355,7 @@ const skills = {
target.damage(); target.damage();
}, },
ai: { ai: {
combo: "twjuntun",
expose: 0.25, expose: 0.25,
order: 8, order: 8,
result: { result: {
@ -4439,6 +4440,9 @@ const skills = {
}, },
}, },
}, },
ai: {
combo: "twjuntun"
},
}, },
//蒋济 //蒋济
twjichou: { twjichou: {