Skip to content

Commit

Permalink
Merge Pull request libccy#2062 from PZ157.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeFuLoDgu committed Oct 29, 2024
1 parent 7f1ce71 commit 43c9c07
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 53 deletions.
12 changes: 11 additions & 1 deletion card/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,17 @@ game.import("card", function () {
recastable: true,
ai: {
wuxie: (target, card, player, viewer, status) => {
if (status * get.attitude(viewer, player._trueMe || player) > 0 || target.hasSkillTag("nodamage") || target.hasSkillTag("nofire") || target.hasSkillTag("nothunder") || get.attitude(viewer, player) > 0 || (1 + target.countCards("hs")) * _status.event.getRand() > 1.57) return 0;
if (
status * get.attitude(viewer, player._trueMe || player) > 0 ||
target.hasSkillTag("nodamage") ||
target.hasSkillTag("nofire") ||
target.hasSkillTag("nothunder")
) return 0;
if (
get.damageEffect(target, player, viewer, "thunder") >= 0 ||
get.damageEffect(target, player, viewer, "fire") >= 0
) return 0;
if (target.hp + target.hujia > 2 && target.mayHaveShan(viewer, "use")) return 0;
},
basic: {
order: 7.3,
Expand Down
12 changes: 12 additions & 0 deletions card/guozhan.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,18 @@ game.import("card", function () {
order: 7.5,
value: 4,
useful: 2,
wuxie: (target, card, player, viewer, status) => {
if (
target.hasSkillTag("nodamage") ||
target.hasSkillTag("nofire") ||
target.hasSkillTag("nothunder")
) return 0;
if (
get.damageEffect(target, player, viewer, "thunder") >= 0 ||
get.damageEffect(target, player, viewer, "fire") >= 0
) return 0;
if (target.hp + target.hujia > 2 && target.mayHaveShan(viewer, "use")) return 0;
},
result: {
target: function (player, target) {
if (get.mode() == "versus") {
Expand Down
1 change: 1 addition & 0 deletions card/xianxia.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ game.import("card", function () {
},
ty_feilongduofeng: {
fullskin: true,
cardimage: "feilongduofeng",
type: "equip",
subtype: "equip1",
distance: { attackFrom: -1 },
Expand Down
6 changes: 2 additions & 4 deletions character/offline/skill.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,8 +1822,7 @@ const skills = {
enable: "phaseUse",
usable: 1,
async content(event, trigger, player) {
let cards = get.cards(3);
await game.cardsGotoOrdering(cards);
let cards = get.cards(3, true);
await player.showCards(cards, get.translation(player) + "发动了【冲虚】");
const {
result: {
Expand Down Expand Up @@ -2177,8 +2176,7 @@ const skills = {
return 5 - get.value(card);
},
async content(event, trigger, player) {
let cards = get.cards(event.cards.length);
await game.cardsGotoOrdering(cards);
let cards = get.cards(event.cards.length, true);
await player.showCards(cards, get.translation(player) + "发动了【爵制】");
const {
result: {
Expand Down
12 changes: 12 additions & 0 deletions game/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -7479,6 +7479,7 @@
"image/card/jinchan.png",
"image/card/jingfanma.png",
"image/card/jingleishan.png",
"image/card/jingxiangshengshi.png",
"image/card/jinhe.png",
"image/card/jinlianzhu.png",
"image/card/jintuiziru.png",
Expand Down Expand Up @@ -7516,6 +7517,7 @@
"image/card/luyugeng.png",
"image/card/ly_piliche.png",
"image/card/mapodoufu.png",
"image/card/mengchong.png",
"image/card/mianju.png",
"image/card/mianlijinzhen.png",
"image/card/miki_binoculars.png",
Expand Down Expand Up @@ -7571,6 +7573,7 @@
"image/card/qinglong.png",
"image/card/qinglonglingzhu.png",
"image/card/qinglongzhigui.png",
"image/card/qingmingjian.png",
"image/card/qingtuan.png",
"image/card/qixingbaodao.png",
"image/card/qizhengxiangsheng.png",
Expand All @@ -7596,6 +7599,7 @@
"image/card/shan.png",
"image/card/shandian.png",
"image/card/shandianjian.png",
"image/card/shangfangbaojian.png",
"image/card/shatang.png",
"image/card/shencaojie.png",
"image/card/shenenshu.png",
Expand All @@ -7618,6 +7622,7 @@
"image/card/shunshou.png",
"image/card/sifeizhenmian.png",
"image/card/sizhaojian.png",
"image/card/suibozhuliu.png",
"image/card/suijiyingbian.png",
"image/card/suolianjia.png",
"image/card/taigongyinfu.png",
Expand Down Expand Up @@ -7666,6 +7671,7 @@
"image/card/xiaolicangdao.png",
"image/card/xiayuncailing.png",
"image/card/xietianzi.png",
"image/card/xingbian.png",
"image/card/xinge.png",
"image/card/xingjiegoutong.png",
"image/card/xingjunyan.png",
Expand Down Expand Up @@ -11460,6 +11466,7 @@
"extension/十周年UI/image/card/lx_huoshaolianying.webp",
"extension/十周年UI/image/card/ly_piliche.webp",
"extension/十周年UI/image/card/meiyingqiang.webp",
"extension/十周年UI/image/card/mengchong.webp",
"extension/十周年UI/image/card/mianju.webp",
"extension/十周年UI/image/card/minguangkai.webp",
"extension/十周年UI/image/card/monkey.webp",
Expand All @@ -11480,6 +11487,7 @@
"extension/十周年UI/image/card/qimenbagua.webp",
"extension/十周年UI/image/card/qinggang.webp",
"extension/十周年UI/image/card/qinglong.webp",
"extension/十周年UI/image/card/qingmingjian.webp",
"extension/十周年UI/image/card/qixingbaodao.webp",
"extension/十周年UI/image/card/qizhengxiangsheng.webp",
"extension/十周年UI/image/card/renwang.webp",
Expand All @@ -11497,6 +11505,7 @@
"extension/十周年UI/image/card/sha.webp",
"extension/十周年UI/image/card/shan.webp",
"extension/十周年UI/image/card/shandian.webp",
"extension/十周年UI/image/card/shangfangbaojian.webp",
"extension/十周年UI/image/card/shanrangzhaoshu.webp",
"extension/十周年UI/image/card/sha_fire.webp",
"extension/十周年UI/image/card/sha_ice.webp",
Expand All @@ -11512,6 +11521,7 @@
"extension/十周年UI/image/card/shuiyanqijuny.webp",
"extension/十周年UI/image/card/shunshou.webp",
"extension/十周年UI/image/card/sizhaojian.webp",
"extension/十周年UI/image/card/suibozhuliu.webp",
"extension/十周年UI/image/card/suijiyingbian.webp",
"extension/十周年UI/image/card/suolianjia.webp",
"extension/十周年UI/image/card/taigongyinfu.webp",
Expand All @@ -11529,6 +11539,7 @@
"extension/十周年UI/image/card/toushiche.webp",
"extension/十周年UI/image/card/tuixinzhifu.webp",
"extension/十周年UI/image/card/tunliang.webp",
"extension/十周年UI/image/card/ty_feilongduofeng.webp",
"extension/十周年UI/image/card/wangmeizhike.webp",
"extension/十周年UI/image/card/wanjian.webp",
"extension/十周年UI/image/card/wolong_card.webp",
Expand All @@ -11543,6 +11554,7 @@
"extension/十周年UI/image/card/wy_meirenji.webp",
"extension/十周年UI/image/card/wy_xiaolicangdao.webp",
"extension/十周年UI/image/card/xietianzi.webp",
"extension/十周年UI/image/card/xingbian.webp",
"extension/十周年UI/image/card/xinge.webp",
"extension/十周年UI/image/card/xingtianpojunfu.webp",
"extension/十周年UI/image/card/xionghuangjiu.webp",
Expand Down
Binary file added image/card/jingxiangshengshi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/card/mengchong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/card/qingmingjian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/card/shangfangbaojian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/card/suibozhuliu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/card/xingbian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 4 additions & 48 deletions mode/guozhan.js
Original file line number Diff line number Diff line change
Expand Up @@ -7005,17 +7005,16 @@ export default () => {
},
usable: 1,
preHidden: true,
content: function () {
var cards = get.cards(4);
game.cardsGotoOrdering(cards);
player.showCards(cards, get.translation(player) + "发动了【诱言】");
async content(event, trigger, player) {
let cards = get.cards(4, true);
await player.showCards(cards, get.translation(player) + "发动了【诱言】");
var evt = trigger.getl(player);
var list = [];
for (var i of evt.cards2) {
list.add(get.suit(i, player));
}
cards = cards.filter(card => !list.includes(get.suit(card, false)));
if (cards.length) player.gain(cards, "gain2");
if (cards.length) await player.gain(cards, "gain2");
},
ai: {
effect: {
Expand Down Expand Up @@ -8349,47 +8348,6 @@ export default () => {
},
subSkill: { blocker: { charlotte: true } },
},
gzxiongzhi: {
audio: "xiongzhi",
enable: "phaseUse",
limited: true,
skillAnimation: true,
animationColor: "thunder",
content: function () {
"step 0";
player.awakenSkill("gzxiongzhi");
event.cards = game.cardsGotoOrdering(get.cards(player.maxHp)).cards.slice(0);
"step 1";
var card = cards.shift();
event.card = card;
player.showCards(card);
if (!player.hasUseTarget(card)) {
if (cards.length > 0) event.redo();
else event.finish();
}
"step 2";
var next = player.chooseUseTarget(card, true);
if (get.info(card).updateUsable == "phaseUse") next.addCount = false;
"step 3";
if (result.bool && cards.length > 0) event.goto(1);
},
ai: {
order: 1,
result: {
player: function (player) {
if (!player.hasSkill("smyyingshi")) return 1;
var cards = [];
for (var i = 0; i < player.maxHp; i++) {
var card = ui.cardPile.childNodes[i];
if (card) {
if (!player.hasValueTarget(card)) return 0;
} else break;
}
return 1;
},
},
},
},
//十周年羊祜
gzdeshao: {
audio: "dcdeshao",
Expand Down Expand Up @@ -21138,8 +21096,6 @@ export default () => {
gzhongyuan_info: "①出牌阶段限一次。你可以令一张没有「合纵」标签的卡牌视为拥有「合纵」标签直到本回合结束。②当你即将因合纵效果摸牌时,你可放弃摸牌,并令一名己方角色摸等量的牌。",
gzmingzhe: "明哲",
gzmingzhe_info: "你的回合外,当你使用或打出红色手牌,或失去装备区内的红色装备牌时,你可摸一张牌。",
gzxiongzhi: "雄志",
gzxiongzhi_info: "限定技。出牌阶段,你可依次展示牌堆顶的X张牌并使用之(X为你的体力上限)。",
gzquanbian: "权变",
gzquanbian_info: "当你于出牌阶段内使用/打出手牌时,若此牌有花色且你本回合内未使用/打出过该花色的其他手牌,则你可以观看牌堆顶X张牌,选择获得其中的一张并展示之。若你本回合使用过与得到的牌花色相同的牌,则你本回合内不能再发动〖权变〗。",
gzhuishi: "慧识",
Expand Down

0 comments on commit 43c9c07

Please sign in to comment.