Merge pull request #1301 from PZ157/PR-Branch

标签补充,ai优化
This commit is contained in:
Spmario233 2024-05-01 21:42:39 +08:00 committed by GitHub
commit 4dd3352f34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 51 additions and 8 deletions

View File

@ -733,11 +733,6 @@ game.import("card", function () {
} }
ui.arena.classList.remove("thrownhighlight"); ui.arena.classList.remove("thrownhighlight");
game.addVideo("thrownhighlight2"); game.addVideo("thrownhighlight2");
"step 4";
// if(cards&&cards.length){
// player.gain(cards,'gain2');
// target.addTempSkill('bingpotong');
// }
}, },
ai: { ai: {
basic: { basic: {
@ -1619,7 +1614,6 @@ game.import("card", function () {
player.removeSkill("dinvxuanshuang_skill"); player.removeSkill("dinvxuanshuang_skill");
}, },
}, },
bingpotong: {},
heilonglinpian: { heilonglinpian: {
mark: true, mark: true,
marktext: "鳞", marktext: "鳞",

View File

@ -1284,6 +1284,9 @@ game.import("character", function () {
await player.draw(2); await player.draw(2);
await player.loseHp(); await player.loseHp();
}, },
ai: {
halfneg: true
},
}, },
dckuizhen: { dckuizhen: {
audio: 2, audio: 2,

View File

@ -6102,6 +6102,7 @@ game.import("character", function () {
}, },
}, },
ai: { ai: {
halfneg: true,
effect: { effect: {
player_use: function (card, player, target) { player_use: function (card, player, target) {
if (card.name == "jiu") return [1, 1]; if (card.name == "jiu") return [1, 1];

View File

@ -9921,6 +9921,9 @@ const skills = {
await trigger.player.changeGroup(player.group); await trigger.player.changeGroup(player.group);
await trigger.player.draw(); await trigger.player.draw();
}, },
ai: {
combo: "yuri_xingdong"
},
}, },
//枣恭介 //枣恭介
nk_shekong: { nk_shekong: {

View File

@ -14622,6 +14622,7 @@ game.import("character", function () {
player.loseMaxHp(); player.loseMaxHp();
}, },
ai: { ai: {
halfneg: true,
filterDamage: true, filterDamage: true,
skillTagFilter: function (player, tag, arg) { skillTagFilter: function (player, tag, arg) {
if (arg && arg.card && arg.card.name == "sha") return true; if (arg && arg.card && arg.card.name == "sha") return true;
@ -16503,6 +16504,9 @@ game.import("character", function () {
"step 1"; "step 1";
player.draw(event.num); player.draw(event.num);
}, },
ai: {
halfneg: true
},
}, },
yixiang: { yixiang: {
audio: 2, audio: 2,

View File

@ -9528,6 +9528,9 @@ game.import("character", function () {
player.addSkills("jixi"); player.addSkills("jixi");
player.insertPhase(); player.insertPhase();
}, },
ai: {
combo: "oltuntian"
},
}, },
rejunxing: { rejunxing: {
enable: "phaseUse", enable: "phaseUse",
@ -13190,6 +13193,9 @@ game.import("character", function () {
event.goto(1); event.goto(1);
} }
}, },
ai: {
combo: "rehuasheng"
},
}, },
reguhuo: { reguhuo: {
audio: 2, audio: 2,

View File

@ -1859,6 +1859,9 @@ game.import("character", function () {
player.markAuto("sbyijue", [trigger.player]); player.markAuto("sbyijue", [trigger.player]);
player.markAuto("sbyijue_effect", [trigger.player]); player.markAuto("sbyijue_effect", [trigger.player]);
}, },
ai: {
halfneg: true
},
marktext: "绝", marktext: "绝",
intro: { content: "已放$一马" }, intro: { content: "已放$一马" },
subSkill: { subSkill: {

View File

@ -4444,6 +4444,9 @@ game.import("character", function () {
player.loseMaxHp(); player.loseMaxHp();
player.addSkills("jixi"); player.addSkills("jixi");
}, },
ai: {
combo: "tuntian"
},
}, },
jixi: { jixi: {
audio: 2, audio: 2,
@ -5346,6 +5349,9 @@ game.import("character", function () {
event.goto(1); event.goto(1);
} }
}, },
ai: {
combo: "huashen"
},
}, },
huoshou: { huoshou: {
audio: "huoshou1", audio: "huoshou1",

View File

@ -16472,6 +16472,9 @@ game.import("character", function () {
player.awakenSkill("xinmoucheng"); player.awakenSkill("xinmoucheng");
player.changeSkills(["xinjingong"], ["xinlianji"]); player.changeSkills(["xinjingong"], ["xinlianji"]);
}, },
ai: {
combo: "xinlianji"
},
}, },
xinjingong: { xinjingong: {
audio: "jingong", audio: "jingong",
@ -20272,6 +20275,9 @@ game.import("character", function () {
"step 3"; "step 3";
if (player.isMinHp()) player.recover(); if (player.isMinHp()) player.recover();
}, },
ai: {
combo: "refanghun"
},
}, },
refanghun: { refanghun: {
mod: { mod: {
@ -24225,7 +24231,7 @@ game.import("character", function () {
zhuSkill: true, zhuSkill: true,
locked: true, locked: true,
ai: { ai: {
combo: "canshi", combo: "recanshi",
}, },
}, },
canshi: { canshi: {

View File

@ -3209,6 +3209,7 @@ game.import("character", function () {
player.loseMaxHp(); player.loseMaxHp();
}, },
ai: { ai: {
halfneg: true,
filterDamage: true, filterDamage: true,
skillTagFilter: function (player, tag, arg) { skillTagFilter: function (player, tag, arg) {
if (arg && arg.card && arg.card.name == "sha") return true; if (arg && arg.card && arg.card.name == "sha") return true;
@ -12181,6 +12182,9 @@ game.import("character", function () {
player.storage.bingzhao = group; player.storage.bingzhao = group;
player.markSkill("bingzhao"); player.markSkill("bingzhao");
}, },
ai: {
combo: "guju"
},
}, },
baijia: { baijia: {
audio: 2, audio: 2,

View File

@ -6017,6 +6017,9 @@ game.import("character", function () {
}, },
}, },
}, },
ai: {
combo: "twxiongzheng"
},
}, },
//鲍信 //鲍信
twmutao: { twmutao: {
@ -17394,6 +17397,9 @@ game.import("character", function () {
//for(var i of skills) target.addSkillLog(i); //for(var i of skills) target.addSkillLog(i);
} }
}, },
ai: {
combo: "twyujue"
},
}, },
twsidai: { twsidai: {
audio: 2, audio: 2,

View File

@ -8455,6 +8455,9 @@ game.import("character", function () {
player.awakenSkill("dcmoucheng"); player.awakenSkill("dcmoucheng");
player.changeSkills(["xinjingong"], ["dclianji"]); player.changeSkills(["xinjingong"], ["dclianji"]);
}, },
ai: {
combo: "dclianji"
},
}, },
//周宣 //周宣
dcwumei: { dcwumei: {
@ -11501,7 +11504,11 @@ game.import("character", function () {
}, },
check: function (card) { check: function (card) {
var player = _status.event.player; var player = _status.event.player;
if (!player.hasSkill("dcpingxi")) return 0; if (!player.hasSkill("dcpingxi")) {
if (ui.selected.cards.length) return 0;
if (player.needsToDiscard()) return 12 - get.value(card);
return 2 * player.hp + 1.5 - get.value(card);
}
var num = lib.skill.dcpingxi.getNum() + ui.selected.cards.length; var num = lib.skill.dcpingxi.getNum() + ui.selected.cards.length;
if ( if (
num < num <