|
1 | 1 | import { lib, game, ui, get, ai, _status } from "../../noname.js"; |
2 | 2 |
|
3 | 3 | const cards = { |
| 4 | + //26神黄月英的升级装备 |
| 5 | + zc26_zhuge: { |
| 6 | + fullskin: true, |
| 7 | + type: "equip", |
| 8 | + subtype: "equip1", |
| 9 | + derivation: "zc26_shen_huangyueying", |
| 10 | + skills: ["zc26_zhuge_skill"], |
| 11 | + ai: { |
| 12 | + order() { |
| 13 | + return get.order({ name: "sha" }) + 0.1; |
| 14 | + }, |
| 15 | + equipValue(card, player) { |
| 16 | + if (player._zhuge_temp) { |
| 17 | + return 1; |
| 18 | + } |
| 19 | + player._zhuge_temp = true; |
| 20 | + var result = (function () { |
| 21 | + if ( |
| 22 | + !game.hasPlayer(function (current) { |
| 23 | + return get.distance(player, current) <= 1 && player.canUse("sha", current) && get.effect(current, { name: "sha" }, player, player) > 0; |
| 24 | + }) |
| 25 | + ) { |
| 26 | + return 1.5; |
| 27 | + } |
| 28 | + if (player.hasSha() && _status.currentPhase === player) { |
| 29 | + if ((player.getEquip("zhuge") && player.countUsed("sha")) || player.getCardUsable("sha") === 0) { |
| 30 | + return 10.5; |
| 31 | + } |
| 32 | + } |
| 33 | + var num = player.countCards("h", "sha"); |
| 34 | + if (num > 1) { |
| 35 | + return 6.5 + num; |
| 36 | + } |
| 37 | + return 3.5 + num; |
| 38 | + })(); |
| 39 | + delete player._zhuge_temp; |
| 40 | + return result; |
| 41 | + }, |
| 42 | + basic: { |
| 43 | + equipValue: 6, |
| 44 | + }, |
| 45 | + tag: { |
| 46 | + valueswap: 1.5, |
| 47 | + }, |
| 48 | + }, |
| 49 | + }, |
| 50 | + zc26_bagua: { |
| 51 | + fullskin: true, |
| 52 | + type: "equip", |
| 53 | + subtype: "equip2", |
| 54 | + derivation: "zc26_shen_huangyueying", |
| 55 | + skills: ["zc26_bagua_skill"], |
| 56 | + ai: { |
| 57 | + basic: { |
| 58 | + equipValue: 8, |
| 59 | + }, |
| 60 | + }, |
| 61 | + }, |
| 62 | + zc26_lingling: { |
| 63 | + name: "zc26_lingling", |
| 64 | + fullskin: true, |
| 65 | + type: "equip", |
| 66 | + subtype: "equip4", |
| 67 | + derivation: "zc26_shen_huangyueying", |
| 68 | + skills: ["zc26_lingling_skill"], |
| 69 | + distance: { globalFrom: -2 }, |
| 70 | + ai: { |
| 71 | + value(card, player) { |
| 72 | + if ( |
| 73 | + !game.hasPlayer(function (current) { |
| 74 | + return get.damageEffect(current, player, player, "thunder") > 0; |
| 75 | + }) |
| 76 | + ) { |
| 77 | + return 0; |
| 78 | + } |
| 79 | + return 8; |
| 80 | + }, |
| 81 | + equipValue(card, player) { |
| 82 | + if ( |
| 83 | + !game.hasPlayer(function (current) { |
| 84 | + return get.damageEffect(current, player, player, "thunder") > 0; |
| 85 | + }) |
| 86 | + ) { |
| 87 | + return 0; |
| 88 | + } |
| 89 | + return 8; |
| 90 | + }, |
| 91 | + basic: { |
| 92 | + equipValue: 2, |
| 93 | + }, |
| 94 | + }, |
| 95 | + }, |
4 | 96 | //神肘不疑的五灵卡牌 |
5 | 97 | wuqinxi_hu: { |
6 | 98 | fullskin: true, |
|
0 commit comments