From b1d7ea842e6f4855c0e6db7ea6d6285bf53d3a90 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 7 Mar 2024 19:10:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96OL=E9=99=86=E5=87=AF?= =?UTF-8?q?=E3=80=90=E7=8E=84=E6=B3=A8=E3=80=91=E7=9A=84=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/character/sp.js b/character/sp.js index 49b465880..3e3e3b04d 100755 --- a/character/sp.js +++ b/character/sp.js @@ -716,12 +716,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){ mark:true, marktext:'☯', zhuanhuanji:true, - intro:{ - content(storage){ - if(storage) return '每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。'; - return '每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意基本牌。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。'; - }, - }, audio:2, enable:'chooseToUse', filter(event,player){ @@ -855,8 +849,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){ result:{player:1}, }, intro:{ - content:'expansion', markcount:'expansion', + mark(dialog,storage,player){ + const cards=player.getExpansions('olxuanzhu'); + if(cards.length) dialog.addSmall(player.getExpansions('olxuanzhu')); + dialog.addText((()=>{ + if(storage) return '每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意普通锦囊牌(须指定目标且仅指定一个目标)。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。'; + return '每回合限一次,你可以将一张牌称为“玄”置于武将牌上,然后视为使用任意基本牌。若此次置于武将牌上的“玄”:不为装备牌,你弃置一张牌;为装备牌,你将所有“玄”置入弃牌堆,然后摸等量的牌。'; + })(storage)); + }, }, onremove(player,skill){ const cards=player.getExpansions(skill); From b7bea6ea992318b6202e18e5f7ae6002161e0b40 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 7 Mar 2024 19:14:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8DOL=E9=99=86=E5=87=AF?= =?UTF-8?q?=E3=80=90=E7=8E=84=E6=B3=A8=E3=80=91ai=E5=BC=B9=E7=AA=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/character/sp.js b/character/sp.js index 3e3e3b04d..0887f4c77 100755 --- a/character/sp.js +++ b/character/sp.js @@ -830,7 +830,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ const getNum=function(card){ if(get.info('xunshi').isXunshi(card)) return get.effect(game.filterPlayer(target=>{ return player.canUse(card,target,true,true); - }).sort((a,b)=>get.effect(b,card,player,player)-get.effect(a,card,player,player)),card,player,player); + }).sort((a,b)=>get.effect(b,card,player,player)-get.effect(a,card,player,player))[0],card,player,player); return player.getUseValue(card,true,true); }; return (getNum(b)||0)-(getNum(a)||0);