character all finished

This commit is contained in:
157 2024-05-11 17:02:14 +08:00
parent 3b39fa28ed
commit e98648ddd7
9 changed files with 33 additions and 33 deletions

View File

@ -1289,7 +1289,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target(card, player, target, current) { target_use(card, player, target, current) {
if (get.color(card) == "red" && target.isDamaged()) return [1, 1]; if (get.color(card) == "red" && target.isDamaged()) return [1, 1];
}, },
}, },
@ -1480,7 +1480,7 @@ game.import("character", function () {
ai: { ai: {
halfneg: true, halfneg: true,
effect: { effect: {
player(card, player, target, current) { player_use(card, player, target, current) {
if (get.color(card) == "red") return [1, 0, 1, -2]; if (get.color(card) == "red") return [1, 0, 1, -2];
}, },
}, },

View File

@ -2517,7 +2517,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target(card, player, target) { target_use(card, player, target) {
if (get.type(card, "trick") == "trick" && player == target) return [1, 1]; if (get.type(card, "trick") == "trick" && player == target) return [1, 1];
}, },
}, },

View File

@ -180,7 +180,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (_status.woliu2_temp) return; if (_status.woliu2_temp) return;
if (card.name == "sha" && target.storage.woliu2) { if (card.name == "sha" && target.storage.woliu2) {
_status.woliu2_temp = true; _status.woliu2_temp = true;
@ -266,7 +266,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (card.name == "sha") { if (card.name == "sha") {
if (_status.event.name == "qianggu2") return; if (_status.event.name == "qianggu2") return;
if (get.attitude(player, target) > 0) return; if (get.attitude(player, target) > 0) return;

View File

@ -1259,7 +1259,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if ( if (
target == player && target == player &&
lib.skill.gaizao.filterx(card, target) && lib.skill.gaizao.filterx(card, target) &&
@ -1869,7 +1869,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (get.tag(card, "respondShan")) { if (get.tag(card, "respondShan")) {
var shans = target.countCards("h", "shan"); var shans = target.countCards("h", "shan");
var hs = target.countCards("h"); var hs = target.countCards("h");
@ -1920,7 +1920,7 @@ game.import("character", function () {
mingzhi: false, mingzhi: false,
useShan: true, useShan: true,
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (get.tag(card, "respondShan")) { if (get.tag(card, "respondShan")) {
var shans = target.countCards("h", "shan"); var shans = target.countCards("h", "shan");
var hs = target.countCards("h"); var hs = target.countCards("h");
@ -2970,7 +2970,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card) { target_use(card) {
if (card.name == "sha") return 1.3; if (card.name == "sha") return 1.3;
}, },
}, },
@ -3307,7 +3307,7 @@ game.import("character", function () {
ai: { ai: {
mingzhi: false, mingzhi: false,
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (player == _status.currentPhase) return; if (player == _status.currentPhase) return;
if ( if (
!game.hasPlayer(function (current) { !game.hasPlayer(function (current) {
@ -4484,7 +4484,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
player: function (card, player, target) { player_use(card, player, target) {
if (player != target) return; if (player != target) return;
if (get.type(card) == "equip" && !player.needsToDiscard()) { if (get.type(card) == "equip" && !player.needsToDiscard()) {
return [0, 0, 0, 0]; return [0, 0, 0, 0];
@ -8406,7 +8406,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if ( if (
get.color(card) == "black" && get.color(card) == "black" &&
get.attitude(target, player) < 0 && get.attitude(target, player) < 0 &&
@ -8676,7 +8676,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
return 0.7; return 0.7;
}, },
}, },

View File

@ -287,7 +287,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
player: function (card, player) { player_use(card, player) {
if (_status.currentPhase != player) return; if (_status.currentPhase != player) return;
if (get.type(card) == "basic") return; if (get.type(card) == "basic") return;
if (get.tag(card, "gain")) return; if (get.tag(card, "gain")) return;
@ -1029,7 +1029,7 @@ game.import("character", function () {
reverseEquip: true, reverseEquip: true,
threaten: 1.5, threaten: 1.5,
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (get.type(card) == "equip") return [1, 3]; if (get.type(card) == "equip") return [1, 3];
}, },
}, },
@ -4157,7 +4157,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if ( if (
target.storage.xjzhimeng2 && target.storage.xjzhimeng2 &&
get.type(card, "trick") == get.type(target.storage.xjzhimeng2, "trick") get.type(card, "trick") == get.type(target.storage.xjzhimeng2, "trick")
@ -4268,7 +4268,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (target == player.next || target == player.previous) return 0.1; if (target == player.next || target == player.previous) return 0.1;
}, },
}, },

View File

@ -1609,7 +1609,7 @@ const skills = {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (target.isHealthy() || (card.name != "sha" && card.name != "juedou")) return; if (target.isHealthy() || (card.name != "sha" && card.name != "juedou")) return;
if (target.storage.counttrigger && target.storage.counttrigger.yizu && current < 0) return 5; if (target.storage.counttrigger && target.storage.counttrigger.yizu && current < 0) return 5;
if (player.hp < target.hp) return; if (player.hp < target.hp) return;
@ -2495,7 +2495,7 @@ const skills = {
ai: { ai: {
threaten: 0.6, threaten: 0.6,
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (typeof card != "object" || target.hasSkill("xindanshou_as") || !["basic", "trick"].includes(get.type(card, "trick"))) return; if (typeof card != "object" || target.hasSkill("xindanshou_as") || !["basic", "trick"].includes(get.type(card, "trick"))) return;
var num = 0; var num = 0;
game.countPlayer2(function (current) { game.countPlayer2(function (current) {
@ -4153,7 +4153,7 @@ const skills = {
return bool; return bool;
}, },
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (card.name == "sha" && current < 0) return 0.7; if (card.name == "sha" && current < 0) return 0.7;
}, },
}, },
@ -4857,7 +4857,7 @@ const skills = {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (card.name == "sha" && get.attitude(player, target) < 0) { if (card.name == "sha" && get.attitude(player, target) < 0) {
return 0.3; return 0.3;
} }
@ -7307,7 +7307,7 @@ const skills = {
if (arg.target != player.storage.xinxianzhen) return false; if (arg.target != player.storage.xinxianzhen) return false;
}, },
effect: { effect: {
player: function (card, player, target, current, isLink) { player_use(card, player, target, current, isLink) {
if (isLink || !player.storage.xinxianzhen) return; if (isLink || !player.storage.xinxianzhen) return;
if (target != player.storage.xinxianzhen && ["sha", "guohe", "shunshou", "huogong", "juedou"].includes(card.name)) { if (target != player.storage.xinxianzhen && ["sha", "guohe", "shunshou", "huogong", "juedou"].includes(card.name)) {
if (get.effect(player.storage.xinxianzhen, card, player, player) > 0) { if (get.effect(player.storage.xinxianzhen, card, player, player) > 0) {
@ -8350,7 +8350,7 @@ const skills = {
ai: { ai: {
respondShan: true, respondShan: true,
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (get.tag(card, "respondShan") && current < 0) { if (get.tag(card, "respondShan") && current < 0) {
var nh = player.countCards("h"); var nh = player.countCards("h");
var players = game.filterPlayer(); var players = game.filterPlayer();
@ -9547,7 +9547,7 @@ const skills = {
}, },
ai: { ai: {
effect: { effect: {
player_use: function (card, player, target) { player_use(card, player, target) {
var list = player.storage.taoxi_list; var list = player.storage.taoxi_list;
if (!list || !list[1]) return; if (!list || !list[1]) return;
if (list[1].includes(card)) return [1, 1]; if (list[1].includes(card)) return [1, 1];
@ -12069,7 +12069,7 @@ const skills = {
ai: { ai: {
expose: 0.2, expose: 0.2,
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (card.name != "sha") return; if (card.name != "sha") return;
var players = game.filterPlayer(); var players = game.filterPlayer();
if (get.attitude(player, target) <= 0) { if (get.attitude(player, target) <= 0) {
@ -12787,7 +12787,7 @@ const skills = {
return arg && arg.jiu == true; return arg && arg.jiu == true;
}, },
effect: { effect: {
target: (card, player, target) => { target_use(card, player, target) {
if (target.hp <= 0 && target.hasSkill("zhenlie_lose") && get.tag(card, "recover")) return [1, 1.2]; if (target.hp <= 0 && target.hasSkill("zhenlie_lose") && get.tag(card, "recover")) return [1, 1.2];
}, },
}, },
@ -12812,10 +12812,10 @@ const skills = {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (get.type(card) == "trick" && player != target) return "zeroplayertarget"; if (get.type(card) == "trick" && player != target) return "zeroplayertarget";
}, },
player: function (card, player, target, current) { player_use(card, player, target, current) {
if (get.type(card) == "trick" && player != target) return "zeroplayertarget"; if (get.type(card) == "trick" && player != target) return "zeroplayertarget";
}, },
}, },
@ -12989,7 +12989,7 @@ const skills = {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (player == target && get.subtypes(card).includes("equip2")) { if (player == target && get.subtypes(card).includes("equip2")) {
if (get.equipValue(card) <= 8) return 0; if (get.equipValue(card) <= 8) return 0;
} }

View File

@ -597,7 +597,7 @@ const skills = {
onremove: true, onremove: true,
ai: { ai: {
effect: { effect: {
player: function (card, player, target) { player_use(card, player, target) {
if (card.name == player.storage.xiongshu_ai) return "zeroplayertarget"; if (card.name == player.storage.xiongshu_ai) return "zeroplayertarget";
}, },
}, },

View File

@ -1460,7 +1460,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (get.type(card) == "trick" || card.name == "sha") return "zeroplayertarget"; if (get.type(card) == "trick" || card.name == "sha") return "zeroplayertarget";
}, },
}, },
@ -1781,7 +1781,7 @@ game.import("character", function () {
ai: { ai: {
mingzhi: false, mingzhi: false,
effect: { effect: {
target: function (card, player, target) { player_use(card, player, target) {
if (get.tag(card, "respondShan")) { if (get.tag(card, "respondShan")) {
return 0.8; return 0.8;
} }

View File

@ -123,7 +123,7 @@ game.import("character", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (target.getEquip(2)) return; if (target.getEquip(2)) return;
return lib.skill.tengjia1.ai.effect.target.apply(this, arguments); return lib.skill.tengjia1.ai.effect.target.apply(this, arguments);
}, },