From da340e183c90dea7fae214945da4a9c4a970a8c2 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Mon, 8 Apr 2024 19:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E6=88=98=E6=9B=B9=E6=B4=AA=E3=80=90?= =?UTF-8?q?=E6=8A=A4=E6=8F=B4=E3=80=91=E3=80=81=E5=9B=BD=E6=88=98=E9=99=86?= =?UTF-8?q?=E6=8A=97=E3=80=90=E6=81=AA=E5=AE=88=E3=80=91=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/guozhan.js | 166 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 140 insertions(+), 26 deletions(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index efbe4d9a2..9e37fd2cc 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -518,7 +518,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ gz_zoushi:['female','qun',3,['huoshui','new_qingcheng']], gz_dengai:['male','wei',4,['tuntian','ziliang','gzjixi'],['gzskin','die_audio']], - gz_caohong:['male','wei',4,['gzhuyuan','heyi'],['gzskin']], + gz_caohong:['male','wei',4,['fakehuyuan','heyi'],['gzskin']], gz_jiangfei:['male','shu',3,['shengxi','gzshoucheng']], gz_jiangwei:['male','shu',4,['tiaoxin','yizhi','tianfu'],['gzskin']], gz_xusheng:['male','wu',4,['fakeyicheng'],['gzskin']], @@ -569,7 +569,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ gz_wangping:['male','shu',4,['jianglue'],['gzskin']], gz_fazheng:['male','shu',3,['gzxuanhuo','gzenyuan'],['gzskin']], gz_wuguotai:['female','wu',3,['gzbuyi','ganlu'],['gzskin']], - gz_lukang:['male','wu',4,['fakejueyan','keshou'],['gzskin']], + gz_lukang:['male','wu',4,['fakejueyan','fakekeshou'],['gzskin']], gz_yuanshu:['male','qun',4,['gzweidi','gzyongsi'],['gzskin']], gz_zhangxiu:['male','qun',4,['gzfudi','gzcongjian'],['gzskin']], gz_jun_caocao:['male','wei',4,['jianan','huibian','gzzongyu','wuziliangjiangdao'],[]], @@ -4178,6 +4178,116 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, }, }, + fakehuyuan:{ + audio:'yuanhu', + trigger:{player:'phaseJieshuBegin'}, + filter(event,player){ + return player.countCards('he',card=>{ + if(get.position(card)=='h'&&_status.connectMode) return true; + return get.type(card)=='equip'; + })>0; + }, + async cost(event,trigger,player){ + event.result=await player.chooseCardTarget({ + prompt:get.prompt2('yuanhu'), + filterCard(card){ + return get.type(card)=='equip'; + }, + position:'he', + filterTarget(card,player,target){ + return target.canEquip(card); + }, + ai1(card){ + return 6-get.value(card); + }, + ai2(target){ + return get.attitude(_status.event.player,target)-3; + }, + }).set('hiddenSkill','fakehuyuan').forResult(); + }, + preHidden:true, + async content(event,trigger,player){ + const card=event.cards[0],target=event.targets[0]; + if(target!=player) player.$give(card,target,false); + await target.equip(thisCard); + }, + group:'fakehuyuan_discard', + subSkill:{ + discard:{ + trigger:{global:'equipEnd'}, + filter(event,player){ + return _status.currentPhase==player&&game.hasPlayer(target=>{ + return get.distance(event.player,target)<=1&&target!=event.player&&target.countCards('hej'); + }); + }, + async cost(event,trigger,player){ + event.result=await player.chooseTarget(get.prompt('fakehuyuan'),'弃置一名与'+get.translation(trigger.player)+'距离为1以内的另一名角色区域里的一张牌',(card,player,target)=>{ + const trigger=get.event().getTrigger(); + return get.distance(trigger.player,target)<=1&&target!=trigger.player&&target.countCards('hej'); + }).set('ai',target=>{ + const player=get.event('player'); + return get.effect(target,{name:'guohe'},player,player); + }).set('hiddenSkill','fakehuyuan').forResult(); + }, + popup:false, + async content(event,trigger,player){ + const target=event.targets[0]; + player.logSkill('fakehuyuan',target); + await player.discardPlayerCard(target,'hej',true); + }, + }, + }, + }, + fakekeshou:{ + audio:'keshou', + trigger:{player:'damageBegin3'}, + filter(event,player){ + return event.num>0; + }, + preHidden:true, + async cost(event,trigger,player){ + event.result=await player.chooseCard(get.prompt('fakekeshou'),'弃置两张颜色相同的牌,令即将受到的伤害-1','he',2,card=>{ + return !ui.selected.cards.length||get.color(card)==get.color(ui.selected.cards[0]); + }).set('logSkill','fakekeshou').set('complexCard',true).set('ai',card=>{ + if(!_status.event.check) return 0; + var player=_status.event.player; + if(player.hp==1){ + if(!player.countCards('h',function(card){return get.tag(card,'save')})&&!player.hasSkillTag('save',true)) return 10-get.value(card); + return 7-get.value(card); + } + return 6-get.value(card); + }).set('check',(player.countCards('h',{color:'red'})>1||player.countCards('h',{color:'black'})>1)).setHiddenSkill('fakekeshou'); + }, + popup:false, + async content(event,trigger,player){ + trigger.num--; + }, + group:'fakekeshou_draw', + subSkill:{ + draw:{ + audio:'keshou', + trigger:{ + player:'loseAfter', + global:'loseAsyncAfter', + }, + filter(event,player){ + if(event.type!='discard'||event.getlx===false) return false; + if(!(!player.isUnseen()&&!game.hasPlayer(current=>{ + return current!=player&¤t.isFriendOf(player); + }))) return false; + const evt=event.getl(player); + return evt&&evt.cards2&&evt.cards2.length>1; + }, + prompt2:'进行一次判定,若为红色,则你摸一张牌', + async content(event,trigger,player){ + const result=await player.judge(card=>{ + return get.color(card)=='red'?1:0; + }).forResult(); + if(result.judge>0) await player.draw(); + }, + }, + }, + }, //国战典藏2023补充 //吕范 gzdiaodu:{ @@ -14657,7 +14767,7 @@ return event.junling=='junling5'?1:0;}); if(content&&content.length){ dialog.addSmall(content); } - dialog.addText('