曹宇bugfix,神华佗技能效果调整,乐小乔卡牌标记名称修改
This commit is contained in:
parent
a8d5defaef
commit
dfb9bfeae0
|
@ -155,8 +155,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
'虎:当你使用指定唯一目标的牌对目标角色造成伤害时,此伤害+1。',
|
||||
'鹿:①当你获得此效果时,你回复1点体力并弃置判定区的所有牌。②你不能成为延时锦囊牌的目标。',
|
||||
'熊:每回合限一次,当你受到伤害时,此伤害-1。',
|
||||
'猿:出牌阶段开始时,你选择一名角色,随机获得其装备区里的一张牌。',
|
||||
'鹤:出牌阶段开始时,你摸三张牌。',
|
||||
'猿:当你获得此效果时,你选择一名其他角色,获得其装备区里的一张牌。',
|
||||
'鹤:当你获得此效果时,你摸三张牌。',
|
||||
],
|
||||
updateMark:function(player){
|
||||
var wuqinxi=player.storage.wuling_wuqinxi;
|
||||
|
@ -177,11 +177,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
game.broadcastAll(function(player,curMark){
|
||||
if(player.marks.wuling_wuqinxi) player.marks.wuling_wuqinxi.firstChild.innerHTML=curMark;
|
||||
},player,curMark);
|
||||
if(curMark=='鹿'){
|
||||
player.logSkill('wuling_wuqinxi');
|
||||
player.recover();
|
||||
player.discard(player.getCards('j')).discarder=player;
|
||||
}
|
||||
var next=game.createEvent('wuling_change');
|
||||
next.player=player;
|
||||
next.setContent('emptyEvent');
|
||||
},
|
||||
ai:{
|
||||
order:7,
|
||||
|
@ -214,7 +212,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
trigger:{
|
||||
source:'damageBegin1',
|
||||
player:['phaseZhunbeiBegin','damageBegin4','phaseUseBegin'],
|
||||
player:['phaseZhunbeiBegin','damageBegin4','wuling_change'],
|
||||
},
|
||||
filter:function(event,player,name){
|
||||
const wuqinxi=player.storage.wuling_wuqinxi&&player.storage.wuling_wuqinxi[0];
|
||||
|
@ -228,9 +226,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
case 'damageBegin4':
|
||||
return wuqinxi=='熊'&&!player.hasSkill('wuling_xiong');
|
||||
default:
|
||||
if(wuqinxi=='鹤') return true;
|
||||
if(wuqinxi!='猿') return false;
|
||||
return game.hasPlayer(target=>target.countGainableCards(player,'e'));
|
||||
switch(wuqinxi){
|
||||
case '鹿':
|
||||
return player.isDamaged()||player.countCards('j');
|
||||
case '鹤':
|
||||
return true;
|
||||
case '猿':
|
||||
return game.hasPlayer(target=>target!=playertarget.countGainableCards(player,'e'));
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
forced:true,
|
||||
|
@ -256,31 +262,38 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
event.finish();
|
||||
break;
|
||||
default:
|
||||
if(wuqinxi=='鹤'){
|
||||
player.draw(3);
|
||||
event.finish();
|
||||
}
|
||||
else{
|
||||
player.chooseTarget('五禽戏:获得一名角色装备区里的一张装备牌',function(card,player,target){
|
||||
return target.countGainableCards(player,'e');
|
||||
}).set('ai',function(target){
|
||||
var player=_status.event.player;
|
||||
var att=get.attitude(player,target),eff=0;
|
||||
target.getCards('e',function(card){
|
||||
var val=get.value(card,target);
|
||||
eff=Math.max(eff,-val*att);
|
||||
switch(wuqinxi){
|
||||
case '鹿':
|
||||
player.recover();
|
||||
player.discard(player.getCards('j')).discarder=player;
|
||||
event.finish();
|
||||
break;
|
||||
case '鹤':
|
||||
player.draw(3);
|
||||
event.finish();
|
||||
break;
|
||||
case '猿':
|
||||
player.chooseTarget('五禽戏:获得一名其他角色装备区里的一张装备牌',function(card,player,target){
|
||||
return target!=player&&target.countGainableCards(player,'e');
|
||||
}).set('ai',function(target){
|
||||
var player=_status.event.player;
|
||||
var att=get.attitude(player,target),eff=0;
|
||||
target.getCards('e',function(card){
|
||||
var val=get.value(card,target);
|
||||
eff=Math.max(eff,-val*att);
|
||||
});
|
||||
return eff;
|
||||
});
|
||||
return eff;
|
||||
});
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
'step 1'
|
||||
if(result.bool){
|
||||
var target=result.targets[0];
|
||||
player.line(target,'green');
|
||||
var cards=target.getGainableCards(player,'e');
|
||||
player.gain(cards.randomGets(1),target,'give');
|
||||
player.gainPlayerCard(target,'e',true);
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
@ -8049,8 +8062,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
'<br><li>虎:当你使用指定唯一目标的牌对目标角色造成伤害时,此伤害+1。'+
|
||||
'<br><li>鹿:①当你获得此效果时,你回复1点体力并弃置判定区的所有牌。②你不能成为延时锦囊牌的目标。'+
|
||||
'<br><li>熊:每回合限一次,当你受到伤害时,此伤害-1。'+
|
||||
'<br><li>猿:出牌阶段开始时,你选择一名角色,随机获得其装备区里的一张牌。'+
|
||||
'<br><li>鹤:出牌阶段开始时,你摸三张牌。',
|
||||
'<br><li>猿:当你获得此效果时,你选择一名其他角色,获得其装备区里的一张牌。'+
|
||||
'<br><li>鹤:当你获得此效果时,你摸三张牌。',
|
||||
youyi:'游医',
|
||||
youyi_info:'①弃牌阶段结束时,你可以将所有于此阶段弃置的牌置入仁区。②出牌阶段限一次。你可以将仁区的所有牌置入弃牌堆,令所有角色各回复1点体力。',
|
||||
|
||||
|
|
|
@ -11551,10 +11551,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
yue_xiaoqiao:'乐小乔',
|
||||
yue_xiaoqiao_prefix:'乐',
|
||||
dcqiqin:'绮琴',
|
||||
dcqiqin_tag:'乐',
|
||||
dcqiqin_info:'锁定技。①游戏开始时,你将所有手牌标记为“乐”。②你的“乐”牌不计入手牌上限。③准备阶段,你获得弃牌堆中所有你标记过的“乐”牌。',
|
||||
dcqiqin_tag:'琴',
|
||||
dcqiqin_info:'锁定技。①游戏开始时,你将所有手牌标记为“琴”。②你的“琴”牌不计入手牌上限。③准备阶段,你获得弃牌堆中所有你标记过的“琴”牌。',
|
||||
dcweiwan:'媦婉',
|
||||
dcweiwan_info:'出牌阶段限一次,你可以弃置一张“乐”并获得一名其他角色区域内花色与此牌不相同的牌各一张,若你获得了:一张牌,其失去1点体力;两张牌,本回合你对其使用牌无距离和次数限制;三张牌,本回合你不能对其使用牌。',
|
||||
dcweiwan_info:'出牌阶段限一次,你可以弃置一张“琴”并获得一名其他角色区域内花色与此牌不相同的牌各一张,若你获得了:一张牌,其失去1点体力;两张牌,本回合你对其使用牌无距离和次数限制;三张牌,本回合你不能对其使用牌。',
|
||||
|
||||
sp_baigei:'无双上将',
|
||||
sp_caizijiaren:'才子佳人',
|
||||
|
|
|
@ -727,7 +727,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var {result:{bool,targets}}=await player.chooseTarget(get.prompt2('olgongjie'),[1,num],lib.filter.notMe).set('ai',target=>get.attitude(_status.event.player,target));
|
||||
if(!bool) return;
|
||||
targets=targets.sortBySeat();
|
||||
player.logSkill('gongjie',targets);
|
||||
player.logSkill('olgongjie',targets);
|
||||
for(var target of targets){
|
||||
var {result:{bool,cards}}=await target.gainPlayerCard(player,true,'he');
|
||||
if(bool) draws.add(get.suit(cards[0],player));
|
||||
|
@ -788,6 +788,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return player.countCards('he');
|
||||
},
|
||||
direct:true,
|
||||
limited:true,
|
||||
skillAnimation:true,
|
||||
animationColor:'water',
|
||||
async content(event,trigger,player){
|
||||
var target=_status.currentPhase,num=player.countCards('he');
|
||||
var {result:{bool,cards}}=await player.chooseToGive(get.prompt2('olxiangzuo',target),[1,num],'he').set('ai',card=>{
|
||||
|
|
Loading…
Reference in New Issue