From d7506afb4ca9a308b4ad26fc812a3f638db7d1b5 Mon Sep 17 00:00:00 2001 From: copcap Date: Sun, 18 Feb 2024 17:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=9C=AA=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=8C=96=E7=9A=84=E8=8E=B7=E5=BE=97=E6=8A=80=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/clan.js | 2 +- character/collab.js | 2 +- character/ddd.js | 2 +- character/extra.js | 8 ++++---- character/huicui.js | 2 +- character/mobile.js | 2 +- character/offline.js | 6 +++--- character/sp.js | 6 +++--- character/sp2.js | 8 ++++---- character/xianding.js | 2 +- character/yijiang.js | 14 ++++++-------- character/yingbian.js | 8 ++++---- mode/boss.js | 6 +++--- mode/guozhan.js | 4 ++-- 14 files changed, 35 insertions(+), 37 deletions(-) diff --git a/character/clan.js b/character/clan.js index 0890a31a8..deefebb67 100644 --- a/character/clan.js +++ b/character/clan.js @@ -100,7 +100,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var key=`${suit}+${get.type2(trigger.card)}`; if(key in storage){ if(!player.hasSkill('qice')){ - player.addTempSkill('qice','roundStart'); + player.addTempSkills('qice','roundStart'); player.popup('奇策'); game.log(player,'获得了技能','#g【奇策】'); } diff --git a/character/collab.js b/character/collab.js index 0d5ed1258..d037be7e6 100644 --- a/character/collab.js +++ b/character/collab.js @@ -603,7 +603,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ ]); 'step 1' var skill=result.control; - player.addTempSkill(skill,'dcbianzhuangAfter'); + player.addTempSkills(skill,'dcbianzhuangAfter'); for(var i in lib.skill.dcbianzhuang.characterMap){ if(lib.skill.dcbianzhuang.characterMap[i]==skill){ player.flashAvatar('dcbianzhuang',i); diff --git a/character/ddd.js b/character/ddd.js index 1149e4d8d..6b3483273 100644 --- a/character/ddd.js +++ b/character/ddd.js @@ -2486,7 +2486,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(result.bool){ var target=trigger.player,cards=result.cards; player.logSkill('dddqiahua',target); - target.addTempSkill('dddxunxun'); + target.addTempSkills('dddxunxun'); player.addShownCards(cards,'visible_dddxianglang'); game.log(player,'选择了',cards,'作为“明”'); player.showCards(cards,get.translation(player)+'对'+get.translation(target)+'发动了【恰化】'); diff --git a/character/extra.js b/character/extra.js index 72a6a1a58..35e4730ba 100755 --- a/character/extra.js +++ b/character/extra.js @@ -5548,7 +5548,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.removeMark('baonu',2); player.addTempSkills('wushuang'); player.popup('无双'); - game.log(player,'获得了技能','#g【无双】'); + // game.log(player,'获得了技能','#g【无双】'); target.addTempSkill('ol_wuqian_targeted'); }, ai:{ @@ -7516,13 +7516,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else event.finish(); 'step 2' - player.addTempSkill(result.control,{player:'dieAfter'}); - player.popup(result.control,'thunder'); + player.addTempSkills(result.control,{player:'dieAfter'}); + // player.popup(result.control,'thunder'); player.storage.drlt_duorui=[result.control]; player.storage.drlt_duorui_player=trigger.player; trigger.player.storage.drlt_duorui=[result.control]; trigger.player.addTempSkill('drlt_duorui1',{player:'phaseAfter'}); - game.log(player,'获得了技能','#g【'+get.translation(result.control)+'】') + // game.log(player,'获得了技能','#g【'+get.translation(result.control)+'】') }, group:['duorui_clear'], }, diff --git a/character/huicui.js b/character/huicui.js index b51764139..2d72eab9c 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -10548,7 +10548,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.line(target,'green'); player.markAuto('remeibu_gain',[get.suit(card,player)]); player.addTempSkill('remeibu_gain'); - target.addTempSkill('rezhixi','phaseUseEnd'); + target.addTempSkills('rezhixi','phaseUseEnd'); } }, ai:{ diff --git a/character/mobile.js b/character/mobile.js index 57e9c1aaf..b84012b44 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -1170,7 +1170,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var target=trigger.player; var card=result.cards[0]; player.line(target,'green'); - target.addTempSkill('mbzhixi','phaseUseAfter'); + target.addTempSkills('mbzhixi','phaseUseAfter'); if(card.name!='sha'&&get.type(card)!='trick'&&get.color(card)!='black'){ target.addTempSkill('new_meibu_range','phaseUseAfter'); target.markAuto('new_meibu_range',player); diff --git a/character/offline.js b/character/offline.js index 4cea6a97f..ab84dee39 100644 --- a/character/offline.js +++ b/character/offline.js @@ -4965,9 +4965,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ else event.finish(); 'step 2' var skill=result.control; - player.addTempSkill(skill); - player.popup(skill,'wood'); - game.log(player,'获得了技能','#g【'+get.translation(skill)+'】'); + player.addTempSkills(skill); + // player.popup(skill,'wood'); + // game.log(player,'获得了技能','#g【'+get.translation(skill)+'】'); }, }, sphuangen:{ diff --git a/character/sp.js b/character/sp.js index 23cf7522d..3ce94c56e 100755 --- a/character/sp.js +++ b/character/sp.js @@ -10564,7 +10564,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ content:function(){ var target=trigger.getParent().target; trigger.num=Math.max(1,target.getAllHistory('useCard',(evt)=>evt.card.name=='sha').length); - target.addTempSkill('juesheng',{player:'phaseAfter'}); + target.addTempSkills('juesheng',{player:'phaseAfter'}); }, }, }, @@ -15289,7 +15289,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var target=trigger.player; var card=result.cards[0]; player.line(target,'green'); - target.addTempSkill('new_zhixi','phaseUseAfter'); + target.addTempSkills('new_zhixi','phaseUseAfter'); if(card.name!='sha'&&get.type(card)!='trick'&&get.color(card)!='black'){ target.addTempSkill('new_meibu_range','phaseUseAfter'); target.markAuto('new_meibu_range',player); @@ -17663,7 +17663,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 2' var map=event.result||result; if(map&&map.skills&&map.skills.length){ - player.addSkils(map.skills); + player.addSkills(map.skills); } game.broadcastAll(function(list){ game.expandSkills(list); diff --git a/character/sp2.js b/character/sp2.js index c2c617482..00edc2f4b 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -1483,10 +1483,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(i!=skills.length-1) str+='、'; } game.log(target,'的技能','#g'+str,'失效了'); - game.log(player,'获得了技能','#g'+str); + // game.log(player,'获得了技能','#g'+str); player.popup(skills,'thunder'); for(var skill of skills){ - player.addTempSkill(skill,['phaseUseAfter','phaseAfter']); + player.addTempSkills(skill,['phaseUseAfter','phaseAfter']); } } } @@ -1569,10 +1569,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(i!=skills.length-1) str+='、'; } game.log(target,'的技能','#g'+str,'失效了'); - game.log(player,'获得了技能','#g'+str); + // game.log(player,'获得了技能','#g'+str); player.popup(skills,'thunder'); for(var skill of skills){ - player.addTempSkill(skill,['phaseUseAfter','phaseAfter']); + player.addTempSkills(skill,['phaseUseAfter','phaseAfter']); } } } diff --git a/character/xianding.js b/character/xianding.js index 8a7b023bc..e0d3aae8a 100644 --- a/character/xianding.js +++ b/character/xianding.js @@ -13440,7 +13440,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }); if(card) cards2.push(card); } - player.addTempSkill(skill); + player.addTempSkills(skill); if(cards2.length) player.gain(cards2,'gain2','log'); }, }, diff --git a/character/yijiang.js b/character/yijiang.js index ae80bebf0..4f34266ad 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -2029,8 +2029,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 2' player.gain(cards,'gain2'); if(get.color(cards[0])!=get.color(cards[1])){ - player.addTempSkill('wusheng'); - player.addTempSkill('paoxiao'); + player.addTempSkills(['wusheng','paoxiao']); } }, derivation:['wusheng','paoxiao'], @@ -9542,13 +9541,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ trigger:{source:'damageSource'}, forced:true, filter:function(event,player){ - if(player.hasSkill('fuhun3')) return false; + if(['new_rewusheng','olpaoxiao'].every(skill=>player.hasSkill(skill,null,false,false))) return false; return event.getParent().skill=='fuhun'; }, content:function(){ - player.addTempSkill('new_rewusheng'); - player.addTempSkill('olpaoxiao'); - player.addTempSkill('fuhun3'); + player.addTempSkills(['new_rewusheng','olpaoxiao']); + // player.addTempSkill('fuhun3'); } }, fuhun3:{}, @@ -14328,7 +14326,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ xinxuanhuo_info:'摸牌阶段开始时,你可以改为令一名其他角色摸两张牌,然后该角色需对其攻击范围内你选择的另一名角色使用一张【杀】,否则你获得其两张牌。', fuhun:'父魂', fuhun2:'父魂', - fuhun_info:'你可以将两张手牌当做【杀】使用或打出;出牌阶段,若你以此法使用的【杀】造成了伤害,你获得技能〖武圣〗和〖咆哮〗直到回合结束。', + fuhun_info:'你可以将两张手牌当做【杀】使用或打出;当你于出牌阶段以此法使用的【杀】造成伤害后,你获得〖武圣〗和〖咆哮〗直到回合结束。', yuce:'御策', yuce_info:'当你受到伤害后,你可以展示一张手牌,并令伤害来源选择一项:弃置一张与此牌类型不同的手牌,或令你回复1点体力。', xiansi:'陷嗣', @@ -14528,7 +14526,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ oldmiji:'秘计', oldmiji_info:'准备/结束阶段开始时,若你已受伤,你可以判定,若判定结果为黑色,你观看牌堆顶的X张牌(X为你已损失的体力值),然后将这些牌交给一名角色。', old_fuhun:'父魂', - old_fuhun_info:'摸牌阶段开始时,你可以放弃摸牌,改为从牌堆顶亮出两张牌并获得之,若亮出的牌颜色不同,你获得技能“武圣”、“咆哮”,直到回合结束。', + old_fuhun_info:'摸牌阶段开始时,你可以放弃摸牌,改为从牌堆顶亮出两张牌并获得之,若亮出的牌颜色不同,你获得〖武圣〗和〖咆哮〗直到回合结束。', rejueqing:'绝情', rejueqing_info:'当你对其他角色造成伤害时,你可以令此伤害值+X。若如此做,你失去X点体力并修改〖绝情〗(X为伤害值)。', rejueqing_1st:'绝情', diff --git a/character/yingbian.js b/character/yingbian.js index 7f9747452..53e6f8b6f 100644 --- a/character/yingbian.js +++ b/character/yingbian.js @@ -1673,9 +1673,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else event.finish(); 'step 1' - player.addTempSkill(result.control,'phaseUseEnd'); + player.addTempSkills(result.control,'phaseUseEnd'); player.popup(result.control); - game.log(player,'获得了','#g【'+get.translation(result.control)+'】'); + // game.log(player,'获得了','#g【'+get.translation(result.control)+'】'); }, ai:{threaten:0.9}, subSkill:{ @@ -3407,13 +3407,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(list.length==result.cards.length){ target.draw(); player.getStat('skill').sanchen--; - if(get.mode()=='guozhan') player.addTempSkill('pozhu'); + if(get.mode()=='guozhan') player.addTempSkills('pozhu'); } } else{ target.draw(); player.getStat('skill').sanchen--; - if(get.mode()=='guozhan') player.addTempSkill('pozhu'); + if(get.mode()=='guozhan') player.addTempSkills('pozhu'); } }, ai:{ diff --git a/mode/boss.js b/mode/boss.js index e0291fcb0..21ccec660 100644 --- a/mode/boss.js +++ b/mode/boss.js @@ -8577,7 +8577,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(!player.hasSkill('olxuanfeng')) list.push('olxuanfeng'); if(!player.hasSkill('rewansha')) list.push('rewansha'); if(list.length==1){ - player.addTempSkill(list[0]); + player.addTempSkills(list[0]); event.finish(); } else{ @@ -8602,8 +8602,8 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }).set('prompt','选择获得一项技能直到回合结束'); } 'step 1' - player.addTempSkill(result.control); - player.popup(get.translation(result.control)); + player.addTempSkills(result.control); + // player.popup(get.translation(result.control)); }, ai:{ order:function(){ diff --git a/mode/guozhan.js b/mode/guozhan.js index 11f1ee0f5..e1ed83f10 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -11030,9 +11030,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ 'step 2' if(result.control!='cancel2'){ var skill='jiahe_'+result.control; - player.addTempSkill(skill); + player.addTempSkills(skill); if(!event.done) player.logSkill('jiahe_put'); - game.log(player,'获得了技能','【'+get.translation(skill)+'】'); + // game.log(player,'获得了技能','【'+get.translation(skill)+'】'); if(event.num>=5&&!event.done){ event.done=true; event.goto(1);