2021-06-10 15:27:23 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
game.import('character',function(lib,game,ui,get,ai,_status){
|
|
|
|
|
return {
|
|
|
|
|
name:'yingbian',
|
|
|
|
|
connect:true,
|
|
|
|
|
character:{
|
2023-11-06 22:33:38 +00:00
|
|
|
|
chengjichengcui:['male','jin',6,['oltousui','olchuming']],
|
2022-08-09 15:21:53 +00:00
|
|
|
|
wangxiang:['male','jin',3,['bingxin']],
|
2022-06-21 05:00:44 +00:00
|
|
|
|
jin_jiachong:['male','jin',3,['xiongshu','jianhui']],
|
2022-02-06 18:13:56 +00:00
|
|
|
|
xuangongzhu:['female','jin',3,['gaoling','qimei','ybzhuiji'],['hiddenSkill']],
|
|
|
|
|
xinchang:['male','jin',3,['canmou','congjian']],
|
2022-07-25 14:24:03 +00:00
|
|
|
|
yangzhi:['female','jin',3,['xinwanyi','maihuo']],
|
|
|
|
|
yangyan:['female','jin',3,['xinxuanbei','xianwan']],
|
2021-08-18 13:42:06 +00:00
|
|
|
|
ol_huaxin:['male','wei',3,['caozhao','olxibing']],
|
2023-07-27 21:43:02 +00:00
|
|
|
|
zhongyan:['female','jin',3,['bolan','yifa'],['clan:颍川钟氏']],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
weiguan:['male','jin',3,['zhongyun','shenpin']],
|
|
|
|
|
cheliji:['male','qun',4,['chexuan','qiangshou']],
|
2021-11-07 05:45:48 +00:00
|
|
|
|
simazhou:['male','jin',4,['recaiwang','naxiang']],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
ol_lisu:['male','qun',3,['qiaoyan','xianzhu']],
|
|
|
|
|
jin_yanghuiyu:['female','jin',3,['huirong','ciwei','caiyuan'],['hiddenSkill']],
|
|
|
|
|
shibao:['male','jin',4,['zhuosheng']],
|
|
|
|
|
jin_zhangchunhua:['female','jin',3,['huishi','qingleng','xuanmu'],['hiddenSkill']],
|
2021-12-09 13:57:51 +00:00
|
|
|
|
jin_simayi:['male','jin',3,['buchen','smyyingshi','xiongzhi','xinquanbian'],['hiddenSkill']],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
jin_wangyuanji:['female','jin',3,['shiren','yanxi'],['hiddenSkill']],
|
2021-11-01 14:32:23 +00:00
|
|
|
|
jin_simazhao:['male','jin',3,['tuishi','xinchoufa','zhaoran','chengwu'],['zhu','hiddenSkill']],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
jin_xiahouhui:['female','jin',3,['baoqie','jyishi','shiduo'],['hiddenSkill']],
|
|
|
|
|
jin_simashi:['male','jin','3/4',['taoyin','yimie','ruilve','tairan'],['hiddenSkill','zhu']],
|
|
|
|
|
zhanghuyuechen:['male','jin',4,['xijue']],
|
|
|
|
|
duyu:['male','jin',4,['sanchen','zhaotao']],
|
|
|
|
|
},
|
|
|
|
|
characterSort:{
|
|
|
|
|
yingbian:{
|
2021-08-18 13:42:06 +00:00
|
|
|
|
yingbian_pack1:['jin_simayi','jin_zhangchunhua','ol_lisu','simazhou','cheliji','ol_huaxin'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
yingbian_pack2:['jin_simashi','jin_xiahouhui','zhanghuyuechen','shibao','jin_yanghuiyu'],
|
2022-07-06 13:38:15 +00:00
|
|
|
|
yingbian_pack3:['jin_simazhao','jin_wangyuanji','duyu','weiguan','xuangongzhu'],
|
2022-12-04 16:16:32 +00:00
|
|
|
|
yingbian_pack4:['zhongyan','xinchang','jin_jiachong','wangxiang'],
|
2021-11-23 04:58:31 +00:00
|
|
|
|
yingbian_pack5:['yangyan','yangzhi'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
skill:{
|
2023-11-06 22:33:38 +00:00
|
|
|
|
//二成
|
|
|
|
|
oltousui:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'chooseToUse',
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
return player.countCards('he');
|
|
|
|
|
},
|
|
|
|
|
viewAs:{
|
|
|
|
|
name:'sha',
|
|
|
|
|
suit:'none',
|
|
|
|
|
number:null,
|
|
|
|
|
isCard:true,
|
|
|
|
|
},
|
|
|
|
|
filterCard:true,
|
|
|
|
|
selectCard:[1,Infinity],
|
|
|
|
|
position:'he',
|
|
|
|
|
check:function(card){
|
|
|
|
|
const player=get.player();
|
|
|
|
|
return 4.5+(player.hasSkill('olchuming')?1:0)-1.5*ui.selected.cards.length-get.value(card);
|
|
|
|
|
},
|
|
|
|
|
popname:true,
|
|
|
|
|
ignoreMod:true,
|
|
|
|
|
precontent:function*(event,map){
|
|
|
|
|
var player=map.player;
|
|
|
|
|
var evt=event.getParent();
|
|
|
|
|
if(evt.dialog&&typeof evt.dialog=='object') evt.dialog.close();
|
|
|
|
|
player.logSkill('oltousui');
|
|
|
|
|
delete event.result.skill;
|
|
|
|
|
var cards=event.result.cards;
|
|
|
|
|
player.loseToDiscardpile(cards,ui.cardPile,false,'blank').log=false;
|
|
|
|
|
var shownCards=cards.filter(i=>get.position(i)=='e'),handcardsLength=cards.length-shownCards.length;
|
|
|
|
|
if(shownCards.length){
|
|
|
|
|
player.$throw(shownCards,null);
|
|
|
|
|
game.log(player,'将',shownCards,'置于了牌堆底');
|
|
|
|
|
}
|
|
|
|
|
if(handcardsLength>0){
|
|
|
|
|
player.$throw(handcardsLength,null);
|
|
|
|
|
game.log(player,'将',get.cnNumber(handcardsLength),'张牌置于了牌堆底');
|
|
|
|
|
}
|
|
|
|
|
game.delayex();
|
|
|
|
|
var viewAs=new lib.element.VCard({name:event.result.card.name,isCard:true});
|
|
|
|
|
event.result.card=viewAs;
|
|
|
|
|
event.result.cards=[];
|
|
|
|
|
event.result._apply_args={
|
|
|
|
|
shanReq:cards.length,
|
|
|
|
|
oncard:()=>{
|
|
|
|
|
var evt=get.event();
|
2023-11-09 22:40:06 +00:00
|
|
|
|
for(var target of game.filterPlayer(null,null,true)){
|
2023-11-06 22:33:38 +00:00
|
|
|
|
var id=target.playerid;
|
|
|
|
|
var map=evt.customArgs;
|
|
|
|
|
if(!map[id]) map[id]={};
|
|
|
|
|
map[id].shanRequired=evt.shanReq;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:function(item,player){
|
|
|
|
|
return get.order({name:'sha'})+0.1;
|
|
|
|
|
},
|
|
|
|
|
result:{player:1},
|
|
|
|
|
keepdu:true,
|
|
|
|
|
respondSha:true,
|
|
|
|
|
skillTagFilter:(player,tag,arg)=>{
|
|
|
|
|
if(tag=='respondSha'&&arg!='use') return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
olchuming:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{
|
|
|
|
|
source:'damageBegin1',
|
|
|
|
|
player:'damageBegin3',
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.source!=event.player;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function*(event,map){
|
|
|
|
|
var player=map.player,trigger=map.trigger;
|
|
|
|
|
if(!trigger.card||!trigger.cards.length){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var target=trigger[trigger.source==player?'player':'source'];
|
|
|
|
|
trigger._olchuming=true;
|
|
|
|
|
target.addTempSkill('olchuming_effect');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
player:function(card,player,target){
|
|
|
|
|
if(!get.tag(card,'damage')) return;
|
|
|
|
|
if(!lib.card[card.name]||!card.cards||!card.cards.length) return [1,0,1,-1];
|
|
|
|
|
return [1,-1];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
subSkill:{
|
|
|
|
|
effect:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
trigger:{global:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function*(event,map){
|
|
|
|
|
var player=map.player;
|
|
|
|
|
var mapx={};
|
|
|
|
|
var history=player.getHistory('damage').concat(player.getHistory('sourceDamage'));
|
|
|
|
|
history.forEach(evt=>{
|
|
|
|
|
if(!evt._olchuming) return;
|
|
|
|
|
var target=evt[evt.source==player?'player':'source'];
|
|
|
|
|
if(!target.isIn()) return;
|
2023-11-08 11:36:16 +00:00
|
|
|
|
var cards=evt.cards.filterInD('d');
|
|
|
|
|
if(!cards.length) return;
|
2023-11-06 22:33:38 +00:00
|
|
|
|
if(!mapx[target.playerid]) mapx[target.playerid]=[];
|
2023-11-08 11:36:16 +00:00
|
|
|
|
mapx[target.playerid].addArray(cards);
|
2023-11-06 22:33:38 +00:00
|
|
|
|
});
|
|
|
|
|
var entries=Object.entries(mapx).map(entry=>{
|
|
|
|
|
return [(_status.connectMode?lib.playerOL:game.playerMap)[entry[0]],entry[1]];
|
|
|
|
|
});
|
|
|
|
|
if(!entries.length){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
player.logSkill('olchuming_effect',entries.map(i=>i[0]));
|
|
|
|
|
entries.sort((a,b)=>lib.sort.seat(a[0],b[0]));
|
|
|
|
|
for(var entry of entries){
|
|
|
|
|
var current=entry[0],cards=entry[1];
|
|
|
|
|
var list=['jiedao','guohe'].filter(i=>player.canUse(new lib.element.VCard({name:i,cards:cards}),current,false));
|
|
|
|
|
if(!list.length) return;
|
|
|
|
|
var result=({});
|
|
|
|
|
if(list.length==1) result={bool:true,links:[['','',list[0]]]};
|
|
|
|
|
else result=yield player.chooseButton([`畜鸣:请选择要对${get.translation(current)}使用的牌`,[list,'vcard']],true).set('ai',button=>{
|
|
|
|
|
var player=get.player();
|
|
|
|
|
return get.effect(get.event('currentTarget'),{name:button.link[2]},player,player);
|
|
|
|
|
}).set('currentTarget',current);
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var card=get.autoViewAs({name:result.links[0][2]},cards);
|
|
|
|
|
if(player.canUse(card,current,false)) player.useCard(card,cards,current,false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-08-09 15:21:53 +00:00
|
|
|
|
bingxin:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'chooseToUse',
|
|
|
|
|
hiddenCard:function(player,name){
|
|
|
|
|
if(get.type(name)=='basic'&&lib.inpile.contains(name)&&!player.getStorage('bingxin_count').contains(name)) return true;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.type=='wuxie') return false;
|
|
|
|
|
var hs=player.getCards('h');
|
|
|
|
|
if(hs.length!=Math.max(0,player.hp)) return false;
|
|
|
|
|
if(hs.length>1){
|
|
|
|
|
var color=get.color(hs[0],player);
|
|
|
|
|
for(var i=1;i<hs.length;i++){
|
|
|
|
|
if(get.color(hs[i],player)!=color) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var storage=player.storage.bingxin_count
|
|
|
|
|
for(var i of lib.inpile){
|
|
|
|
|
if(get.type(i)!='basic') continue;
|
|
|
|
|
if(storage&&storage.contains(i)) continue;
|
|
|
|
|
var card={name:i,isCard:true};
|
|
|
|
|
if(event.filterCard(card,player,event)) return true;
|
|
|
|
|
if(i=='sha'){
|
|
|
|
|
for(var j of lib.inpile_nature){
|
|
|
|
|
card.nature=j;
|
|
|
|
|
if(event.filterCard(card,player,event)) return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
chooseButton:{
|
|
|
|
|
dialog:function(event,player){
|
|
|
|
|
var list=[];
|
|
|
|
|
var storage=player.storage.bingxin_count;
|
|
|
|
|
for(var i of lib.inpile){
|
|
|
|
|
if(get.type(i)!='basic') continue;
|
|
|
|
|
if(storage&&storage.contains(i)) continue;
|
|
|
|
|
var card={name:i,isCard:true};
|
|
|
|
|
if(event.filterCard(card,player,event)) list.push(['基本','',i]);
|
|
|
|
|
if(i=='sha'){
|
|
|
|
|
for(var j of lib.inpile_nature){
|
|
|
|
|
card.nature=j;
|
|
|
|
|
if(event.filterCard(card,player,event)) list.push(['基本','',i,j]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ui.create.dialog('冰心',[list,'vcard'],'hidden')
|
|
|
|
|
},
|
|
|
|
|
check:function(button){
|
|
|
|
|
if(button.link[2]=='shan') return 3;
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
if(button.link[2]=='jiu'){
|
|
|
|
|
if(player.getUseValue({name:'jiu'})<=0) return 0;
|
|
|
|
|
if(player.countCards('h','sha')) return player.getUseValue({name:'jiu'});
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
return player.getUseValue({name:button.link[2],nature:button.link[3]})/4;
|
|
|
|
|
},
|
|
|
|
|
backup:function(links,player){
|
|
|
|
|
return {
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
filterCard:()=>false,
|
|
|
|
|
viewAs:{
|
|
|
|
|
name:links[0][2],
|
|
|
|
|
nature:links[0][3],
|
|
|
|
|
isCard:true,
|
|
|
|
|
},
|
|
|
|
|
precontent:function(){
|
|
|
|
|
player.logSkill('bingxin');
|
|
|
|
|
player.draw();
|
|
|
|
|
delete event.result.skill;
|
|
|
|
|
var name=event.result.card.name;
|
|
|
|
|
player.addTempSkill('bingxin_count');
|
|
|
|
|
player.markAuto('bingxin_count',[name]);
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
prompt:function(links,player){
|
|
|
|
|
var name=links[0][2];
|
|
|
|
|
var nature=links[0][3];
|
|
|
|
|
return '摸一张并视为使用'+(get.translation(nature)||'')+get.translation(name);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:function(item,player){
|
|
|
|
|
return 10;
|
|
|
|
|
},
|
|
|
|
|
respondShan:true,
|
|
|
|
|
respondSha:true,
|
|
|
|
|
skillTagFilter:function(player,tag){
|
|
|
|
|
var hs=player.getCards('h');
|
|
|
|
|
if(hs.length!=Math.max(0,hs.length)) return false;
|
|
|
|
|
if(hs.length>1){
|
|
|
|
|
var color=get.color(hs[0],player);
|
|
|
|
|
for(var i=1;i<hs.length;i++){
|
|
|
|
|
if(get.color(hs[i],player)!=color) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var storage=player.storage.bingxin_count;
|
|
|
|
|
if(storage&&storage.contains('s'+tag.slice(8))) return false;
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(_status.event.dying) return get.attitude(player,_status.event.dying);
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
subSkill:{count:{charlotte:true,onremove:true}},
|
|
|
|
|
},
|
2022-07-25 14:24:03 +00:00
|
|
|
|
zhefu:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:['useCard','respond']},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
2023-05-13 14:57:29 +00:00
|
|
|
|
return player!=_status.currentPhase&&game.hasPlayer(function(current){
|
2022-07-25 14:24:03 +00:00
|
|
|
|
return current!=player&¤t.countCards('h')>0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget(get.prompt('zhefu'),'令一名有手牌的其他角色弃置一张【'+get.translation(trigger.card.name)+'】,否则受到你造成的1点伤害。',function(card,player,target){
|
2022-12-22 03:19:22 +00:00
|
|
|
|
return target!=player&&target.countCards('h')>0;
|
2022-07-25 14:24:03 +00:00
|
|
|
|
}).set('ai',function(target){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
return get.damageEffect(target,player,player)/Math.sqrt(target.countCards('h'));
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
event.target=target;
|
|
|
|
|
player.logSkill('zhefu',target);
|
|
|
|
|
var name=trigger.card.name;
|
2023-05-13 14:57:29 +00:00
|
|
|
|
target.chooseToDiscard('he',{name:name},'弃置一张【'+get.translation(name)+'】或受到1点伤害').set('ai',function(card){
|
2022-07-25 14:24:03 +00:00
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
if(_status.event.take||(get.name(card)=='tao'&&!player.hasJudge('lebu'))) return 0;
|
|
|
|
|
return 8-get.value(card);
|
|
|
|
|
}).set('take',get.damageEffect(target,player,target)>=0);
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
if(!result.bool) target.damage();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yidu:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'useCardAfter'},
|
|
|
|
|
filter:function(event,player){
|
2023-05-13 14:57:29 +00:00
|
|
|
|
return (event.card.name=='sha'||(get.type(event.card,null,false)=='trick'&&get.tag(event.card,'damage')>0))
|
|
|
|
|
&&event.targets.some(target=>{
|
|
|
|
|
return target.countCards('h')>0&&!target.hasHistory('damage',function(evt){
|
|
|
|
|
return evt.card==event.card;
|
|
|
|
|
});
|
2022-07-25 14:24:03 +00:00
|
|
|
|
});
|
|
|
|
|
},
|
2023-05-13 14:57:29 +00:00
|
|
|
|
direct:true,
|
2022-07-25 14:24:03 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2023-05-13 14:57:29 +00:00
|
|
|
|
player.chooseTarget(get.prompt2('yidu'),(card,player,target)=>{
|
|
|
|
|
return _status.event.targets.contains(target);
|
|
|
|
|
}).set('targets',trigger.targets.filter(target=>{
|
|
|
|
|
return target.countCards('h')>0&&!target.hasHistory('damage',function(evt){
|
|
|
|
|
return evt.card==trigger.card;
|
|
|
|
|
});
|
|
|
|
|
})).set('ai',target=>{
|
|
|
|
|
if(target.hasSkillTag('noh')) return 0;
|
|
|
|
|
return -get.attitude(player,target);
|
2022-07-25 14:24:03 +00:00
|
|
|
|
});
|
|
|
|
|
'step 1'
|
2023-05-13 14:57:29 +00:00
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
event.target=target;
|
|
|
|
|
player.logSkill('yidu',target);
|
|
|
|
|
player.choosePlayerCard(target,'遗毒:展示'+get.translation(target)+'的至多三张手牌',true,'h',[1,Math.min(3,target.countCards('h'))]).set('forceAuto',true).set('ai',function(button){
|
|
|
|
|
if(ui.selected.buttons.length) return 0;
|
|
|
|
|
return 1+Math.random();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
2022-07-25 14:24:03 +00:00
|
|
|
|
var cards=result.cards;
|
|
|
|
|
player.showCards(cards,get.translation(player)+'对'+get.translation(target)+'发动了【遗毒】');
|
|
|
|
|
var color=get.color(cards[0],target);
|
|
|
|
|
var bool=true;
|
|
|
|
|
for(var i=1;i<cards.length;i++){
|
|
|
|
|
if(get.color(cards[i],target)!=color){
|
|
|
|
|
bool=false;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-13 14:57:29 +00:00
|
|
|
|
if(bool) target.discard(cards,'notBySelf').discarder=player;
|
2022-07-25 14:24:03 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xinwanyi:{
|
|
|
|
|
audio:'wanyi',
|
|
|
|
|
trigger:{player:'useCardToTargeted'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player!=event.target&&event.targets.length==1&&(event.card.name=='sha'||get.type(event.card,false)=='trick')&&event.target.countCards('he')>0;
|
|
|
|
|
},
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
locked:false,
|
2022-07-25 14:24:03 +00:00
|
|
|
|
logTarget:'target',
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.effect(event.target,{name:'guohe_copy2'},player,player)>0;
|
|
|
|
|
},
|
|
|
|
|
prompt2:'将该角色的一张牌置于武将牌上作为“嫕”',
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.target=trigger.target;
|
|
|
|
|
player.choosePlayerCard(event.target,true,'he');
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var cards=result.cards;
|
|
|
|
|
player.addToExpansion(cards,target,'give').gaintag.add('xinwanyi');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
cardEnabled:function(card,player){
|
|
|
|
|
var cards=player.getExpansions('xinwanyi');
|
|
|
|
|
if(cards.length){
|
|
|
|
|
var suit=get.suit(card);
|
|
|
|
|
if(suit=='none') return;
|
|
|
|
|
for(var i of cards){
|
|
|
|
|
if(get.suit(i,player)==suit) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cardRespondable:function(card,player){
|
|
|
|
|
var cards=player.getExpansions('xinwanyi');
|
|
|
|
|
if(cards.length){
|
|
|
|
|
var suit=get.suit(card);
|
|
|
|
|
if(suit=='none') return;
|
|
|
|
|
for(var i of cards){
|
|
|
|
|
if(get.suit(i,player)==suit) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cardSavable:function(card,player){
|
|
|
|
|
var cards=player.getExpansions('xinwanyi');
|
|
|
|
|
if(cards.length){
|
|
|
|
|
var suit=get.suit(card);
|
|
|
|
|
if(suit=='none') return;
|
|
|
|
|
for(var i of cards){
|
|
|
|
|
if(get.suit(i,player)==suit) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cardDiscardable:function(card,player){
|
|
|
|
|
var cards=player.getExpansions('xinwanyi');
|
|
|
|
|
if(cards.length){
|
|
|
|
|
var suit=get.suit(card);
|
|
|
|
|
if(suit=='none') return;
|
|
|
|
|
for(var i of cards){
|
|
|
|
|
if(get.suit(i,player)==suit) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
marktext:'嫕',
|
|
|
|
|
intro:{
|
|
|
|
|
markcount:'expansion',
|
|
|
|
|
content:'expansion',
|
|
|
|
|
},
|
|
|
|
|
onremove:function(player,skill){
|
|
|
|
|
var cards=player.getExpansions(skill);
|
|
|
|
|
if(cards.length) player.loseToDiscardpile(cards);
|
|
|
|
|
},
|
|
|
|
|
group:'xinwanyi_give',
|
|
|
|
|
subSkill:{
|
|
|
|
|
give:{
|
|
|
|
|
audio:'wanyi',
|
|
|
|
|
trigger:{player:['phaseJieshuBegin','damageEnd']},
|
|
|
|
|
forced:true,
|
|
|
|
|
locked:false,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.getExpansions('xinwanyi').length>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget(true,'婉嫕:令一名角色获得一张“嫕”').set('ai',function(target){
|
|
|
|
|
return get.attitude(_status.event.player,target);
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
event.target=target;
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
var cards=player.getExpansions('xinwanyi');
|
|
|
|
|
if(cards.length==1) event._result={bool:true,links:cards};
|
|
|
|
|
else player.chooseButton(['令'+get.translation(target)+'获得一张“嫕”',cards],true);
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
target.gain(result.links,player,'give');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xinxuanbei:{
|
|
|
|
|
audio:'xuanbei',
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return game.hasPlayer((current)=>lib.skill.xinxuanbei.filterTarget(null,player,current));
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.countCards('hej')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.choosePlayerCard(target,'hej',true);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var card=result.cards[0];
|
|
|
|
|
var cardx=get.autoViewAs({name:'sha'},[card]);
|
|
|
|
|
if((get.position(card)!='j'&&!game.checkMod(card,target,'unchanged','cardEnabled2',target))||!target.canUse(cardx,player,false)) event.finish();
|
|
|
|
|
else{
|
|
|
|
|
var next=target.useCard(cardx,[card],player,false);
|
|
|
|
|
event.card=next.card;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
var num=1;
|
|
|
|
|
if(player.hasHistory('damage',function(evt){
|
|
|
|
|
return evt.card==event.card;
|
|
|
|
|
})) num++;
|
|
|
|
|
player.draw(num);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:7,
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player,target){
|
|
|
|
|
return get.effect(target,{name:'guohe_copy'},player,player)+get.effect(player,{name:'sha'},target,player)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-06-21 05:00:44 +00:00
|
|
|
|
xiongshu:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:'phaseUseBegin'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
2022-12-22 03:19:22 +00:00
|
|
|
|
return player!=event.player&&event.player.countCards('h')>0&&player.countCards('he')>=player.countMark('xiongshu_count');
|
2022-06-21 05:00:44 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.target=trigger.player;
|
2022-07-06 13:38:15 +00:00
|
|
|
|
var num=player.countMark('xiongshu_count');
|
2022-12-22 03:19:22 +00:00
|
|
|
|
if(num>0) player.chooseToDiscard('he',num,get.prompt('xiongshu',trigger.player),'弃置'+get.cnNumber(num)+'张牌并展示其一张手牌').set('goon',get.attitude(player,event.target)<0).set('ai',function(card){
|
2022-06-21 05:00:44 +00:00
|
|
|
|
if(!_status.event.goon) return 0;
|
|
|
|
|
return 6-_status.event.player.countMark('xiongshu_count')-get.value(card);
|
|
|
|
|
}).logSkill=['xiongshu',trigger.player];
|
2022-07-06 13:38:15 +00:00
|
|
|
|
else player.chooseBool(get.prompt('xiongshu',trigger.player),'展示其一张牌').set('goon',get.attitude(player,event.target)<0).set('ai',function(card){
|
|
|
|
|
return _status.event.goon;
|
|
|
|
|
})
|
2022-06-21 05:00:44 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
2022-07-25 14:24:03 +00:00
|
|
|
|
if(!result.cards||!result.cards.length) player.logSkill('xiongshu',target);
|
2022-06-21 05:00:44 +00:00
|
|
|
|
player.addTempSkill('xiongshu_count','roundStart');
|
|
|
|
|
player.addMark('xiongshu_count',1,false);
|
|
|
|
|
}
|
2022-12-22 03:19:22 +00:00
|
|
|
|
if(result.bool&&target.countCards('h')>0){
|
|
|
|
|
player.choosePlayerCard(target,true,'h');
|
2022-06-21 05:00:44 +00:00
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
var card=result.cards[0],name=get.name(card),str=get.translation(target);
|
|
|
|
|
player.showCards(card,get.translation(player)+'对'+str+'发动了【凶竖】');
|
|
|
|
|
player.addTempSkill('xiongshu_effect','phaseUseAfter');
|
|
|
|
|
player.storage.xiongshu_effect=[card,name];
|
|
|
|
|
if(Math.random()<0.5){
|
|
|
|
|
target.storage.xiongshu_ai=name;
|
|
|
|
|
target.addTempSkill('xiongshu_ai','phaseUseAfter');
|
|
|
|
|
}
|
|
|
|
|
player.chooseControl('会使用','不会使用').set('prompt','预测:'+str+'是否会使用'+get.translation(name)+'?').set('choice',function(){
|
|
|
|
|
if(!target.hasValueTarget(card)) return 1;
|
|
|
|
|
return Math.random()<0.5?0:1;
|
|
|
|
|
}()).set('ai',()=>_status.event.choice);
|
|
|
|
|
'step 3'
|
|
|
|
|
player.storage.xiongshu_effect[2]=(result.index==0);
|
|
|
|
|
},
|
|
|
|
|
ai:{expose:0.35},
|
|
|
|
|
subSkill:{
|
|
|
|
|
ai:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
player:function(card,player,target){
|
|
|
|
|
if(card.name==player.storage.xiongshu_ai) return 'zeroplayertarget';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
count:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
},
|
|
|
|
|
effect:{
|
|
|
|
|
trigger:{global:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var info=player.storage.xiongshu_effect;
|
|
|
|
|
return Array.isArray(info)&&event.player.isIn();
|
|
|
|
|
},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
content:function(){
|
|
|
|
|
var target=trigger.player;
|
|
|
|
|
var info=player.storage.xiongshu_effect;
|
2022-07-06 13:38:15 +00:00
|
|
|
|
var card=info[0];
|
2022-06-21 05:00:44 +00:00
|
|
|
|
if(target.hasHistory('useCard',function(evt){
|
|
|
|
|
return evt.card.name==info[1]&&evt.getParent('phaseUse')==trigger;
|
|
|
|
|
})==info[2]) target.damage();
|
2022-07-25 14:24:03 +00:00
|
|
|
|
else{
|
|
|
|
|
if(target.getCards('hej').contains(card)) player.gain(card,target,'give');
|
|
|
|
|
else if(get.position(card,true)=='d') player.gain(card,'gain2');
|
|
|
|
|
}
|
2022-06-21 05:00:44 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
jianhui:{
|
|
|
|
|
audio:2,
|
|
|
|
|
getLastPlayer:function(evt,player){
|
|
|
|
|
var history=player.getAllHistory('damage');
|
|
|
|
|
if(!history.length) return null;
|
|
|
|
|
var i=history.indexOf(evt);
|
|
|
|
|
if(i==-1) i=history.length-1;
|
|
|
|
|
else i--;
|
|
|
|
|
for(i;i>=0;i--){
|
|
|
|
|
if(history[i].source) return history[i].source;
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.source&&event.source.isIn()&&event.source==lib.skill.jianhui.getLastPlayer(event,player)&&event.source.countCards('he')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.source.chooseToDiscard('he',true);
|
|
|
|
|
},
|
|
|
|
|
group:'jianhui_draw',
|
|
|
|
|
subSkill:{
|
|
|
|
|
draw:{
|
|
|
|
|
trigger:{source:'damageSource'},
|
|
|
|
|
forced:true,
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.player==lib.skill.jianhui.getLastPlayer(event,player);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-05-30 10:35:29 +00:00
|
|
|
|
huaiyuan:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{
|
|
|
|
|
player:'loseAfter',
|
|
|
|
|
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var evt=event.getl(player);
|
|
|
|
|
if(!evt||!evt.hs||!evt.hs.length) return false;
|
|
|
|
|
if(event.name=='lose'){
|
|
|
|
|
for(var i in event.gaintag_map){
|
|
|
|
|
if(event.gaintag_map[i].contains('huaiyuanx')) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return player.hasHistory('lose',function(evt){
|
|
|
|
|
if(event!=evt.getParent()) return false;
|
|
|
|
|
for(var i in evt.gaintag_map){
|
|
|
|
|
if(evt.gaintag_map[i].contains('huaiyuanx')) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
locked:false,
|
2022-05-30 10:35:29 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var num=0;
|
|
|
|
|
if(trigger.name=='lose'){
|
|
|
|
|
for(var i in trigger.gaintag_map){
|
|
|
|
|
if(trigger.gaintag_map[i].contains('huaiyuanx')) num++;
|
2023-11-06 18:07:27 +00:00
|
|
|
|
}
|
2022-05-30 10:35:29 +00:00
|
|
|
|
}
|
|
|
|
|
else player.getHistory('lose',function(evt){
|
|
|
|
|
if(trigger!=evt.getParent()) return false;
|
|
|
|
|
for(var i in evt.gaintag_map){
|
|
|
|
|
if(evt.gaintag_map[i].contains('huaiyuanx')) num++;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
event.count=num;
|
|
|
|
|
'step 1'
|
|
|
|
|
event.count--;
|
|
|
|
|
player.chooseTarget(true,'请选择【怀远】的目标','令一名角色执行一项:⒈其的手牌上限+1。⒉其的攻击范围+1。⒊其摸一张牌。').set('ai',function(target){
|
|
|
|
|
var player=_status.event.player,att=get.attitude(player,target);
|
|
|
|
|
if(att<=0) return 0;
|
|
|
|
|
if(target.hasValueTarget({name:'sha'},false)&&!target.hasValueTarget({name:'sha'})) att*=2.2;
|
|
|
|
|
if(target.needsToDiscard()) att*=1.3;
|
|
|
|
|
return att*Math.sqrt(Math.max(1,4-target.countCards('h')));
|
|
|
|
|
});
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
event.target=target;
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
var str=get.translation(target)
|
|
|
|
|
player.chooseControl().set('choiceList',[
|
|
|
|
|
'令'+str+'的手牌上限+1',
|
|
|
|
|
'令'+str+'的攻击范围+1',
|
|
|
|
|
'令'+str+'摸一张牌',
|
|
|
|
|
]).set('ai',function(){
|
|
|
|
|
var player=_status.event.player,target=_status.event.getParent().target;if(target.hasValueTarget({name:'sha'},false)&&!target.hasValueTarget({name:'sha'})) return 1;
|
|
|
|
|
if(target.needsToDiscard()) return 0;
|
|
|
|
|
return 2;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 3'
|
|
|
|
|
if(result.index==2) target.draw();
|
|
|
|
|
else{
|
|
|
|
|
target.addSkill('huaiyuan_effect'+result.index);
|
|
|
|
|
target.addMark('huaiyuan_effect'+result.index,1,false);
|
|
|
|
|
game.log(target,'的','#g'+['手牌上限','攻击范围'][result.index],'+1')
|
|
|
|
|
game.delayx();
|
|
|
|
|
}
|
|
|
|
|
if(event.count>0) event.goto(1);
|
|
|
|
|
},
|
|
|
|
|
group:['huaiyuan_init','huaiyuan_die'],
|
|
|
|
|
subSkill:{
|
|
|
|
|
init:{
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
audio:'huaiyuan',
|
2022-05-30 10:35:29 +00:00
|
|
|
|
trigger:{
|
|
|
|
|
global:'phaseBefore',
|
|
|
|
|
player:'enterGame',
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
locked:false,
|
|
|
|
|
filter:function(event,player){
|
2023-11-06 18:07:27 +00:00
|
|
|
|
return (event.name!='phase'||game.phaseNumber==0)&&player.countCards('h')>0;
|
2022-05-30 10:35:29 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var hs=player.getCards('h');
|
|
|
|
|
if(hs.length) player.addGaintag(hs,'huaiyuanx');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
die:{
|
|
|
|
|
trigger:{player:'die'},
|
|
|
|
|
direct:true,
|
|
|
|
|
forceDie:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'water',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hasMark('huaiyuan_effect0')||player.hasMark('huaiyuan_effect1');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var str='令一名其他角色',num1=player.countMark('huaiyuan_effect0'),num2=player.countMark('huaiyuan_effect1');
|
|
|
|
|
if(num1>0){
|
|
|
|
|
str+='手牌上限+';
|
|
|
|
|
str+=num1;
|
|
|
|
|
if(num2>0) str+='且';
|
|
|
|
|
}
|
|
|
|
|
if(num2>0){
|
|
|
|
|
str+='攻击范围+';
|
|
|
|
|
str+=num2;
|
|
|
|
|
}
|
|
|
|
|
player.chooseTarget(lib.filter.notMe,get.prompt('huaiyuan'),str).set('forceDie',true).set('ai',function(target){
|
|
|
|
|
return get.attitude(_status.event.player,target)+114514;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('huaiyuan_die',target);
|
|
|
|
|
var num1=player.countMark('huaiyuan_effect0'),num2=player.countMark('huaiyuan_effect1');
|
|
|
|
|
if(num1>0){
|
|
|
|
|
target.addSkill('huaiyuan_effect0');
|
|
|
|
|
target.addMark('huaiyuan_effect0',num1,false);
|
|
|
|
|
}
|
|
|
|
|
if(num2>0){
|
|
|
|
|
target.addSkill('huaiyuan_effect1');
|
2022-07-25 14:24:03 +00:00
|
|
|
|
target.addMark('huaiyuan_effect1',num2,false);
|
2022-05-30 10:35:29 +00:00
|
|
|
|
}
|
|
|
|
|
game.delayx();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
effect0:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
|
|
|
|
return num+player.countMark('huaiyuan_effect0');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
marktext:'怀',
|
|
|
|
|
intro:{content:'手牌上限+#'},
|
|
|
|
|
},
|
|
|
|
|
effect1:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
mod:{
|
|
|
|
|
attackRange:function(player,num){
|
|
|
|
|
return num+player.countMark('huaiyuan_effect1');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
marktext:'远',
|
|
|
|
|
intro:{content:'攻击范围+#'},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
chongxin:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
2022-07-25 14:24:03 +00:00
|
|
|
|
return player.countCards('he')>0&&game.hasPlayer(function(current){
|
2022-05-30 10:35:29 +00:00
|
|
|
|
return current!=player&¤t.countCards('h')>0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterCard:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.countCards('h')>0;
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 6-get.value(card);
|
|
|
|
|
},
|
|
|
|
|
discard:false,
|
|
|
|
|
lose:false,
|
|
|
|
|
delay:false,
|
2022-07-25 14:24:03 +00:00
|
|
|
|
position:'he',
|
2022-05-30 10:35:29 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2023-08-19 16:40:34 +00:00
|
|
|
|
player.recast(cards);
|
2022-05-30 10:35:29 +00:00
|
|
|
|
'step 1'
|
2022-07-25 14:24:03 +00:00
|
|
|
|
if(target.countCards('he')>0){
|
2023-08-19 16:40:34 +00:00
|
|
|
|
target.chooseCard('he',true,'请重铸一张牌',lib.filter.cardRecastable);
|
2022-05-30 10:35:29 +00:00
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
2023-08-19 16:40:34 +00:00
|
|
|
|
target.recast(result.cards);
|
2022-05-30 10:35:29 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
player:1,
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return 0.5*Math.sqrt(Math.min(3,target.countCards('h')));
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
dezhang:{
|
|
|
|
|
trigger:{player:'phaseZhunbeiBegin'},
|
|
|
|
|
derivation:'weishu',
|
|
|
|
|
juexingji:true,
|
|
|
|
|
forced:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'thunder',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.hasCard(function(card){
|
|
|
|
|
return card.hasGaintag('huaiyuanx');
|
|
|
|
|
},'h');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.awakenSkill('dezhang');
|
|
|
|
|
player.loseMaxHp();
|
|
|
|
|
player.addSkill('weishu');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
weishu:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'gainAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.getParent().name=='draw'&&event.getParent(2).name!='weishu'&&event.getParent('phaseDraw').player!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget(true,'请选择【卫戍】的目标','令一名角色摸一张牌').set('ai',function(target){
|
|
|
|
|
return get.attitude(_status.event.player,target)*Math.sqrt(Math.max(1,4-target.countCards('h')));
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
target.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
group:'weishu_discard',
|
|
|
|
|
subSkill:{
|
|
|
|
|
discard:{
|
2022-12-04 16:16:32 +00:00
|
|
|
|
trigger:{
|
|
|
|
|
player:'loseAfter',
|
|
|
|
|
global:'loseAsyncAfter',
|
|
|
|
|
},
|
2022-05-30 10:35:29 +00:00
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
2022-12-04 16:16:32 +00:00
|
|
|
|
return event.type=='discard'&&event.getParent(3).name!='weishu_discard'&&event.getParent('phaseDiscard').player!=player&&event.getl(player).cards2.length>0&&game.hasPlayer((target)=>(target!=player&&target.countDiscardableCards(player,'he')>0));
|
2022-05-30 10:35:29 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget(true,'请选择【卫戍】的目标','弃置一名其他角色的一张牌',function(card,player,target){
|
|
|
|
|
return target!=player&&target.countDiscardableCards(player,'he')>0;
|
|
|
|
|
}).set('ai',function(target){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
return get.effect(target,{name:'guohe_copy2'},player,player);
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
player.discardPlayerCard(target,'he',true);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-02-06 18:13:56 +00:00
|
|
|
|
gaoling:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
hiddenSkill:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.toShow.contains('xuangongzhu')&&player!=_status.currentPhase&&game.hasPlayer(function(current){
|
|
|
|
|
return current.isDamaged();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget(get.prompt('gaoling'),'令一名角色回复1点体力',function(card,player,target){
|
|
|
|
|
return target.isDamaged();
|
|
|
|
|
}).set('ai',function(target){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
return get.recoverEffect(target,player,player);
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('gaoling',target);
|
|
|
|
|
target.recover();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
qimei:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'phaseZhunbeiBegin'},
|
|
|
|
|
direct:true,
|
2022-11-12 11:47:23 +00:00
|
|
|
|
preHidden:true,
|
2022-02-06 18:13:56 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2022-11-12 11:47:23 +00:00
|
|
|
|
player.chooseTarget(get.prompt('qimei'),'选择一名其他角色并获得“齐眉”效果',lib.filter.notMe).set('ai',function(target){
|
2022-02-06 18:13:56 +00:00
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
return get.attitude(player,target)/(Math.abs(player.countCards('h')+2-target.countCards('h'))+1)
|
2022-11-12 11:47:23 +00:00
|
|
|
|
}).setHiddenSkill('qimei');
|
2022-02-06 18:13:56 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('qimei',target);
|
|
|
|
|
player.storage.qimei_draw=target;
|
|
|
|
|
player.addTempSkill('qimei_draw',{player:'phaseBegin'});
|
|
|
|
|
game.delayx();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
subSkill:{
|
|
|
|
|
draw:{
|
|
|
|
|
audio:'qimei',
|
|
|
|
|
charlotte:true,
|
|
|
|
|
forced:true,
|
2023-06-05 12:28:32 +00:00
|
|
|
|
popup:false,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
trigger:{global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','loseAfter','gainAfter','addToExpansionAfter']},
|
2022-02-06 18:13:56 +00:00
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=player.storage.qimei_draw;
|
|
|
|
|
if(!target||!target.isIn()) return false;
|
2023-06-05 12:28:32 +00:00
|
|
|
|
if(player.countCards('h')!=target.countCards('h')) return false;
|
|
|
|
|
var hasChange=function(event,player){
|
|
|
|
|
var gain=0,lose=0;
|
|
|
|
|
if(event.getg) gain=event.getg(player).length;
|
|
|
|
|
if(event.getl) lose=event.getl(player).hs.length;
|
|
|
|
|
return gain!=lose;
|
|
|
|
|
};
|
|
|
|
|
return hasChange(event,player)||hasChange(event,target);
|
2022-02-06 18:13:56 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2023-06-05 12:28:32 +00:00
|
|
|
|
'step 0'
|
2022-02-06 18:13:56 +00:00
|
|
|
|
if(trigger.delay===false) game.delayx();
|
2023-06-05 12:28:32 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
var target=player.storage.qimei_draw;
|
|
|
|
|
player.logSkill('qimei_draw',target);
|
|
|
|
|
var drawer=[];
|
|
|
|
|
var hasChange=function(event,player){
|
|
|
|
|
var gain=0,lose=0;
|
|
|
|
|
if(event.getg) gain=event.getg(player).length;
|
|
|
|
|
if(event.getl) lose=event.getl(player).hs.length;
|
|
|
|
|
return gain!=lose;
|
|
|
|
|
};
|
|
|
|
|
if(hasChange(trigger,player)) drawer.push(target);
|
|
|
|
|
if(hasChange(trigger,target)) drawer.push(player);
|
|
|
|
|
if(drawer.length==1) drawer[0].draw();
|
|
|
|
|
else{
|
|
|
|
|
game.asyncDraw(drawer.sortBySeat());
|
|
|
|
|
game.delayex();
|
|
|
|
|
}
|
2022-02-06 18:13:56 +00:00
|
|
|
|
},
|
|
|
|
|
group:'qimei_hp',
|
|
|
|
|
onremove:true,
|
|
|
|
|
mark:'character',
|
|
|
|
|
intro:{content:'已和$组成齐眉组合'},
|
|
|
|
|
},
|
|
|
|
|
hp:{
|
|
|
|
|
audio:'qimei',
|
|
|
|
|
trigger:{global:'changeHp'},
|
|
|
|
|
charlotte:true,
|
|
|
|
|
forced:true,
|
|
|
|
|
logTarget:function(event,player){
|
|
|
|
|
return player.storage.qimei_draw;
|
|
|
|
|
},
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=player.storage.qimei_draw;
|
|
|
|
|
if(!target||!target.isIn()) return false;
|
|
|
|
|
if(player!=event.player&&target!=event.player) return false;
|
|
|
|
|
return player.hp==target.hp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
game.delayx();
|
2022-03-22 14:53:37 +00:00
|
|
|
|
(player==trigger.player?player.storage.qimei_draw:player).draw();
|
2022-02-06 18:13:56 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ybzhuiji:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
direct:true,
|
2022-11-12 11:47:23 +00:00
|
|
|
|
preHidden:true,
|
2022-02-06 18:13:56 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var list=['摸两张牌,并于出牌阶段结束时失去1点体力'];
|
|
|
|
|
if(player.isDamaged()) list.push('回复1点体力,并于出牌阶段结束时弃置两张牌');
|
|
|
|
|
player.chooseControl('cancel2').set('choiceList',list).set('prompt',get.prompt('ybzhuiji')).set('ai',function(){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
if(player.isDamaged()&&player.countCards('h','tao')<player.getDamagedHp()) return 1;
|
|
|
|
|
return 'cancel2';
|
2022-11-12 11:47:23 +00:00
|
|
|
|
}).setHiddenSkill('ybzhuiji');
|
2022-02-06 18:13:56 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.control!='cancel2'){
|
2022-12-04 16:16:32 +00:00
|
|
|
|
player.logSkill('ybzhuiji');
|
2022-02-06 18:13:56 +00:00
|
|
|
|
if(result.index==0) player.draw(2);
|
|
|
|
|
else player.recover();
|
|
|
|
|
player.addTempSkill('ybzhuiji_'+result.index,'phaseUseAfter');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
subSkill:{
|
|
|
|
|
0:{
|
|
|
|
|
trigger:{player:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.loseHp();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
1:{
|
|
|
|
|
trigger:{player:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.chooseToDiscard('he',2,true);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
canmou:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:'useCardToPlayer'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!event.player.isMaxHandcard(true)||!event.isFirstTarget||get.type(event.card,null,false)!='trick') return false;
|
|
|
|
|
var info=get.info(event.card);
|
|
|
|
|
if(info.allowMultiple==false) return false;
|
|
|
|
|
if(event.targets&&!info.multitarget){
|
|
|
|
|
if(game.hasPlayer(function(current){
|
|
|
|
|
return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,event.player,current);//&&lib.filter.targetInRange(event.card,event.player,current);
|
|
|
|
|
})){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
2022-11-12 11:47:23 +00:00
|
|
|
|
preHidden:true,
|
2022-02-06 18:13:56 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var prompt2='为'+get.translation(trigger.card)+'增加一个目标'
|
|
|
|
|
player.chooseTarget(get.prompt('canmou'),function(card,player,target){
|
|
|
|
|
var player=_status.event.source;
|
|
|
|
|
return !_status.event.targets.contains(target)&&lib.filter.targetEnabled2(_status.event.card,player,target);//&&lib.filter.targetInRange(_status.event.card,player,target);
|
|
|
|
|
}).set('prompt2',prompt2).set('ai',function(target){
|
|
|
|
|
var trigger=_status.event.getTrigger();
|
|
|
|
|
var player=_status.event.source;
|
|
|
|
|
return get.effect(target,trigger.card,player,_status.event.player);
|
2022-11-12 11:47:23 +00:00
|
|
|
|
}).set('targets',trigger.targets).set('card',trigger.card).set('source',trigger.player).setHiddenSkill(event.name);
|
2022-02-06 18:13:56 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
if(!event.isMine()&&!event.isOnline()) game.delayx();
|
|
|
|
|
event.targets=result.targets;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.targets){
|
2022-11-12 11:47:23 +00:00
|
|
|
|
player.logSkill(event.name,event.targets);
|
2022-02-06 18:13:56 +00:00
|
|
|
|
trigger.targets.addArray(event.targets);
|
|
|
|
|
game.log(event.targets,'也成为了',trigger.card,'的目标');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
congjian:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:'useCardToTarget'},
|
|
|
|
|
logTarget:'target',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.target!=player&&event.targets.length==1&&get.type(event.card,null,false)=='trick'
|
|
|
|
|
&&event.target.isMaxHp(true)&&lib.filter.targetEnabled2(event.card,event.player,player);
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.effect(player,event.card,event.player,player)>0;
|
|
|
|
|
},
|
2022-11-12 11:47:23 +00:00
|
|
|
|
preHidden:true,
|
2022-02-06 18:13:56 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
trigger.targets.push(player);
|
|
|
|
|
game.log(player,'也成为了',trigger.card,'的目标');
|
|
|
|
|
var next=game.createEvent('congjian_draw',false);
|
|
|
|
|
next.player=player;
|
|
|
|
|
event.next.remove(next);
|
|
|
|
|
trigger.getParent().after.push(next);
|
|
|
|
|
next.setContent(function(){
|
|
|
|
|
if(player.hasHistory('damage',function(evt){
|
|
|
|
|
return evt.card==event.parent.card;
|
|
|
|
|
})) player.draw(2);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-11-23 04:58:31 +00:00
|
|
|
|
wanyi:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filter:function(event,player){
|
2021-11-26 14:55:37 +00:00
|
|
|
|
return player.getStorage('wanyi2').length<4&&player.hasCard(function(i){
|
2021-11-23 04:58:31 +00:00
|
|
|
|
return get.is.yingbian(i);
|
|
|
|
|
},'hs');
|
|
|
|
|
},
|
|
|
|
|
chooseButton:{
|
2021-11-26 14:55:37 +00:00
|
|
|
|
dialog:function(event,player){
|
|
|
|
|
var list=['zhujinqiyuan','chuqibuyi','shuiyanqijunx','dongzhuxianji'];
|
|
|
|
|
list.removeArray(player.getStorage('wanyi2'))
|
|
|
|
|
return ui.create.dialog('婉嫕',[list,'vcard'],'hidden');
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
|
|
|
|
filter:function(button,player){
|
|
|
|
|
return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent());
|
|
|
|
|
},
|
|
|
|
|
check:function(button){
|
|
|
|
|
return _status.event.player.getUseValue({name:button.link[2]});
|
|
|
|
|
},
|
|
|
|
|
backup:function(links){
|
|
|
|
|
return {
|
|
|
|
|
audio:'wanyi',
|
|
|
|
|
popname:true,
|
|
|
|
|
viewAs:{
|
|
|
|
|
name:links[0][2],
|
|
|
|
|
},
|
|
|
|
|
filterCard:function(card){
|
|
|
|
|
return get.is.yingbian(card);
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 1/Math.max(1,get.value(card));
|
|
|
|
|
},
|
|
|
|
|
position:'hs',
|
2021-11-26 14:55:37 +00:00
|
|
|
|
onuse:function(links,player){
|
|
|
|
|
if(!player.storage.wanyi2) player.storage.wanyi2=[];
|
|
|
|
|
player.storage.wanyi2.add(links.card.name);
|
|
|
|
|
player.addTempSkill('wanyi2');
|
|
|
|
|
},
|
2021-11-23 04:58:31 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
prompt:function(links){
|
|
|
|
|
return '将一张应变牌当做'+get.translation(links[0][2])+'使用';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
subSkill:{backup:{}},
|
|
|
|
|
ai:{order:8,result:{player:1}},
|
|
|
|
|
},
|
2021-11-26 14:55:37 +00:00
|
|
|
|
wanyi2:{onremove:true},
|
2021-11-23 04:58:31 +00:00
|
|
|
|
maihuo:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{target:'useCardToTargeted'},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.card.name=='sha'&&event.card.isCard&&event.getParent(2).name!='maihuo_effect'&&
|
|
|
|
|
event.cards.filterInD().length>0&&event.targets.length==1&&
|
2022-04-10 16:34:02 +00:00
|
|
|
|
event.player.isIn()&&(!event.player.getExpansions('maihuo_effect').length);
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
2021-11-26 14:55:37 +00:00
|
|
|
|
prompt2:function(event){
|
|
|
|
|
return '令'+get.translation(event.card)+'暂时对你无效';
|
|
|
|
|
},
|
2021-11-23 04:58:31 +00:00
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.effect(player,event.card,event.player,player)<0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.excluded.add(player);
|
|
|
|
|
var target=trigger.player,cards=trigger.cards.filterInD();
|
2022-04-10 16:34:02 +00:00
|
|
|
|
target.addToExpansion('gain2',cards).gaintag.add('maihuo_effect');
|
2021-11-23 04:58:31 +00:00
|
|
|
|
target.storage.maihuo_target=player;
|
|
|
|
|
target.addSkill('maihuo_effect')
|
|
|
|
|
},
|
|
|
|
|
group:'maihuo_damage',
|
|
|
|
|
subSkill:{
|
|
|
|
|
effect:{
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
filter:function(event,player){
|
2022-04-10 16:34:02 +00:00
|
|
|
|
return player.getExpansions('maihuo_effect').length>0;
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2022-04-10 16:34:02 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
var cards=player.getExpansions('maihuo_effect'),card=cards[0];
|
2021-11-23 04:58:31 +00:00
|
|
|
|
if(card.name!='sha') card=get.autoViewAs({
|
|
|
|
|
name:'sha',
|
|
|
|
|
isCard:true,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
},cards);
|
2021-11-23 04:58:31 +00:00
|
|
|
|
var target=player.storage.maihuo_target;
|
2021-11-26 14:55:37 +00:00
|
|
|
|
if(target.isIn()&&player.canUse(card,target,null,true)){
|
2022-04-10 16:34:02 +00:00
|
|
|
|
player.useCard(card,target,cards);
|
2021-11-26 14:55:37 +00:00
|
|
|
|
}
|
2022-04-10 16:34:02 +00:00
|
|
|
|
'step 1'
|
2021-11-23 04:58:31 +00:00
|
|
|
|
player.removeSkill('maihuo_effect');
|
|
|
|
|
},
|
2022-04-30 12:32:57 +00:00
|
|
|
|
marktext:'祸',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
intro:{
|
2022-04-10 16:34:02 +00:00
|
|
|
|
content:'expansion',
|
|
|
|
|
markcount:'expansion',
|
|
|
|
|
},
|
|
|
|
|
onremove:function(player,skill){
|
|
|
|
|
var cards=player.getExpansions(skill);
|
|
|
|
|
if(cards.length) player.loseToDiscardpile(cards);
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{threaten:1.05},
|
|
|
|
|
},
|
|
|
|
|
damage:{
|
|
|
|
|
trigger:{source:'damageSource'},
|
|
|
|
|
forced:true,
|
|
|
|
|
locked:false,
|
|
|
|
|
filter:function(event,player){
|
2022-04-30 12:32:57 +00:00
|
|
|
|
return event.player.hasSkill('maihuo_effect')&&event.player.getExpansions('maihuo_effect').length>0;
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.removeSkill('maihuo_effect');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xuanbei:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{
|
|
|
|
|
global:'phaseBefore',
|
|
|
|
|
player:'enterGame',
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return (event.name!='phase'||game.phaseNumber==0);
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
locked:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
var cards=[];
|
|
|
|
|
while(cards.length<2){
|
|
|
|
|
var card=get.cardPile2(function(i){
|
|
|
|
|
return get.is.yingbian(i)&&!cards.contains(i);
|
|
|
|
|
});
|
|
|
|
|
if(!card) break;
|
|
|
|
|
else cards.push(card);
|
|
|
|
|
}
|
|
|
|
|
if(cards.length) player.gain(cards,'gain2');
|
|
|
|
|
},
|
|
|
|
|
group:'xuanbei_give',
|
|
|
|
|
subSkill:{
|
|
|
|
|
give:{
|
|
|
|
|
trigger:{player:'useCardAfter'},
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
2021-11-26 14:55:37 +00:00
|
|
|
|
return (event.card.yingbian||get.is.yingbian(event.card))&&event.cards.filterInD().length>0;
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.cards=trigger.cards.filterInD();
|
|
|
|
|
player.chooseTarget(get.prompt('xuanbei'),'令一名其他角色获得'+get.translation(event.cards),lib.filter.notMe).set('ai',function(target){
|
|
|
|
|
var att=get.attitude(_status.event.player,target);
|
|
|
|
|
if(att<3) return 0;
|
|
|
|
|
if(target.hasJudge('lebu')) att/=2;
|
|
|
|
|
if(target.hasSkillTag('nogain')) att/=10;
|
|
|
|
|
return att/(1+get.distance(player,target,'absolute'));
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('xuanbei_give',target);
|
2023-01-24 13:26:41 +00:00
|
|
|
|
target.gain(cards,'gain2').giver=player;
|
2021-11-23 04:58:31 +00:00
|
|
|
|
}
|
|
|
|
|
else player.storage.counttrigger.xuanbei_give--;
|
|
|
|
|
},
|
|
|
|
|
ai:{expose:0.1},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xianwan:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'chooseToUse',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.filterCard&&event.filterCard({
|
|
|
|
|
name:'sha'+(player.isLinked()?'':'n'),
|
|
|
|
|
isCard:true,
|
|
|
|
|
},player,event);
|
|
|
|
|
},
|
|
|
|
|
viewAs:function(cards,player){
|
|
|
|
|
return {
|
|
|
|
|
name:'sha'+(player.isLinked()?'':'n'),
|
|
|
|
|
isCard:true,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
filterCard:()=>false,
|
|
|
|
|
selectCard:-1,
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
prompt:'将武将牌重置并视为使用【杀】',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
log:false,
|
|
|
|
|
check:()=>1,
|
|
|
|
|
precontent:function(){
|
|
|
|
|
player.logSkill('xianwan');
|
|
|
|
|
player.link();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2022-07-25 14:24:03 +00:00
|
|
|
|
order:3.4,
|
2021-11-23 04:58:31 +00:00
|
|
|
|
respondSha:true,
|
|
|
|
|
respondShan:true,
|
|
|
|
|
skillTagFilter:function(player,tag){
|
|
|
|
|
return tag==('respondSha'+(player.isLinked()?'':'n'));
|
|
|
|
|
},
|
2022-07-25 14:24:03 +00:00
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,current){
|
|
|
|
|
if(get.tag(card,'respondShan')&¤t<0&&!player.isLinked()) return 0.4;
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-11-23 04:58:31 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-11-07 05:45:48 +00:00
|
|
|
|
recaiwang:{
|
|
|
|
|
audio:'caiwang',
|
|
|
|
|
inherit:'caiwang',
|
|
|
|
|
group:['recaiwang_hand','recaiwang_equip','recaiwang_judge'],
|
|
|
|
|
},
|
|
|
|
|
recaiwang_hand:{
|
|
|
|
|
audio:'caiwang',
|
|
|
|
|
enable:['chooseToUse','chooseToRespond'],
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
var js=player.getCards('h');
|
|
|
|
|
return js.length==1&&game.checkMod(js[0],player,'unchanged','cardEnabled2',player);
|
|
|
|
|
},
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'h',
|
|
|
|
|
prompt:'将全部手牌当做【闪】使用',
|
|
|
|
|
viewAs:{name:'shan'},
|
|
|
|
|
check:(card)=>10-get.value(card),
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
respondShan:true,
|
|
|
|
|
skillTagFilter:function(player){
|
|
|
|
|
return player.countCards('h')==1;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
recaiwang_equip:{
|
|
|
|
|
audio:'caiwang',
|
|
|
|
|
enable:['chooseToUse','chooseToRespond'],
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
var js=player.getCards('e');
|
|
|
|
|
return js.length==1&&game.checkMod(js[0],player,'unchanged','cardEnabled2',player);
|
|
|
|
|
},
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
check:(card)=>9-get.value(card),
|
|
|
|
|
position:'e',
|
|
|
|
|
prompt:'将装备区的牌当做【无懈可击】使用',
|
|
|
|
|
viewAs:{name:'wuxie'},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
recaiwang_judge:{
|
|
|
|
|
audio:'caiwang',
|
|
|
|
|
enable:['chooseToUse','chooseToRespond'],
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
var js=player.getCards('j');
|
|
|
|
|
return js.length==1&&game.checkMod(js[0],player,'unchanged','cardEnabled2',player);
|
|
|
|
|
},
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'j',
|
|
|
|
|
prompt:'将判定区的牌当做【杀】使用',
|
|
|
|
|
viewAs:{name:'sha'},
|
|
|
|
|
check:(card)=>1,
|
|
|
|
|
locked:false,
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
respondSha:true,
|
|
|
|
|
skillTagFilter:function(player){
|
|
|
|
|
return player.countCards('j')==1;
|
|
|
|
|
},
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,current){
|
|
|
|
|
if(card&&(card.name=='shandian'||card.name=='fulei')&&player==target&&!target.countCards('j')&&target.isPhaseUsing()&&target.hasValueTarget({name:'sha'},null,true)) return [1,2];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
aiOrder:function(player,card,num){
|
|
|
|
|
if(card.name=='shandian'||card.name=='fulei') return num+3;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-08-18 13:42:06 +00:00
|
|
|
|
caozhao:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.countCards('h')==0||!game.hasPlayer(function(current){
|
|
|
|
|
return current!=player&¤t.hp<=player.hp;
|
|
|
|
|
})) return false;
|
|
|
|
|
var list=player.getStorage('caozhao');
|
|
|
|
|
for(var i of lib.inpile){
|
|
|
|
|
if(!list.contains(i)&&['basic','trick'].contains(get.type(i))) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
chooseButton:{
|
|
|
|
|
dialog:function(event,player){
|
|
|
|
|
var list=player.getStorage('caozhao'),vcards=[];
|
|
|
|
|
for(var i of lib.inpile){
|
|
|
|
|
if(!list.contains(i)){
|
|
|
|
|
var type=get.type(i);
|
|
|
|
|
if(type=='basic'||type=='trick') vcards.push([type,'',i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ui.create.dialog('草诏',[vcards,'vcard']);
|
|
|
|
|
},
|
|
|
|
|
check:function(button){
|
|
|
|
|
return _status.event.player.getUseValue({name:button.link[2],isCard:true},null,true);
|
|
|
|
|
},
|
|
|
|
|
backup:function(links,player){
|
|
|
|
|
return {
|
|
|
|
|
audio:'caozhao',
|
|
|
|
|
cardname:links[0][2],
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'h',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return player.getUseValue({name:lib.skill.caozhao_backup.cardname})-((player.getUseValue(card,null,true)+0.1)/(get.value(card)/6));
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.hp<=player.hp;
|
|
|
|
|
},
|
|
|
|
|
discard:false,
|
|
|
|
|
lose:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.showCards(cards,get.translation(player)+'发动【草诏】,声明'+get.translation(lib.skill.caozhao_backup.cardname));
|
|
|
|
|
if(!player.storage.caozhao) player.storage.caozhao=[];
|
|
|
|
|
player.storage.caozhao.push(lib.skill.caozhao_backup.cardname);
|
|
|
|
|
'step 1'
|
|
|
|
|
target.chooseControl().set('choiceList',[
|
|
|
|
|
'令'+get.translation(player)+'将'+get.translation(cards[0])+'的牌名改为'+get.translation(lib.skill.caozhao_backup.cardname),
|
|
|
|
|
'失去1点体力',
|
|
|
|
|
]).set('ai',function(event,player){
|
|
|
|
|
var target=_status.event.getParent().player;
|
|
|
|
|
if(get.attitude(player,target)>0) return 0;
|
|
|
|
|
if(player.hp>3||(player.hp>1&&player.hasSkill('zhaxiang'))) return 1;
|
|
|
|
|
if(player.hp>2) return Math.random()>0.5?0:1;
|
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.index==1){
|
|
|
|
|
target.addExpose(0.2);
|
|
|
|
|
target.loseHp();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
else{
|
2021-08-27 04:05:15 +00:00
|
|
|
|
player.chooseTarget('是否将'+get.translation(lib.skill.caozhao_backup.cardname)+'('+get.translation(cards[0])+')交给一名其他角色?',lib.filter.notMe).set('ai',()=>-1);
|
2021-08-18 13:42:06 +00:00
|
|
|
|
}
|
|
|
|
|
'step 3'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
if(!target.storage.caozhao_info) target.storage.caozhao_info={};
|
|
|
|
|
target.storage.caozhao_info[cards[0].cardid]=lib.skill.caozhao_backup.cardname;
|
|
|
|
|
target.addSkill('caozhao_info');
|
2023-01-24 13:26:41 +00:00
|
|
|
|
player.give(cards,target,'give').gaintag.add('caozhao');
|
2021-08-18 13:42:06 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(!player.storage.caozhao_info) player.storage.caozhao_info={};
|
|
|
|
|
player.storage.caozhao_info[cards[0].cardid]=lib.skill.caozhao_backup.cardname;
|
|
|
|
|
player.addGaintag(cards,'caozhao');
|
|
|
|
|
player.addSkill('caozhao_info');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
player:2,
|
|
|
|
|
target:0.1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
prompt:function(links,player){
|
|
|
|
|
return '将一张手牌声明为'+get.translation(links[0][2]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
player:1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
caozhao_info:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
mod:{
|
|
|
|
|
cardname:function(card,player){
|
|
|
|
|
var map=player.storage.caozhao_info;
|
|
|
|
|
if(map&&map[card.cardid]&&get.itemtype(card)=='card'&&card.hasGaintag('caozhao')) return map[card.cardid];
|
|
|
|
|
},
|
|
|
|
|
cardnature:function(card,player){
|
|
|
|
|
var map=player.storage.caozhao_info;
|
|
|
|
|
if(map&&map[card.cardid]&&get.itemtype(card)=='card'&&card.hasGaintag('caozhao')) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
olxibing:{
|
|
|
|
|
audio:2,
|
2023-09-27 08:07:17 +00:00
|
|
|
|
trigger:{player:'damageEnd'},
|
2021-08-18 13:42:06 +00:00
|
|
|
|
filter:function(event,player){
|
2023-09-27 08:07:17 +00:00
|
|
|
|
return event.player&&event.source&&event.player!=event.source&&event.player.isAlive()&&event.source.isAlive()&&(event.player.countCards('he')>0||event.source.countCards('he')>0);
|
2021-08-18 13:42:06 +00:00
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2023-09-27 08:07:17 +00:00
|
|
|
|
var target=trigger.source;
|
2021-08-18 13:42:06 +00:00
|
|
|
|
event.target=target;
|
|
|
|
|
player.chooseTarget(get.prompt('olxibing'),'弃置自己或'+get.translation(target)+'的两张牌,然后手牌数较少的角色摸两张牌且不能对你使用牌直到回合结束',function(card,player,target){
|
|
|
|
|
if(target!=player&&target!=_status.event.target) return false;
|
|
|
|
|
return target.countCards('he')>0;
|
|
|
|
|
}).set('target',target).set('ai',function(targetx){
|
|
|
|
|
var player=_status.event.player,target=_status.event.target;
|
|
|
|
|
if(target==targetx){
|
|
|
|
|
if(get.attitude(player,target)>0) return 0;
|
|
|
|
|
var cards=target.getCards('he',function(card){
|
|
|
|
|
return lib.filter.canBeDiscarded(card,player,target);
|
|
|
|
|
}).sort(function(a,b){
|
|
|
|
|
return get.buttonValue(b)-get.buttonValue(a);
|
|
|
|
|
});
|
|
|
|
|
if((target.countCards('h')-player.countCards('h'))>=Math.max(0,Math.min(2,cards.length)-target.countCards('e',function(card){
|
|
|
|
|
var index=cards.indexOf(card);
|
|
|
|
|
return index!=-1&&index<2;
|
|
|
|
|
}))) return 1;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
var cards=player.getCards('he',function(card){
|
|
|
|
|
return lib.filter.cardDiscardable(card,player,'olxibing')
|
|
|
|
|
}).sort(function(a,b){
|
|
|
|
|
return get.useful(a)-get.useful(b);
|
|
|
|
|
});
|
|
|
|
|
if(player.countCards('h')-target.countCards('h')<Math.max(0,Math.min(cards.length,2)-player.countCards('e',function(card){
|
|
|
|
|
var index=cards.indexOf(card);
|
|
|
|
|
return index!=-1&&index<2;
|
|
|
|
|
}))&&(cards.length<2||get.value(cards[1])<5.5)) return 0.8;
|
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('olxibing',target);
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
if(target==player) player.chooseToDiscard('he',2,true);
|
|
|
|
|
else player.discardPlayerCard(target,'he',true,2);
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
if(player.isIn()&&target.isIn()){
|
|
|
|
|
var hs=player.countCards('h'),ts=target.countCards('h');
|
|
|
|
|
if(hs!=ts){
|
|
|
|
|
var drawer=hs>ts?target:player;
|
|
|
|
|
drawer.draw(2);
|
|
|
|
|
player.addTempSkill('olxibing2');
|
|
|
|
|
player.markAuto('olxibing2',[drawer]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
olxibing2:{
|
|
|
|
|
mod:{
|
|
|
|
|
targetEnabled:function(card,player,target){
|
|
|
|
|
if(target.getStorage('olxibing2').contains(player)) return false;
|
|
|
|
|
},
|
|
|
|
|
cardSavable:function(card,player,target){
|
|
|
|
|
if(target.getStorage('olxibing2').contains(player)) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
onremove:true,
|
|
|
|
|
},
|
2023-05-05 16:00:01 +00:00
|
|
|
|
bolan:{
|
2021-07-15 04:47:00 +00:00
|
|
|
|
audio:2,
|
2022-09-15 12:33:17 +00:00
|
|
|
|
banned:['kotomi_chuanxiang'],
|
2023-05-05 16:00:01 +00:00
|
|
|
|
global:'bolan_g',
|
|
|
|
|
initList:function(player){
|
|
|
|
|
var list,skills=[];
|
|
|
|
|
if(get.mode()=='guozhan'){
|
|
|
|
|
list=[];
|
|
|
|
|
for(var i in lib.characterPack.mode_guozhan) list.push(i);
|
|
|
|
|
}
|
|
|
|
|
else if(_status.connectMode) list=get.charactersOL();
|
|
|
|
|
else {
|
|
|
|
|
list=[];
|
|
|
|
|
for(var i in lib.character){
|
|
|
|
|
if(lib.filter.characterDisabled2(i)||lib.filter.characterDisabled(i)) continue;
|
|
|
|
|
list.push(i);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for(var i of list){
|
|
|
|
|
if(i.indexOf('gz_jun')==0) continue;
|
|
|
|
|
for(var j of lib.character[i][3]){
|
|
|
|
|
if(j=='bolan') continue;
|
|
|
|
|
var skill=lib.skill[j];
|
2023-05-13 14:57:29 +00:00
|
|
|
|
if(!skill||skill.juexingji||skill.hiddenSkill||skill.zhuSkill||skill.dutySkill||skill.chargeSkill||lib.skill.bolan.banned.contains(j)) continue;
|
2023-05-05 16:00:01 +00:00
|
|
|
|
if(skill.init||skill.ai&&(skill.ai.combo||skill.ai.notemp||skill.ai.neg)) continue;
|
|
|
|
|
var info=lib.translate[j+'_info'];
|
|
|
|
|
if(info&&info.indexOf('出牌阶段限一次')!=-1) skills.add(j);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
player.storage.bolan=skills;
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
frequent:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2023-05-05 16:00:01 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
if(player.isIn()){
|
|
|
|
|
if(!player.storage.bolan) lib.skill.bolan.initList(player);
|
|
|
|
|
var list=player.storage.bolan.randomGets(3);
|
|
|
|
|
if(!list.length){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
player.chooseControl(list).set('choiceList',list.map(function(i){
|
|
|
|
|
return '<div class="skill">【'+get.translation(lib.translate[i+'_ab']||get.translation(i).slice(0,2))+'】</div><div>'+get.skillInfoTranslation(i,player)+'</div>';
|
|
|
|
|
})).set('displayIndex',false).set('prompt','博览:请选择你要获得的技能').set('ai',()=>{
|
2023-03-31 11:34:38 +00:00
|
|
|
|
var list=_status.event.controls.slice();
|
|
|
|
|
return list.sort((a,b)=>{
|
|
|
|
|
return get.skillRank(b,'in')-get.skillRank(a,'in');
|
|
|
|
|
})[0];
|
2021-07-15 04:47:00 +00:00
|
|
|
|
});
|
2023-05-05 16:00:01 +00:00
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 1'
|
|
|
|
|
player.addTempSkill(result.control,'phaseUseEnd');
|
|
|
|
|
player.popup(result.control);
|
|
|
|
|
game.log(player,'获得了','#g【'+get.translation(result.control)+'】');
|
|
|
|
|
},
|
|
|
|
|
ai:{threaten:0.9},
|
|
|
|
|
subSkill:{
|
|
|
|
|
g:{
|
|
|
|
|
audio:'bolan',
|
|
|
|
|
forceaudio:true,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
prompt:'出牌阶段限一次。你可以令一名有〖博览〗的角色从三个描述中包含“出牌阶段限一次”的技能中选择一个,你获得此技能直到此阶段结束。',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return game.hasPlayer(function(current){
|
|
|
|
|
return current!=player&¤t.hasSkill('bolan');
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player!=target&&target.hasSkill('bolan');
|
|
|
|
|
},
|
|
|
|
|
selectTarget:function(){
|
|
|
|
|
if(game.countPlayer(current=>{
|
|
|
|
|
return lib.skill.bolan_g.filterTarget(null,_status.event.player,current);
|
|
|
|
|
})==1) return -1;
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.loseHp();
|
2023-05-13 14:57:29 +00:00
|
|
|
|
'step 1'
|
2023-05-05 16:00:01 +00:00
|
|
|
|
if(target.isIn()&&player.isIn()){
|
|
|
|
|
if(!target.storage.bolan) lib.skill.bolan.initList(target);
|
|
|
|
|
var list=target.storage.bolan.randomGets(3);
|
|
|
|
|
if(!list.length){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
target.chooseControl(list).set('choiceList',list.map(function(i){
|
|
|
|
|
return '<div class="skill">【'+get.translation(lib.translate[i+'_ab']||get.translation(i).slice(0,2))+'】</div><div>'+get.skillInfoTranslation(i,player)+'</div>';
|
|
|
|
|
})).set('displayIndex',false).set('prompt','博览:请选择令'+get.translation(player)+'获得的技能').set('ai',()=>{
|
2023-03-31 11:34:38 +00:00
|
|
|
|
var list=_status.event.controls.slice();
|
|
|
|
|
return list.sort((a,b)=>{
|
|
|
|
|
return (get.skillRank(b,'in')-get.skillRank(a,'in'))*get.attitude(_status.event.player,_status.event.getParent().player);
|
|
|
|
|
})[0];
|
|
|
|
|
});
|
2023-05-05 16:00:01 +00:00
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
2023-05-13 14:57:29 +00:00
|
|
|
|
'step 2'
|
2023-05-05 16:00:01 +00:00
|
|
|
|
target.line(player);
|
|
|
|
|
player.addTempSkill(result.control,'phaseUseEnd');
|
|
|
|
|
player.popup(result.control);
|
|
|
|
|
game.log(player,'获得了','#g【'+get.translation(result.control)+'】');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:function(item,player){
|
|
|
|
|
if(player.hp>=5||player.countCards('h')>=10) return 10;
|
|
|
|
|
var list=game.filterPlayer(current=>lib.skill.bolan_g.filterTarget(null,player,current));
|
|
|
|
|
for(var target of list){
|
|
|
|
|
if(get.attitude(target,player)>0) return 10;
|
|
|
|
|
}
|
|
|
|
|
return 4;
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player,target){
|
|
|
|
|
if(player.hasUnknown()) return player.hp+player.countCards('h')/4-5>0?1:0;
|
|
|
|
|
var tao=player.countCards('h','tao');
|
|
|
|
|
if(player.hp+tao>4) return 4+get.attitude(player,target);
|
|
|
|
|
if(player.hp+tao>3) return get.attitude(player,target)-2;
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-07-15 04:47:00 +00:00
|
|
|
|
yifa:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{target:'useCardToTargeted'},
|
|
|
|
|
forced:true,
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player!=event.player&&(event.card.name=='sha'||
|
|
|
|
|
get.color(event.card)=='black'&&get.type(event.card)=='trick');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var target=trigger.player;
|
2023-08-22 11:55:39 +00:00
|
|
|
|
target.addTempSkill('yifa2',{player:'phaseEnd'});
|
2021-07-15 04:47:00 +00:00
|
|
|
|
target.addMark('yifa2',1,false);
|
|
|
|
|
},
|
2023-08-22 11:55:39 +00:00
|
|
|
|
ai:{threaten:0.8},
|
2021-07-15 04:47:00 +00:00
|
|
|
|
},
|
|
|
|
|
yifa2:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
intro:{content:'手牌上限-#'},
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
|
|
|
|
return num-player.countMark('yifa2');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
buchen:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
hiddenSkill:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=_status.currentPhase;
|
2022-02-06 18:13:56 +00:00
|
|
|
|
return event.toShow.contains('jin_simayi')&&target&&target!=player&&target.countGainableCards(player,'he')>0;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
var target=_status.currentPhase;
|
|
|
|
|
player.gainPlayerCard(target,'he',get.prompt('buchen',target)).set('logSkill',['buchen',target]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
smyyingshi:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
locked:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return Array.isArray(event.smyyingshi);
|
|
|
|
|
},
|
|
|
|
|
onChooseToUse:function(event){
|
|
|
|
|
if(game.online||!event.player.hasSkill('smyyingshi')) return;
|
|
|
|
|
var cards=[];
|
|
|
|
|
for(var i=0;i<event.player.maxHp;i++){
|
|
|
|
|
var card=ui.cardPile.childNodes[i];
|
|
|
|
|
if(card) cards.push(card);
|
|
|
|
|
else break;
|
|
|
|
|
}
|
|
|
|
|
event.set('smyyingshi',cards);
|
|
|
|
|
},
|
|
|
|
|
chooseButton:{
|
|
|
|
|
dialog:function(event){
|
|
|
|
|
var dialog=ui.create.dialog('鹰视','hidden');
|
|
|
|
|
if(event.smyyingshi&&event.smyyingshi.length) dialog.add(event.smyyingshi);
|
|
|
|
|
else dialog.addText('牌堆无牌');
|
|
|
|
|
for(var i of dialog.buttons){
|
|
|
|
|
i.classList.add('noclick');
|
|
|
|
|
}
|
|
|
|
|
dialog.buttons.length=0;
|
|
|
|
|
return dialog;
|
|
|
|
|
},
|
|
|
|
|
filter:function(){
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xiongzhi:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
limited:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'thunder',
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.awakenSkill('xiongzhi');
|
|
|
|
|
'step 1'
|
|
|
|
|
var card=get.cards()[0];
|
|
|
|
|
event.card=card;
|
|
|
|
|
player.showCards(card);
|
|
|
|
|
if(!player.hasUseTarget(card)){
|
|
|
|
|
card.fix();
|
|
|
|
|
ui.cardPile.insertBefore(card,ui.cardPile.firstChild);
|
|
|
|
|
game.updateRoundNumber();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
var next=player.chooseUseTarget(card,true);
|
|
|
|
|
if(get.info(card).updateUsable=='phaseUse') next.addCount=false;
|
|
|
|
|
'step 3'
|
|
|
|
|
if(result.bool) event.goto(1);
|
|
|
|
|
else{
|
|
|
|
|
card.fix();
|
|
|
|
|
ui.cardPile.insertBefore(card,ui.cardPile.firstChild);
|
|
|
|
|
game.updateRoundNumber();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(!player.hasSkill('smyyingshi')) return 1;
|
|
|
|
|
var cards=[];
|
|
|
|
|
for(var i=0;i<Math.min(2,player.maxHp);i++){
|
|
|
|
|
var card=ui.cardPile.childNodes[i];
|
|
|
|
|
if(card){
|
|
|
|
|
if(!player.hasValueTarget(card)) return 0;
|
|
|
|
|
}
|
|
|
|
|
else break;
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
quanbian:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:['useCard','respond']},
|
|
|
|
|
hasHand:function(event){
|
|
|
|
|
var evts=event.player.getHistory('lose',function(evt){
|
|
|
|
|
return evt.getParent()==event;
|
|
|
|
|
});
|
|
|
|
|
return evts&&evts.length==1&&evts[0].hs.length>0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var phase=event.getParent('phaseUse');
|
|
|
|
|
if(!phase||phase.player!=player) return false;
|
|
|
|
|
var suit=get.suit(event.card);
|
|
|
|
|
if(!lib.suit.contains(suit)||!lib.skill.quanbian.hasHand(event)) return false;
|
|
|
|
|
return player.getHistory('useCard',function(evt){
|
|
|
|
|
return evt!=event&&get.suit(evt.card)==suit&&lib.skill.quanbian.hasHand(evt)&&evt.getParent('phaseUse')==phase;
|
|
|
|
|
}).length+player.getHistory('respond',function(evt){
|
|
|
|
|
return evt!=event&&get.suit(evt.card)==suit&&lib.skill.quanbian.hasHand(evt)&&evt.getParent('phaseUse')==phase;
|
|
|
|
|
}).length==0;
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseControl('cancel2').set('prompt',get.prompt('quanbian')).set('choiceList',[
|
|
|
|
|
'摸一张牌',
|
|
|
|
|
'观看牌堆顶的'+get.cnNumber(player.maxHp)+'张牌并将其中一张置于牌堆底',
|
|
|
|
|
]).set('ai',function(){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var suit=get.suit(_status.event.getTrigger().card);
|
|
|
|
|
if(player.countCards('h',function(card){
|
|
|
|
|
return get.suit(card)==suit&&player.hasValueTarget(card,null,true);
|
|
|
|
|
})) return 'cancel2';
|
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.control=='cancel2'){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
player.addTempSkill('quanbian2');
|
|
|
|
|
player.storage.quanbian2.add(get.suit(trigger.card));
|
|
|
|
|
player.markSkill('quanbian2');
|
|
|
|
|
if(result.index==0){
|
|
|
|
|
player.draw();
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
event.cards=get.cards(player.maxHp);
|
|
|
|
|
player.chooseButton(['将一张牌置于牌堆底',event.cards],true);
|
|
|
|
|
'step 2'
|
|
|
|
|
while(cards.length){
|
|
|
|
|
var card=cards.pop();
|
|
|
|
|
card.fix();
|
|
|
|
|
if(card==result.links[0]) ui.cardPile.appendChild(card);
|
|
|
|
|
else ui.cardPile.insertBefore(card,ui.cardPile.firstChild);
|
|
|
|
|
}
|
|
|
|
|
game.updateRoundNumber();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
quanbian2:{
|
|
|
|
|
init:function(player,skill){
|
|
|
|
|
if(!player.storage[skill]) player.storage[skill]=[];
|
|
|
|
|
},
|
|
|
|
|
onremove:true,
|
|
|
|
|
mod:{
|
|
|
|
|
cardEnabled2:function(card,player){
|
|
|
|
|
if(get.position(card)=='h'&&player.storage.quanbian2.contains(get.suit(card))) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'本回合内不能使用$花色的手牌',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
//卫瓘
|
|
|
|
|
zhongyun:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:['damageEnd','recoverEnd']},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hp==player.countCards('h')&&(player.isDamaged()||game.hasPlayer(function(current){
|
|
|
|
|
return player.inRange(current);
|
|
|
|
|
}));
|
|
|
|
|
},
|
2021-06-23 12:09:36 +00:00
|
|
|
|
usable:1,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:['zhongyun2'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var filterTarget=function(card,player,target){
|
|
|
|
|
return player.inRange(target);
|
|
|
|
|
};
|
|
|
|
|
if(game.hasPlayer((current)=>filterTarget('L∞pers',player,current))){
|
|
|
|
|
var bool=player.isHealthy();
|
2021-08-27 04:05:15 +00:00
|
|
|
|
player.chooseTarget('忠允:对攻击范围内的一名角色造成1点伤害'+(bool?'':',或点取消回复1点体力'),filterTarget,bool).set('ai',function(target){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
return get.damageEffect(target,player,player);
|
|
|
|
|
});
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
else event._result={bool:false};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
target.damage();
|
|
|
|
|
}
|
|
|
|
|
else player.recover();
|
|
|
|
|
},
|
|
|
|
|
group:'zhongyun2',
|
|
|
|
|
},
|
|
|
|
|
zhongyun2:{
|
|
|
|
|
audio:'zhongyun',
|
|
|
|
|
trigger:{
|
2023-01-26 02:48:26 +00:00
|
|
|
|
player:['loseAfter'],
|
2022-04-10 16:34:02 +00:00
|
|
|
|
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
2023-01-26 02:48:26 +00:00
|
|
|
|
var cards1=event.getl(player).hs,cards2=[];
|
|
|
|
|
if(event.getg) cards2=event.getg(player);
|
|
|
|
|
return (cards1.length>0||cards2.length>0)&&player.countCards('h')==player.hp;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
usable:1,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2021-08-27 04:05:15 +00:00
|
|
|
|
if(trigger.delay===false) game.delayx();
|
2021-06-10 15:27:23 +00:00
|
|
|
|
var filterTarget=function(card,player,target){
|
|
|
|
|
return target!=player&&target.countDiscardableCards(player,'he')>0;
|
|
|
|
|
}
|
|
|
|
|
if(!game.hasPlayer((current)=>filterTarget('L∞pers',player,current))) event._result={bool:false};
|
|
|
|
|
else player.chooseTarget(filterTarget,'忠允:弃置一名其他角色的一张牌,或点取消摸一张牌').set('ai',function(target){
|
|
|
|
|
var att=get.attitude(player,target);
|
|
|
|
|
if(att>=0) return 0;
|
|
|
|
|
if(target.countCards('he',function(card){
|
|
|
|
|
return get.value(card)>5;
|
|
|
|
|
})) return -att;
|
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(!result.bool) player.draw();
|
|
|
|
|
else{
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
player.discardPlayerCard(target,true,'he');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
shenpin:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:'judge'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var color=get.color(event.player.judging[0],event.player);
|
|
|
|
|
return player.countCards('hes',function(card){
|
|
|
|
|
if(_status.connectMode&&get.position(card)!='e') return true;
|
|
|
|
|
return get.color(card)!=color;
|
|
|
|
|
})>0;
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var color=get.color(trigger.player.judging[0],trigger.player);
|
|
|
|
|
player.chooseCard(get.translation(trigger.player)+'的'+(trigger.judgestr||'')+'判定为'+
|
|
|
|
|
get.translation(trigger.player.judging[0])+','+get.prompt('shenpin'),'hes',function(card){
|
|
|
|
|
if(get.color(card)==_status.event.color) return false;
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player);
|
|
|
|
|
if(mod2!='unchanged') return mod2;
|
|
|
|
|
var mod=game.checkMod(card,player,'unchanged','cardRespondable',player);
|
|
|
|
|
if(mod!='unchanged') return mod;
|
|
|
|
|
return true;
|
|
|
|
|
}).set('ai',function(card){
|
|
|
|
|
var trigger=_status.event.getTrigger();
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var judging=_status.event.judging;
|
|
|
|
|
var result=trigger.judge(card)-trigger.judge(judging);
|
|
|
|
|
var attitude=get.attitude(player,trigger.player);
|
|
|
|
|
if(attitude==0||result==0) return 0;
|
|
|
|
|
if(attitude>0){
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return -result;
|
|
|
|
|
}
|
2021-10-22 05:07:02 +00:00
|
|
|
|
}).set('judging',trigger.player.judging[0]).set('color',color).setHiddenSkill(event.name);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.respond(result.cards,'highlight','shenpin','noOrdering');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
if(trigger.player.judging[0].clone){
|
|
|
|
|
trigger.player.judging[0].clone.classList.remove('thrownhighlight');
|
|
|
|
|
game.broadcast(function(card){
|
|
|
|
|
if(card.clone){
|
|
|
|
|
card.clone.classList.remove('thrownhighlight');
|
|
|
|
|
}
|
|
|
|
|
},trigger.player.judging[0]);
|
|
|
|
|
game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone]));
|
|
|
|
|
}
|
|
|
|
|
game.cardsDiscard(trigger.player.judging[0]);
|
|
|
|
|
trigger.player.judging[0]=result.cards[0];
|
|
|
|
|
trigger.orderingCards.addArray(result.cards);
|
|
|
|
|
game.log(trigger.player,'的判定牌改为',result.cards[0]);
|
|
|
|
|
game.delay(2);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
rejudge:true,
|
|
|
|
|
tag:{
|
|
|
|
|
rejudge:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//彻里吉
|
|
|
|
|
chexuan:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
derivation:['cheliji_sichengliangyu','cheliji_tiejixuanyu','cheliji_feilunzhanyu'],
|
|
|
|
|
filter:function(event,player){
|
2023-08-14 17:33:36 +00:00
|
|
|
|
return !player.getEquips(5).length&&player.countCards('he',{color:'black'})>0;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
position:'he',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 5-get.value(card);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseButton(['请选择要装备的宝物',[lib.skill.chexuan.derivation.map(function(i){
|
|
|
|
|
return ['宝物','',i];
|
|
|
|
|
}),'vcard']],true).set('ai',function(button){
|
|
|
|
|
if(button.link[2]=='cheliji_sichengliangyu'&&player.countCards('h')<player.hp) return 1;
|
|
|
|
|
return Math.random();
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
var card=game.createCard(result.links[0][2]);
|
|
|
|
|
player.$gain2(card);
|
|
|
|
|
player.equip(card);
|
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
group:'chexuan_lose',
|
|
|
|
|
subfrequent:['lose'],
|
|
|
|
|
ai:{
|
2021-10-12 05:02:49 +00:00
|
|
|
|
order:6,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
result:{
|
|
|
|
|
player:1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
subSkill:{
|
|
|
|
|
lose:{
|
|
|
|
|
audio:'chexuan',
|
|
|
|
|
trigger:{
|
|
|
|
|
player:'loseAfter',
|
2022-04-10 16:34:02 +00:00
|
|
|
|
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
frequent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var evt=event.getl(player);
|
|
|
|
|
if(!evt||!evt.es||!evt.es.length) return false;
|
2021-11-23 04:58:31 +00:00
|
|
|
|
if(event.name=='equip'&&event.player==player) return false;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
for(var i of evt.es){
|
|
|
|
|
if(get.subtype(i,false)=='equip5') return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.judge(function(card){
|
|
|
|
|
if(get.color(card)=='black') return 3;
|
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var card=game.createCard(lib.skill.chexuan.derivation.randomGet());
|
|
|
|
|
player.$gain2(card);
|
|
|
|
|
player.equip(card);
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qiangshou:{
|
|
|
|
|
mod:{
|
|
|
|
|
globalFrom:function(player,target,distance){
|
2023-08-14 17:33:36 +00:00
|
|
|
|
if(player.getEquips(5).length) return distance-1;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
cheliji_sichengliangyu:{
|
|
|
|
|
trigger:{global:'phaseJieshuBegin'},
|
|
|
|
|
equipSkill:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.countCards('h')<player.hp&&player.getEquip('cheliji_sichengliangyu');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.draw(2);
|
|
|
|
|
'step 1'
|
|
|
|
|
var card=player.getEquip('cheliji_sichengliangyu');
|
|
|
|
|
if(card) player.discard(card);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
cheliji_tiejixuanyu:{
|
|
|
|
|
trigger:{global:'phaseJieshuBegin'},
|
|
|
|
|
equipSkill:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player!=event.player&&!event.player.getHistory('sourceDamage').length
|
|
|
|
|
&&event.player.countCards('he')>0&&player.getEquip('cheliji_tiejixuanyu');
|
|
|
|
|
},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.attitude(player,event.player)<0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
trigger.player.chooseToDiscard('he',2,true);
|
|
|
|
|
'step 1'
|
|
|
|
|
var card=player.getEquip('cheliji_tiejixuanyu');
|
|
|
|
|
if(card) player.discard(card);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
cheliji_feilunzhanyu:{
|
|
|
|
|
trigger:{global:'phaseJieshuBegin'},
|
|
|
|
|
equipSkill:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player!=event.player&&event.player.getHistory('useCard',function(card){
|
2021-07-15 04:47:00 +00:00
|
|
|
|
return get.type(card.card)!='basic';
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}).length>0&&event.player.countCards('he')>0&&player.getEquip('cheliji_feilunzhanyu');
|
|
|
|
|
},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.attitude(player,event.player)<=0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
trigger.player.chooseCard('he',true,'将一张牌交给'+get.translation(player));
|
|
|
|
|
'step 1'
|
2023-01-24 13:26:41 +00:00
|
|
|
|
if(result.bool) trigger.player.give(result.cards,player);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
'step 2'
|
|
|
|
|
var card=player.getEquip('cheliji_feilunzhanyu');
|
|
|
|
|
if(card) player.discard(card);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
//司马伷和黄祖
|
|
|
|
|
caiwang:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:['useCard','respond']},
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!Array.isArray(event.respondTo)||event.respondTo[0]==event.player||![event.respondTo[0],event.player].contains(player)) return false;
|
|
|
|
|
var color=get.color(event.card);
|
|
|
|
|
if(color=='none'||get.color(event.respondTo[1])!=color) return false;
|
|
|
|
|
var target=lib.skill.caiwang.logTarget(event,player);
|
|
|
|
|
return target[player.getStorage('naxiang2').contains(target)?'countGainableCards':'countDiscardableCards'](player,'he')>0
|
|
|
|
|
},
|
|
|
|
|
logTarget:function(event,player){
|
|
|
|
|
return (player==event.respondTo[0]?event.player:event.respondTo[0]);
|
|
|
|
|
},
|
|
|
|
|
prompt2:function(event,player){
|
|
|
|
|
var target=lib.skill.caiwang.logTarget(event,player);
|
|
|
|
|
return (player.getStorage('naxiang2').contains(target)?'获得':'弃置')+'该角色的一张牌';
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.attitude(player,lib.skill.caiwang.logTarget(event,player))<=0;
|
|
|
|
|
},
|
2021-11-07 05:45:48 +00:00
|
|
|
|
popup:false,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
content:function(){
|
2021-11-07 05:45:48 +00:00
|
|
|
|
'step 0'
|
2021-07-15 04:47:00 +00:00
|
|
|
|
if(player!=game.me&&!player.isOnline()) game.delayx();
|
2021-11-07 05:45:48 +00:00
|
|
|
|
'step 1'
|
2021-06-10 15:27:23 +00:00
|
|
|
|
var target=lib.skill.caiwang.logTarget(trigger,player);
|
2021-11-07 05:45:48 +00:00
|
|
|
|
player.logSkill(event.name,target);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
player[player.getStorage('naxiang2').contains(target)?'gainPlayerCard':'discardPlayerCard'](target,'he',true);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
naxiang:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{
|
|
|
|
|
player:'damageEnd',
|
|
|
|
|
source:'damageSource',
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=lib.skill.naxiang.logTarget(event,player);
|
|
|
|
|
return target&&target!=player&&target.isAlive();
|
|
|
|
|
},
|
|
|
|
|
logTarget:function(event,player){
|
|
|
|
|
return player==event.player?event.source:event.player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addTempSkill('naxiang2',{player:'phaseBegin'});
|
|
|
|
|
if(!player.storage.naxiang2) player.storage.naxiang2=[];
|
|
|
|
|
player.storage.naxiang2.add(lib.skill.naxiang.logTarget(trigger,player));
|
|
|
|
|
player.markSkill('naxiang2');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
combo:'caiwang',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
naxiang2:{
|
|
|
|
|
onremove:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:'已接受$的投降;对这些角色发动【才望】时将“弃置”改为“获得”',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
//李肃
|
|
|
|
|
qiaoyan:{
|
|
|
|
|
trigger:{player:'damageBegin2'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player!=_status.currentPhase&&event.source&&event.source!=player;
|
|
|
|
|
},
|
|
|
|
|
logTarget:'source',
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2022-04-10 16:34:02 +00:00
|
|
|
|
var cards=player.getExpansions('qiaoyan');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
if(cards.length){
|
|
|
|
|
var source=trigger.source;
|
2023-01-24 13:26:41 +00:00
|
|
|
|
source.gain(cards,player,'give','bySelf');
|
2022-04-10 16:34:02 +00:00
|
|
|
|
event.finish();
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
trigger.cancel();
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
var hs=player.getCards('he');
|
|
|
|
|
if(!hs.length) event.finish();
|
|
|
|
|
else if(hs.length==1) event._result={bool:true,cards:hs};
|
|
|
|
|
else player.chooseCard('he',true,'将一张牌作为“珠”置于武将牌上');
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool&&result.cards&&result.cards.length){
|
|
|
|
|
var cards=result.cards;
|
2022-04-10 16:34:02 +00:00
|
|
|
|
player.addToExpansion(cards,player,'give').gaintag.add('qiaoyan');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
event.finish();
|
|
|
|
|
},
|
|
|
|
|
marktext:'珠',
|
2022-04-10 16:34:02 +00:00
|
|
|
|
intro:{content:'expansion',markcount:'expansion'},
|
|
|
|
|
onremove:function(player,skill){
|
|
|
|
|
var cards=player.getExpansions(skill);
|
|
|
|
|
if(cards.length) player.loseToDiscardpile(cards);
|
|
|
|
|
},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
ai:{
|
|
|
|
|
filterDamage:true,
|
|
|
|
|
skillTagFilter:function(player,tag,arg){
|
2022-05-09 16:59:02 +00:00
|
|
|
|
if(!player.getExpansions('qiaoyan').length) return false;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
if(arg&&arg.player){
|
|
|
|
|
if(arg.player.hasSkillTag('jueqing',false,player)) return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
combo:'xianzhu',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xianzhu:{
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
direct:true,
|
|
|
|
|
locked:true,
|
|
|
|
|
filter:function(event,player){
|
2022-04-10 16:34:02 +00:00
|
|
|
|
return player.getExpansions('qiaoyan').length>0;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2022-04-10 16:34:02 +00:00
|
|
|
|
event.cards=player.getExpansions('qiaoyan');
|
2023-01-24 13:26:41 +00:00
|
|
|
|
player.chooseTarget(true,'请选择【献珠】的目标','将'+get.translation(event.cards)+'交给一名角色。若该角色不为你自己,则你令其视为对其攻击范围内的另一名角色使用【杀】').set('ai',function(target){
|
2021-06-10 15:27:23 +00:00
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var eff=get.sgn(get.attitude(player,target))*get.value(_status.event.getParent().cards[0],target);
|
|
|
|
|
if(player!=target) eff+=Math.max.apply(null,game.filterPlayer(function(current){
|
|
|
|
|
if(current!=target&&target.inRange(current)&&target.canUse('sha',current)) return true;
|
|
|
|
|
}).map(function(current){
|
|
|
|
|
return get.effect(current,{name:'sha'},target,player);
|
|
|
|
|
}));
|
|
|
|
|
return eff;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
event.target=target;
|
|
|
|
|
player.logSkill('xianzhu',target);
|
2023-01-24 13:26:41 +00:00
|
|
|
|
player.give(cards,target,'give');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
if(player!=target&&target.isIn()&&player.isIn()&&game.hasPlayer(function(current){
|
|
|
|
|
return current!=target&&target.inRange(current)&&target.canUse('sha',current);
|
|
|
|
|
})){
|
|
|
|
|
var str=get.translation(target);
|
|
|
|
|
player.chooseTarget(true,'选择'+str+'攻击范围内的一名角色,视为'+str+'对其使用【杀】',function(card,player,target){
|
|
|
|
|
var source=_status.event.target;
|
|
|
|
|
return source.inRange(target)&&source.canUse('sha',target);
|
|
|
|
|
}).set('target',target).set('ai',function(target){
|
|
|
|
|
var evt=_status.event;
|
|
|
|
|
return get.effect(target,{name:'sha'},evt.target,evt.player)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 3'
|
|
|
|
|
if(result.bool) target.useCard({name:'sha',isCard:true},result.targets[0],false);
|
|
|
|
|
},
|
|
|
|
|
ai:{combo:'qiaoyan'},
|
|
|
|
|
},
|
|
|
|
|
huirong:{
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.toShow&&event.toShow.contains('jin_yanghuiyu')&&game.hasPlayer(function(target){
|
|
|
|
|
var num=target.countCards('h');
|
|
|
|
|
return num>target.hp||num<Math.min(5,target.hp);
|
|
|
|
|
});
|
|
|
|
|
},
|
2021-11-26 14:55:37 +00:00
|
|
|
|
hiddenSkill:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget('请选择【慧容】的目标','令一名角色将手牌数摸至/弃置至与其体力值相同(至多摸至五张)',true,function(card,player,target){
|
|
|
|
|
var num=target.countCards('h');
|
|
|
|
|
return num>target.hp||num<Math.min(5,target.hp);
|
|
|
|
|
}).set('ai',function(target){
|
|
|
|
|
var att=get.attitude(_status.event.player,target);
|
|
|
|
|
var num=target.countCards('h');
|
|
|
|
|
if(num>target.hp) return -att*(num-target.hp);
|
|
|
|
|
return att*Math.max(0,Math.min(5,target.hp)-target.countCards('h'));
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.line(target,'green');
|
|
|
|
|
if(target.countCards('h')<target.hp) target.drawTo(Math.min(5,target.hp));
|
|
|
|
|
else target.chooseToDiscard('h',true,target.countCards('h')-target.hp);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ciwei:{
|
|
|
|
|
trigger:{global:'useCard'},
|
|
|
|
|
direct:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.all_excluded||event.player==player||event.player!=_status.currentPhase||!player.countCards('he')) return false;
|
|
|
|
|
return event.player.getHistory('useCard').indexOf(event)==1&&['basic','trick'].contains(get.type(event.card));
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2021-08-18 13:42:06 +00:00
|
|
|
|
if(player!=game.me&&!player.isOnline()) game.delayx();
|
2021-06-10 15:27:23 +00:00
|
|
|
|
player.chooseToDiscard(get.prompt('ciwei',trigger.player),'弃置一张牌,取消'+get.translation(trigger.card)+'的所有目标','he').set('ai',function(card){
|
|
|
|
|
return (_status.event.goon/1.4)-get.value(card);
|
|
|
|
|
}).set('goon',function(){
|
|
|
|
|
if(!trigger.targets.length) return -get.attitude(player,trigger.player);
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i of trigger.targets){
|
|
|
|
|
num-=get.effect(i,trigger.card,trigger.player,player)
|
|
|
|
|
}
|
|
|
|
|
return num;
|
2021-10-22 05:07:02 +00:00
|
|
|
|
}()).setHiddenSkill(event.name).logSkill=['ciwei',trigger.player];
|
2021-06-10 15:27:23 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
trigger.targets.length=0;
|
|
|
|
|
trigger.all_excluded=true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
global:'ciwei_ai',
|
|
|
|
|
},
|
|
|
|
|
ciwei_ai:{
|
|
|
|
|
mod:{
|
|
|
|
|
aiOrder:function(player,card,num){
|
|
|
|
|
if(player!=_status.currentPhase||player.getHistory('useCard').length>1||!game.hasPlayer(function(current){
|
|
|
|
|
return current!=player&&(get.realAttitude||get.attitude)(current,player)<0&¤t.hasSkill('ciwei')&¤t.countCards('he')>0;
|
|
|
|
|
})) return;
|
|
|
|
|
if(player.getHistory('useCard').length==0){
|
|
|
|
|
if(['basic','trick'].contains(get.type(card))) return num+10;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(!['basic','trick'].contains(get.type(card))) return num+10;
|
|
|
|
|
if(!player._ciwei_temp){
|
|
|
|
|
player._ciwei_temp=true;
|
|
|
|
|
num/=Math.max(1,player.getUseValue(card));
|
|
|
|
|
}
|
|
|
|
|
delete player._ciwei_temp;
|
|
|
|
|
return num;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
caiyuan:{
|
2023-03-31 11:34:38 +00:00
|
|
|
|
trigger:{player:'phaseEnd'},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
forced:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
2023-09-26 04:51:05 +00:00
|
|
|
|
if(player.phaseNumber<=1) return false;
|
|
|
|
|
const history1=_status.globalHistory,history2=player.actionHistory;
|
|
|
|
|
for(let i=0;i<Math.min(history1.length,history2.length);i++){
|
|
|
|
|
let i1=history1.length-1-i,i2=history2.length-1-i;
|
|
|
|
|
if(i>0&&history2[i2].isMe) break;
|
|
|
|
|
if(history1[i1].changeHp.some(evt=>evt.player==player&&evt.num<0)) return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw(2);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
zhuosheng:{
|
|
|
|
|
audio:2,
|
|
|
|
|
locked:false,
|
2021-07-28 08:46:10 +00:00
|
|
|
|
init:function(player){
|
|
|
|
|
player.addSkill('zhuosheng_count');
|
|
|
|
|
if(game.phaseNumber>0){
|
|
|
|
|
var hs=player.getCards('h'),all=player.getAllHistory(),cards=[];
|
|
|
|
|
for(var i=all.length-1;i>=0;i--){
|
|
|
|
|
for(var j of all[i].gain){
|
|
|
|
|
cards.addArray(j.cards);
|
|
|
|
|
}
|
|
|
|
|
if(all[i].isRound) break;
|
|
|
|
|
}
|
|
|
|
|
cards=cards.filter(function(i){
|
|
|
|
|
return hs.contains(i);
|
|
|
|
|
});
|
|
|
|
|
if(cards.length) player.addGaintag(cards,'zhuosheng');
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
onremove:function(player){
|
|
|
|
|
player.removeSkill('zhuosheng_count');
|
|
|
|
|
player.removeGaintag('zhuosheng');
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
targetInRange:function(card,player,target){
|
|
|
|
|
if(!card.cards||get.type(card)!='basic') return;
|
|
|
|
|
for(var i of card.cards){
|
|
|
|
|
if(i.hasGaintag('zhuosheng')) return (game.online?player==_status.currentPhase:player.isPhaseUsing());
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cardUsable:function(card,player,target){
|
2021-07-15 04:47:00 +00:00
|
|
|
|
if(!card.cards||get.mode()=='guozhan'||get.type(card)!='basic'||!(game.online?player==_status.currentPhase:player.isPhaseUsing())) return;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
for(var i of card.cards){
|
|
|
|
|
if(i.hasGaintag('zhuosheng')) return Infinity;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
aiOrder:function(player,card,num){
|
|
|
|
|
if(get.itemtype(card)=='card'&&card.hasGaintag('zhuosheng')&&get.type(card)=='basic') return num-0.1;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'useCard2'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filterx:function(event,player){
|
|
|
|
|
if(!player.isPhaseUsing()) return false;
|
|
|
|
|
return player.getHistory('lose',function(evt){
|
|
|
|
|
if(evt.getParent()!=event) return false;
|
|
|
|
|
for(var i in evt.gaintag_map){
|
|
|
|
|
if(evt.gaintag_map[i].contains('zhuosheng')) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}).length>0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!lib.skill.zhuosheng.filterx(event,player)) return false;
|
|
|
|
|
if(get.type(event.card)!='trick') return false;
|
|
|
|
|
if(event.targets&&event.targets.length>0) return true;
|
|
|
|
|
var info=get.info(event.card);
|
|
|
|
|
if(info.allowMultiple==false) return false;
|
|
|
|
|
if(event.targets&&!info.multitarget){
|
|
|
|
|
if(game.hasPlayer(function(current){
|
|
|
|
|
return !event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,player,current)&&lib.filter.targetInRange(event.card,player,current);
|
|
|
|
|
})){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var prompt2='为'+get.translation(trigger.card)+'增加或减少一个目标'
|
|
|
|
|
player.chooseTarget(get.prompt('zhuosheng'),function(card,player,target){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
if(_status.event.targets.contains(target)) return true;
|
|
|
|
|
return lib.filter.targetEnabled2(_status.event.card,player,target)&&lib.filter.targetInRange(_status.event.card,player,target);
|
|
|
|
|
}).set('prompt2',prompt2).set('ai',function(target){
|
|
|
|
|
var trigger=_status.event.getTrigger();
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
return get.effect(target,trigger.card,player,player)*(_status.event.targets.contains(target)?-1:1);
|
|
|
|
|
}).set('targets',trigger.targets).set('card',trigger.card);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
if(!event.isMine()&&!event.isOnline()) game.delayx();
|
|
|
|
|
event.targets=result.targets;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.targets){
|
|
|
|
|
player.logSkill('zhuosheng',event.targets);
|
|
|
|
|
if(trigger.targets.contains(event.targets[0])) trigger.targets.removeArray(event.targets);
|
|
|
|
|
else trigger.targets.addArray(event.targets);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
group:['zhuosheng_equip','zhuosheng_silent'],
|
|
|
|
|
subfrequent:['equip'],
|
|
|
|
|
subSkill:{
|
|
|
|
|
equip:{
|
|
|
|
|
audio:'zhuosheng',
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return get.type(event.card)=='equip'&&lib.skill.zhuosheng.filterx(event,player);
|
|
|
|
|
},
|
|
|
|
|
frequent:true,
|
|
|
|
|
prompt:'是否发动【擢升】摸一张牌?',
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
silent:{
|
|
|
|
|
trigger:{
|
2021-07-28 08:46:10 +00:00
|
|
|
|
player:'useCard1',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
silent:true,
|
|
|
|
|
firstDo:true,
|
|
|
|
|
filter:function(event,player){
|
2021-07-28 08:46:10 +00:00
|
|
|
|
return get.mode()!='guozhan'&&get.type(event.card)=='basic'&&lib.skill.zhuosheng.filterx(event,player)&&event.addCount!==false;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2021-07-28 08:46:10 +00:00
|
|
|
|
trigger.addCount=false;
|
|
|
|
|
var stat=player.getStat();
|
|
|
|
|
if(stat&&stat.card&&stat.card[trigger.card.name]) stat.card[trigger.card.name]--;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
zhuosheng_count:{
|
|
|
|
|
trigger:{
|
|
|
|
|
player:'gainBegin',
|
|
|
|
|
global:'roundStart',
|
|
|
|
|
},
|
|
|
|
|
silent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.name=='gain') return event.getParent(2).name!='zhuosheng_equip';
|
|
|
|
|
return game.roundNumber>1;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(trigger.name=='gain') trigger.gaintag.add('zhuosheng');
|
|
|
|
|
else player.removeGaintag('zhuosheng');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xinquanbian:{
|
|
|
|
|
audio:'quanbian',
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
trigger:{player:['useCard','respond']},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var phase=event.getParent('phaseUse');
|
|
|
|
|
if(!phase||phase.player!=player) return false;
|
|
|
|
|
var suit=get.suit(event.card);
|
|
|
|
|
if(!lib.suit.contains(suit)||!lib.skill.quanbian.hasHand(event)) return false;
|
|
|
|
|
return player.getHistory('useCard',function(evt){
|
|
|
|
|
return evt!=event&&get.suit(evt.card)==suit&&lib.skill.quanbian.hasHand(evt)&&evt.getParent('phaseUse')==phase;
|
|
|
|
|
}).length+player.getHistory('respond',function(evt){
|
|
|
|
|
return evt!=event&&get.suit(evt.card)==suit&&lib.skill.quanbian.hasHand(evt)&&evt.getParent('phaseUse')==phase;
|
|
|
|
|
}).length==0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var cards=get.cards(Math.min(5,player.maxHp));
|
2021-12-09 13:57:51 +00:00
|
|
|
|
game.cardsGotoOrdering(cards);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
var suit=get.suit(trigger.card);
|
2021-12-09 13:57:51 +00:00
|
|
|
|
var next=player.chooseToMove('权变:获得一张不为'+get.translation(suit)+'花色的牌并排列其他牌');
|
|
|
|
|
next.set('suit',suit);
|
|
|
|
|
next.set('list',[
|
|
|
|
|
['牌堆顶',cards],
|
|
|
|
|
['获得'],
|
|
|
|
|
])
|
|
|
|
|
next.set('filterMove',function(from,to,moved){
|
|
|
|
|
var suit=_status.event.suit;
|
|
|
|
|
if(moved[0].contains(from.link)){
|
|
|
|
|
if(typeof to=='number'){
|
|
|
|
|
if(to==1){
|
|
|
|
|
if(moved[1].length) return false;
|
|
|
|
|
return get.suit(from.link,false)!=suit;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if(moved[1].contains(to.link)) return get.suit(from.link,false)!=suit;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(typeof to=='number') return true;
|
|
|
|
|
return get.suit(to.link,false)!=suit;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
next.set('processAI',function(list){
|
|
|
|
|
var cards=list[0][1].slice(0).sort(function(a,b){
|
|
|
|
|
return get.value(b)-get.value(a);
|
|
|
|
|
}),gains=[];
|
|
|
|
|
for(var i of cards){
|
|
|
|
|
if(get.suit(i,false)!=_status.event.suit){
|
|
|
|
|
cards.remove(i);
|
|
|
|
|
gains.push(i);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return [cards,gains];
|
2021-06-10 15:27:23 +00:00
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
2021-12-09 13:57:51 +00:00
|
|
|
|
var list=result.moved;
|
|
|
|
|
if(list[1].length) player.gain(list[1],'gain2');
|
|
|
|
|
while(list[0].length){
|
|
|
|
|
ui.cardPile.insertBefore(list[0].pop(),ui.cardPile.firstChild);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
game.updateRoundNumber();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
group:'xinquanbian_count',
|
|
|
|
|
},
|
|
|
|
|
xinquanbian_count:{
|
|
|
|
|
trigger:{player:'useCard1'},
|
|
|
|
|
silent:true,
|
|
|
|
|
firstDo:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.isPhaseUsing()&&lib.skill.quanbian.hasHand(event)&&get.type(event.card)!='equip';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var stat=player.getStat('skill');
|
|
|
|
|
if(!stat.quanbian) stat.quanbian=0;
|
|
|
|
|
stat.quanbian++;
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
cardEnabled2:function(card,player){
|
|
|
|
|
var stat=player.getStat('skill');
|
|
|
|
|
if(stat.quanbian&&stat.quanbian>=player.maxHp&&get.position(card)=='h'&&get.type(card,player)!='equip') return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
taoyin:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
hiddenSkill:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
logTarget:function(){
|
|
|
|
|
return _status.currentPhase;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=_status.currentPhase;
|
|
|
|
|
return target&&target!=player&&target.isAlive();
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.attitude(player,_status.currentPhase)<0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
_status.currentPhase.addTempSkill('taoyin2');
|
|
|
|
|
_status.currentPhase.addMark('taoyin2',2,false);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
taoyin2:{
|
|
|
|
|
onremove:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:'手牌上限-#',
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
|
|
|
|
return num-player.countMark('taoyin2');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yimie:{
|
|
|
|
|
audio:2,
|
|
|
|
|
usable:1,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
trigger:{source:'damageBegin1'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player!=event.player&&event.num<event.player.hp;
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
2023-10-09 08:44:15 +00:00
|
|
|
|
if(event.player.hasSkillTag('nodamage')) return false;
|
|
|
|
|
let tj = player.countCards('hs', function (card) {
|
|
|
|
|
return get.name(card) === 'tao' || get.name(card) === 'jiu';
|
|
|
|
|
}),
|
|
|
|
|
att = get.attitude(_status.event.player, event.player),
|
2023-10-26 14:38:37 +00:00
|
|
|
|
eff = get.damageEffect(event.player, player, _status.event.player, get.natureList(event)),
|
2023-10-09 08:44:15 +00:00
|
|
|
|
fd = event.player.hasSkillTag('filterDamage', null, {
|
|
|
|
|
player: player,
|
|
|
|
|
card: event.card
|
|
|
|
|
}),
|
|
|
|
|
hp = player.hp + tj;
|
|
|
|
|
if(player.storage.tairan2) hp -= player.storage.tairan2;
|
|
|
|
|
if(eff <= 0 || fd || att >= -2 || Math.abs(hp) <= 1) return false;
|
2023-10-26 14:38:37 +00:00
|
|
|
|
if(hp > 2 || eff > 0 && event.player.isLinked() && event.hasNature()) return true;
|
2023-10-09 08:44:15 +00:00
|
|
|
|
return !event.player.countCards('hs') || event.player.hp > 2 * event.num && !event.player.hasSkillTag('maixie');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
content:function(){
|
|
|
|
|
player.loseHp();
|
|
|
|
|
trigger.player.addTempSkill('yimie2');
|
|
|
|
|
trigger.yimie_num=trigger.player.hp-trigger.num;
|
|
|
|
|
trigger.num=trigger.player.hp;
|
|
|
|
|
},
|
2023-10-09 08:44:15 +00:00
|
|
|
|
ai:{
|
|
|
|
|
damageBonus:true,
|
|
|
|
|
skillTagFilter:function(player,tag,arg){
|
|
|
|
|
return arg && arg.target && arg.target.hp > 1 && player.hp > 1 && get.attitude(player, arg.target) < -2;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
yimie2:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return typeof event.yimie_num=='number';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.recover(trigger.yimie_num);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ruilve:{
|
|
|
|
|
unique:true,
|
|
|
|
|
audio:2,
|
|
|
|
|
global:'ruilve2',
|
|
|
|
|
zhuSkill:true,
|
|
|
|
|
},
|
|
|
|
|
ruilve2:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
discard:false,
|
|
|
|
|
lose:false,
|
|
|
|
|
delay:false,
|
|
|
|
|
line:true,
|
2023-06-05 12:28:32 +00:00
|
|
|
|
log:false,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
prepare:function(cards,player,targets){
|
|
|
|
|
targets[0].logSkill('ruilve');
|
|
|
|
|
},
|
|
|
|
|
prompt:function(){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var list=game.filterPlayer(function(target){
|
|
|
|
|
return target!=player&&target.hasZhuSkill('ruilve',player);
|
|
|
|
|
});
|
|
|
|
|
var str='将一张具有伤害标签的基本牌或锦囊牌交给'+get.translation(list);
|
|
|
|
|
if(list.length>1) str+='中的一人';
|
|
|
|
|
return str;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.group!='jin') return false;
|
|
|
|
|
if(player.countCards('h',lib.skill.ruilve2.filterCard)==0) return false;
|
|
|
|
|
return game.hasPlayer(function(target){
|
|
|
|
|
return target!=player&&target.hasZhuSkill('ruilve',player)&&!target.hasSkill('ruilve3');
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterCard:function(card){
|
|
|
|
|
if(!get.tag(card,'damage')) return false;
|
|
|
|
|
var type=get.type(card);
|
|
|
|
|
return (type=='basic'||type=='trick');
|
|
|
|
|
},
|
|
|
|
|
visible:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.hasZhuSkill('ruilve',player)&&!target.hasSkill('ruilve3');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2023-01-24 13:26:41 +00:00
|
|
|
|
player.give(cards,target);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
target.addTempSkill('ruilve3','phaseUseEnd');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.3,
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
target:5
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ruilve3:{},
|
|
|
|
|
tairan:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hp<player.maxHp||player.countCards('h')<player.maxHp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.addSkill('tairan2');
|
|
|
|
|
if(!player.storage.tairan2) player.storage.tairan2=0;
|
2023-03-31 11:34:38 +00:00
|
|
|
|
var num=player.maxHp-player.hp;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
if(num>0){
|
2023-03-31 11:34:38 +00:00
|
|
|
|
player.storage.tairan2=num;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
player.recover(num);
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(player.countCards('h')<player.maxHp) player.drawTo(Math.min(player.maxHp,5+player.countCards('h'))).gaintag=['tairan'];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tairan2:{
|
|
|
|
|
mod:{
|
|
|
|
|
aiValue:function(player,card,num){
|
|
|
|
|
if(card.hasGaintag&&card.hasGaintag('tairan')) return num/10;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
audio:'tairan',
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
charlotte:true,
|
|
|
|
|
forced:true,
|
|
|
|
|
onremove:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
var map=player.storage.tairan2;
|
|
|
|
|
if(map>0) player.loseHp(map);
|
|
|
|
|
var hs=player.getCards('h',function(card){
|
|
|
|
|
return card.hasGaintag('tairan');
|
|
|
|
|
});
|
|
|
|
|
if(hs.length) player.discard(hs);
|
|
|
|
|
player.removeSkill('tairan2');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
baoqie:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
forced:true,
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
hiddenSkill:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.toShow&&event.toShow.contains('jin_xiahouhui');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var card=get.cardPile(function(card){
|
|
|
|
|
return get.subtype(card,false)=='equip5'&&!get.cardtag(card,'gifts');
|
|
|
|
|
});
|
|
|
|
|
if(!card){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
event.card=card;
|
|
|
|
|
player.gain(card,'gain2');
|
|
|
|
|
'step 1'
|
|
|
|
|
if(player.getCards('h').contains(card)&&get.subtype(card)=='equip5') player.chooseUseTarget(card).nopopup=true;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
jyishi:{
|
|
|
|
|
audio:2,
|
2022-12-04 16:16:32 +00:00
|
|
|
|
trigger:{
|
|
|
|
|
global:['loseAfter','loseAsyncAfter'],
|
|
|
|
|
},
|
|
|
|
|
usable:1,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
direct:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
2022-12-04 16:16:32 +00:00
|
|
|
|
var target=_status.currentPhase;
|
2023-07-31 22:47:50 +00:00
|
|
|
|
if(!target||!target.isIn()||event.type!='discard'||!target.isPhaseUsing()) return false;
|
|
|
|
|
if(target==player) return false;
|
2023-01-27 13:21:56 +00:00
|
|
|
|
var evt=event.getl(target);
|
2022-12-04 16:16:32 +00:00
|
|
|
|
for(var i of evt.hs){
|
|
|
|
|
if(get.position(i,true)=='d') return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2022-12-04 16:16:32 +00:00
|
|
|
|
event.target=_status.currentPhase;
|
|
|
|
|
event.cards=trigger.getl(event.target).hs.filterInD('d');
|
|
|
|
|
var str='是否发动【宜室】令'+get.translation(event.target)+'获得一张牌';
|
2021-06-10 15:27:23 +00:00
|
|
|
|
if(event.cards.length>1) str+=',然后获得其余的牌';
|
|
|
|
|
str+='?';
|
|
|
|
|
player.chooseButton([str,event.cards]).set('ai',function(button){
|
|
|
|
|
var card=button.link;
|
|
|
|
|
var source=_status.event.source;
|
|
|
|
|
if(get.attitude(player,source)>0) return Math.max(1,source.getUseValue(card,null,true));
|
|
|
|
|
var cards=_status.event.getParent().cards.slice(0);
|
|
|
|
|
if(cards.length==1) return -get.value(card);
|
|
|
|
|
cards.remove(card);
|
|
|
|
|
return (get.value(cards)-get.value(card)-2);
|
2022-12-04 16:16:32 +00:00
|
|
|
|
}).set('source',event.target).setHiddenSkill(event.name);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
2022-12-04 16:16:32 +00:00
|
|
|
|
player.logSkill('jyishi',target);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
if(cards.length>1){
|
2022-12-04 16:16:32 +00:00
|
|
|
|
target.$gain2(result.links[0]);
|
|
|
|
|
target.gain(result.links[0],'log');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
else trigger.player.gain(result.links[0],'gain2');
|
|
|
|
|
cards.remove(result.links[0]);
|
|
|
|
|
if(cards.length) player.gain(cards,'gain2');
|
|
|
|
|
}
|
2022-12-04 16:16:32 +00:00
|
|
|
|
else player.storage.counttrigger.jyishi--;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
2022-12-04 16:16:32 +00:00
|
|
|
|
jyishi2:{charlotte:true},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
shiduo:{
|
|
|
|
|
audio:2,
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return game.hasPlayer(function(target){
|
|
|
|
|
return player!=target&&player.canCompare(target);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player!=target&&player.canCompare(target);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseToCompare(target);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool&&target.isAlive()){
|
2023-01-24 13:26:41 +00:00
|
|
|
|
var num=target.countCards('h');
|
|
|
|
|
if(num>0) player.gainPlayerCard(target,true,'h',num);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
var num=Math.floor(player.countCards('h')/2);
|
|
|
|
|
if(num&&target.isAlive()) player.chooseCard('h',num,true,'交给'+get.translation(target)+get.cnNumber(num)+'张牌')
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 3'
|
2023-01-24 13:26:41 +00:00
|
|
|
|
if(result.bool&&result.cards&&result.cards.length) player.give(result.cards,target);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var delta=(target.countCards('h')-player.countCards('h'));
|
|
|
|
|
if(delta<0) return 0;
|
|
|
|
|
return -1-delta;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tuishi:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
forced:true,
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
locked:false,
|
|
|
|
|
hiddenSkill:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=_status.currentPhase;
|
|
|
|
|
return player!=target&&target&&target.isAlive()&&event.toShow&&event.toShow.contains('jin_simazhao');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addTempSkill('tuishi2');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tuishi2:{
|
|
|
|
|
trigger:{global:'phaseEnd'},
|
|
|
|
|
direct:true,
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
charlotte:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=_status.currentPhase;
|
|
|
|
|
return target!=player&&target&&target.isAlive()&&game.hasPlayer(function(current){
|
|
|
|
|
return current!=target&&target.inRange(current);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var target=_status.currentPhase;
|
|
|
|
|
event.target=target;
|
|
|
|
|
player.chooseTarget(get.prompt2('tuishi',event.target),function(card,player,target){
|
|
|
|
|
var source=_status.event.source;
|
|
|
|
|
return source!=target&&source.inRange(target);
|
|
|
|
|
}).set('source',target).set('goon',get.damageEffect(target,player,player)>0).set('ai',function(target){
|
|
|
|
|
if(!_status.event.goon) return 0;
|
|
|
|
|
var evt=_status.event;
|
|
|
|
|
return get.effect(target,{name:'sha'},evt.source,evt.player)
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.target2=result.targets[0];
|
|
|
|
|
player.logSkill('tuishi');
|
|
|
|
|
player.line2([target,event.target2]);
|
|
|
|
|
game.delayx();
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
target.chooseToUse({
|
|
|
|
|
preTarget:event.target2,
|
2023-10-26 10:44:24 +00:00
|
|
|
|
prompt:'请对'+get.translation(event.target2)+'使用一张【杀】,或受到来自'+get.translation(player)+'的1点伤害',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filterCard:function(card,player){
|
|
|
|
|
return get.name(card)=='sha'&&lib.filter.filterCard.apply(this,arguments);
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==_status.event.preTarget&&lib.filter.filterTarget.apply(this,arguments);
|
|
|
|
|
},
|
|
|
|
|
addCount:false,
|
|
|
|
|
});
|
|
|
|
|
'step 3'
|
|
|
|
|
if(!result.bool) target.damage();
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-11-01 14:32:23 +00:00
|
|
|
|
xinchoufa:{
|
|
|
|
|
audio:'choufa',
|
|
|
|
|
inherit:'choufa',
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.choosePlayerCard(target,'h',true);
|
|
|
|
|
'step 1'
|
|
|
|
|
player.showCards(result.cards,get.translation(player)+'对'+get.translation(target)+'发动了【筹伐】');
|
|
|
|
|
var type=get.type2(result.cards[0],target),hs=target.getCards('h',function(card){
|
|
|
|
|
return card!=result.cards[0]&&get.type2(card,target)!=type;
|
|
|
|
|
});
|
|
|
|
|
if(hs.length){
|
|
|
|
|
target.addGaintag(hs,'xinchoufa');
|
|
|
|
|
target.addTempSkill('xinchoufa2',{player:'phaseAfter'});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xinchoufa2:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
onremove:function(player){
|
|
|
|
|
player.removeGaintag('xinchoufa');
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
cardname:function(card){
|
|
|
|
|
if(get.itemtype(card)=='card'&&card.hasGaintag('xinchoufa')) return 'sha';
|
|
|
|
|
},
|
|
|
|
|
cardnature:function(card){
|
|
|
|
|
if(get.itemtype(card)=='card'&&card.hasGaintag('xinchoufa')) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
choufa:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
audio:2,
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return game.hasPlayer(function(current){
|
|
|
|
|
return lib.skill.choufa.filterTarget(null,player,current);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&!target.hasSkill('choufa2')&&target.countCards('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.choosePlayerCard(target,'h',true);
|
|
|
|
|
'step 1'
|
|
|
|
|
player.showCards(result.cards);
|
|
|
|
|
var type=get.type2(result.cards[0],target);
|
|
|
|
|
target.storage.choufa2=type;
|
|
|
|
|
target.addTempSkill('choufa2',{player:'phaseAfter'});
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return -target.countCards('h');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
choufa2:{
|
|
|
|
|
onremove:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
mark:true,
|
|
|
|
|
intro:{content:'手牌中的非$牌均视为杀'},
|
|
|
|
|
mod:{
|
|
|
|
|
cardname:function(card,player){
|
|
|
|
|
if(get.type2(card,false)!=player.storage.choufa2) return 'sha';
|
|
|
|
|
},
|
|
|
|
|
cardnature:function(card,player){
|
|
|
|
|
if(get.type2(card,false)!=player.storage.choufa2) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
zhaoran:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
content:function(){
|
2023-09-06 03:26:37 +00:00
|
|
|
|
player.addTempSkill('zhaoran2','phaseUseAfter');
|
|
|
|
|
var cards=player.getCards('h');
|
|
|
|
|
if(cards.length>0) player.addShownCards(cards,'visible_zhaoran');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
zhaoran2:{
|
|
|
|
|
audio:'zhaoran',
|
2023-09-06 03:26:37 +00:00
|
|
|
|
group:'zhaoran3',
|
|
|
|
|
init:(player,skill)=>{
|
|
|
|
|
if(!player.storage[skill]) player.storage[skill]=[];
|
|
|
|
|
},
|
|
|
|
|
onremove:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
trigger:{
|
|
|
|
|
player:'loseAfter',
|
2022-04-10 16:34:02 +00:00
|
|
|
|
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
charlotte:true,
|
2023-09-06 03:26:37 +00:00
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event,player,name){
|
|
|
|
|
if(name=='gainBegin') return true;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
var evt=event.getl(player);
|
|
|
|
|
if(!evt||!evt.hs||!evt.hs.length) return false;
|
|
|
|
|
var list=player.getStorage('zhaoran2');
|
|
|
|
|
for(var i of evt.hs){
|
|
|
|
|
var suit=get.suit(i,player);
|
|
|
|
|
if(!list.contains(suit)&&!player.countCards('h',{suit:suit})) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2021-08-18 13:42:06 +00:00
|
|
|
|
if(trigger.delay===false) game.delayx();
|
2023-09-06 03:26:37 +00:00
|
|
|
|
'step 1'
|
2021-06-10 15:27:23 +00:00
|
|
|
|
var list=[];
|
|
|
|
|
var suits=get.copy(player.storage.zhaoran2);
|
|
|
|
|
suits.addArray(player.getCards('h').map(function(card){
|
|
|
|
|
return get.suit(card);
|
|
|
|
|
}));
|
|
|
|
|
var evt=trigger.getl(player);
|
|
|
|
|
for(var i of evt.hs){
|
|
|
|
|
var suit=get.suit(i,player);
|
|
|
|
|
if(!suits.contains(suit)) list.add(suit);
|
|
|
|
|
}
|
|
|
|
|
event.count=list.length;
|
|
|
|
|
player.markAuto('zhaoran2',list);
|
|
|
|
|
'step 1'
|
|
|
|
|
event.count--;
|
|
|
|
|
var filterTarget=function(card,player,target){
|
|
|
|
|
return target!=player&&target.countDiscardableCards(player,'he')>0;
|
|
|
|
|
}
|
|
|
|
|
if(!game.hasPlayer(function(current){
|
|
|
|
|
return filterTarget(null,player,current);
|
|
|
|
|
})) event._result={bool:false};
|
|
|
|
|
else player.chooseTarget(filterTarget,'弃置一名其他角色的一张牌或摸一张牌').set('ai',function(target){
|
|
|
|
|
var att=get.attitude(player,target);
|
|
|
|
|
if(att>=0) return 0;
|
|
|
|
|
if(target.countCards('he',function(card){
|
|
|
|
|
return get.value(card)>5;
|
|
|
|
|
})) return -att;
|
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
'step 2'
|
2023-09-06 03:26:37 +00:00
|
|
|
|
if(!result.bool){
|
|
|
|
|
player.logSkill('zhaoran2');
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
2021-06-10 15:27:23 +00:00
|
|
|
|
else{
|
|
|
|
|
var target=result.targets[0];
|
2023-09-06 03:26:37 +00:00
|
|
|
|
player.logSkill('zhaoran2',target);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
player.discardPlayerCard(target,true,'he');
|
|
|
|
|
}
|
|
|
|
|
if(event.count>0) event.goto(1);
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'已因$牌触发过效果',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
zhaoran3:{
|
2023-09-06 03:26:37 +00:00
|
|
|
|
trigger:{player:['phaseUseEnd','gainBegin']},
|
|
|
|
|
forced:true,
|
|
|
|
|
charlotte:true,
|
|
|
|
|
firstDo:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
if(event.triggername=='gainBegin'){
|
|
|
|
|
trigger.gaintag.add('visible_zhaoran');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.hideShownCards(player.getCards('h'),'visible_zhaoran');
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
chengwu:{
|
|
|
|
|
zhuSkill:true,
|
|
|
|
|
mod:{
|
|
|
|
|
inRange:function(from,to){
|
|
|
|
|
if(!from.hasZhuSkill('chengwu')||from._chengwu) return;
|
|
|
|
|
from._chengwu=true;
|
|
|
|
|
var bool=game.hasPlayer(function(current){
|
|
|
|
|
return current!=from&¤t!=to&¤t.group=='jin'&&from.hasZhuSkill('chengwu',current)&¤t.inRange(to);
|
|
|
|
|
});
|
|
|
|
|
delete from._chengwu;
|
|
|
|
|
if(bool) return true;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
shiren:{
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
hiddenSkill:true,
|
|
|
|
|
logTarget:function(){
|
|
|
|
|
return _status.currentPhase;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!event.toShow||!event.toShow.contains('jin_wangyuanji')) return false;
|
|
|
|
|
var target=_status.currentPhase;
|
|
|
|
|
return target&&target!=player&&target.isAlive()&&target.countCards('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var next=game.createEvent('yanxi',false);
|
|
|
|
|
next.player=player;
|
|
|
|
|
next.target=_status.currentPhase;
|
|
|
|
|
next.setContent(lib.skill.yanxi.content);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yanxi:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.countCards('h')>0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return game.hasPlayer(function(current){
|
|
|
|
|
return current!=player&¤t.countCards('h')>0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.card=target.getCards('h').randomGet();
|
|
|
|
|
var cards;
|
|
|
|
|
cards=get.cards(2);
|
|
|
|
|
event.cards=cards.concat([event.card]);
|
|
|
|
|
while(cards.length){
|
|
|
|
|
ui.cardPile.insertBefore(cards.pop().fix(),ui.cardPile.firstChild);
|
|
|
|
|
}
|
|
|
|
|
if(get.mode()=='guozhan'){
|
|
|
|
|
var num=ui.cardPile.childElementCount;
|
|
|
|
|
var num1=get.rand(1,num-1),num2=get.rand(1,num-1);
|
|
|
|
|
if(num1==num2){
|
|
|
|
|
if(num1==0) num2++;
|
|
|
|
|
else num1--;
|
|
|
|
|
}
|
|
|
|
|
event.cards=[event.card,ui.cardPile.childNodes[num1],ui.cardPile.childNodes[num2]];
|
|
|
|
|
}
|
|
|
|
|
game.updateRoundNumber();
|
|
|
|
|
event.cards.randomSort();
|
|
|
|
|
game.log(player,'展示了',event.cards);
|
|
|
|
|
event.videoId=lib.status.videoId++;
|
|
|
|
|
var str=get.translation(player)+'对'+get.translation(target)+'发动了【宴戏】';
|
|
|
|
|
game.broadcastAll(function(str,id,cards){
|
|
|
|
|
var dialog=ui.create.dialog(str,cards);
|
|
|
|
|
dialog.videoId=id;
|
|
|
|
|
},str,event.videoId,event.cards);
|
|
|
|
|
game.addVideo('showCards',player,[str,get.cardsInfo(event.cards)]);
|
|
|
|
|
game.delay(2);
|
|
|
|
|
'step 1'
|
|
|
|
|
var func=function(id,target){
|
|
|
|
|
var dialog=get.idDialog(id);
|
|
|
|
|
if(dialog) dialog.content.firstChild.innerHTML='猜猜哪张是'+get.translation(target)+'的手牌?';
|
|
|
|
|
};
|
|
|
|
|
if(player==game.me) func(event.videoId,target);
|
|
|
|
|
else if(player.isOnline()) player.send(func,event.videoId,target);
|
|
|
|
|
'step 2'
|
|
|
|
|
var next=player.chooseButton(true);
|
|
|
|
|
next.set('dialog',event.videoId);
|
|
|
|
|
next.set('ai',function(button){
|
|
|
|
|
if(_status.event.answer) return button.link==_status.event.answer?1:0;
|
|
|
|
|
return get.value(button.link,_status.event.player);
|
|
|
|
|
});
|
|
|
|
|
if(player.hasSkillTag('viewHandcard',null,target,true)) next.set('answer',card);
|
|
|
|
|
'step 3'
|
|
|
|
|
game.broadcastAll('closeDialog',event.videoId);
|
|
|
|
|
player.addTempSkill('yanxi2');
|
|
|
|
|
var card2=result.links[0];
|
|
|
|
|
if(card2==card){
|
|
|
|
|
player.popup('洗具');
|
|
|
|
|
cards.remove(card2);
|
|
|
|
|
player.$gain2(cards);
|
|
|
|
|
player.gain(cards,'log').gaintag.add('yanxi');
|
|
|
|
|
player.gain(card,target,'bySelf','give').gaintag.add('yanxi');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.popup('杯具');
|
|
|
|
|
player.gain(card2,'gain2').gaintag.add('yanxi');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
player:1,
|
|
|
|
|
target:-0.6,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yanxi2:{
|
|
|
|
|
mod:{
|
|
|
|
|
ignoredHandcard:function(card,player){
|
|
|
|
|
if(card.hasGaintag('yanxi')) return true;
|
|
|
|
|
},
|
|
|
|
|
cardDiscardable:function(card,player,name){
|
|
|
|
|
if(name=='phaseDiscard'&&card.hasGaintag('yanxi')) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
onremove:function(player){
|
|
|
|
|
player.removeGaintag('yanxi');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
sanchen:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var stat=player.getStat('sanchen');
|
|
|
|
|
return game.hasPlayer(function(current){
|
|
|
|
|
return (!stat||!stat.contains(current));
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
var stat=player.getStat('sanchen');
|
|
|
|
|
return (!stat||!stat.contains(target));
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var stat=player.getStat();
|
|
|
|
|
if(!stat.sanchen) stat.sanchen=[];
|
|
|
|
|
stat.sanchen.push(target);
|
|
|
|
|
if(get.mode()!='guozhan') player.addMark('sanchen',1,false);
|
|
|
|
|
target.draw(3);
|
|
|
|
|
'step 1'
|
2023-05-13 14:57:29 +00:00
|
|
|
|
if(!target.countCards('he')) event._result={bool:false};
|
2021-06-10 15:27:23 +00:00
|
|
|
|
else target.chooseToDiscard('he',true,3).set('ai',function(card){
|
|
|
|
|
var list=ui.selected.cards.map(function(i){
|
|
|
|
|
return get.type2(i);
|
|
|
|
|
});
|
|
|
|
|
if(!list.contains(get.type2(card))) return 7-get.value(card);
|
|
|
|
|
return -get.value(card);
|
|
|
|
|
});
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool&&result.cards&&result.cards.length){
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i of result.cards) list.add(get.type2(i));
|
|
|
|
|
if(list.length==result.cards.length){
|
|
|
|
|
target.draw();
|
|
|
|
|
player.getStat('skill').sanchen--;
|
|
|
|
|
if(get.mode()=='guozhan') player.addTempSkill('pozhu');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.draw();
|
|
|
|
|
player.getStat('skill').sanchen--;
|
|
|
|
|
if(get.mode()=='guozhan') player.addTempSkill('pozhu');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
threaten:1.7,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hasSkillTag('nogain')) return 0.1;
|
|
|
|
|
return Math.sqrt(target.countCards('he'));
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'已发动过#次技能',
|
|
|
|
|
},
|
|
|
|
|
marktext:'陈',
|
|
|
|
|
},
|
|
|
|
|
zhaotao:{
|
|
|
|
|
forbid:['guozhan'],
|
|
|
|
|
trigger:{player:'phaseZhunbeiBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
juexingji:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'thunder',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.countMark('sanchen')>2;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.awakenSkill('zhaotao');
|
|
|
|
|
player.loseMaxHp();
|
|
|
|
|
player.addSkillLog('pozhu');
|
|
|
|
|
},
|
|
|
|
|
derivation:'pozhu',
|
|
|
|
|
},
|
|
|
|
|
pozhu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
viewAsFilter:function(player){
|
2022-11-12 11:47:23 +00:00
|
|
|
|
return !player.hasSkill('pozhu3',null,null,false)&&player.countCards('hs')>0;
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
viewAs:{name:'chuqibuyi'},
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'hs',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 7-get.value(card);
|
|
|
|
|
},
|
|
|
|
|
group:'pozhu2',
|
|
|
|
|
},
|
|
|
|
|
pozhu2:{
|
|
|
|
|
trigger:{player:'useCardAfter'},
|
|
|
|
|
silent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.skill=='pozhu'&&(get.mode()=='guozhan'||!player.getHistory('sourceDamage',function(evt){
|
|
|
|
|
return evt.card==event.card;
|
|
|
|
|
}).length);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addTempSkill('pozhu3');
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-12 11:47:23 +00:00
|
|
|
|
pozhu3:{charlotte:true},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
xijue:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{
|
2021-11-23 04:58:31 +00:00
|
|
|
|
global:'phaseBefore',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
player:['enterGame','showCharacterAfter'],
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player._xijue) return false;
|
|
|
|
|
if(get.mode()=='guozhan') return event.name=='showCharacter'&&event.toShow&&event.toShow.contains('gz_zhanghuyuechen');
|
2021-11-23 04:58:31 +00:00
|
|
|
|
return (event.name!='showCharacter')&&(event.name!='phase'||game.phaseNumber==0);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addMark('xijue',4);
|
|
|
|
|
player._xijue=true;
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
name2:'爵',
|
|
|
|
|
content:'mark',
|
|
|
|
|
},
|
|
|
|
|
derivation:['xijue_tuxi','xijue_xiaoguo'],
|
|
|
|
|
group:['xijue_gain','xijue_tuxi','xijue_xiaoguo'],
|
|
|
|
|
},
|
|
|
|
|
xijue_gain:{
|
|
|
|
|
audio:'xijue',
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var stat=player.getStat();
|
|
|
|
|
return stat.damage&&stat.damage>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addMark('xijue',player.getStat().damage);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xijue_tuxi:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{
|
|
|
|
|
player:"phaseDrawBegin2",
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.num>0&&!event.numFixed&&player.hasMark('xijue')&&game.hasPlayer(function(target){
|
|
|
|
|
return player!=target&&target.countCards('h')>0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
content:function (){
|
|
|
|
|
"step 0"
|
|
|
|
|
var num=trigger.num;
|
|
|
|
|
if(get.mode()=='guozhan'&&num>2) num=2;
|
|
|
|
|
player.chooseTarget('是否弃置一枚“爵”发动【突袭】?','获得至多'+get.translation(num)+'名角色的各一张手牌,然后少摸等量的牌',[1,num],function(card,player,target){
|
|
|
|
|
return target.countCards('h')>0&&player!=target;
|
|
|
|
|
},function(target){
|
|
|
|
|
var att=get.attitude(_status.event.player,target);
|
|
|
|
|
if(target.hasSkill('tuntian')) return att/10;
|
|
|
|
|
return 1-att;
|
|
|
|
|
});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
result.targets.sortBySeat();
|
|
|
|
|
player.logSkill('xijue_tuxi',result.targets);
|
|
|
|
|
player.removeMark('xijue',1);
|
|
|
|
|
player.gainMultiple(result.targets);
|
|
|
|
|
trigger.num-=result.targets.length;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(trigger.num<=0) game.delay();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xijue_xiaoguo:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:'phaseJieshuBegin'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hasMark('xijue')&&event.player.isAlive()&&event.player!=player&&player.countCards('h',function(card){
|
|
|
|
|
if(_status.connectMode) return true;
|
|
|
|
|
return get.type(card)=='basic';
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var nono=(Math.abs(get.attitude(player,trigger.player))<3||trigger.player.hp>(player.countMark('xijue')*1.5)||trigger.player.countCards('e',function(card){
|
|
|
|
|
return get.value(card,trigger.player)<=0;
|
|
|
|
|
}));
|
|
|
|
|
if(get.damageEffect(trigger.player,player,player)<=0){
|
|
|
|
|
nono=true;
|
|
|
|
|
}
|
|
|
|
|
var next=player.chooseToDiscard('是否弃置一枚“爵”和一张基本牌,对'+get.translation(trigger.player)+'发动【骁果】?',{type:'basic'});
|
|
|
|
|
next.set('ai',function(card){
|
|
|
|
|
if(_status.event.nono) return 0;
|
|
|
|
|
return 8-get.useful(card);
|
|
|
|
|
});
|
|
|
|
|
next.set('logSkill',['xijue_xiaoguo',trigger.player]);
|
|
|
|
|
next.set('nono',nono);
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.removeMark('xijue',1);
|
|
|
|
|
var nono=(get.damageEffect(trigger.player,player,trigger.player)>=0);
|
2023-10-26 10:44:24 +00:00
|
|
|
|
trigger.player.chooseToDiscard('he','弃置一张装备牌并令'+get.translation(player)+'摸一张牌,或受到1点伤害',{type:'equip'}).set('ai',function(card){
|
2021-06-10 15:27:23 +00:00
|
|
|
|
if(_status.event.nono){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if(_status.event.player.hp==1) return 10-get.value(card);
|
|
|
|
|
return 9-get.value(card);
|
|
|
|
|
}).set('nono',nono);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
if(get.mode()!='guozhan') player.draw();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
trigger.player.damage();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.3,
|
|
|
|
|
threaten:1.3
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
huishi:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'phaseDrawBegin1'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return ui.cardPile.childElementCount%10>0&&!event.numFixed;
|
|
|
|
|
},
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
prompt:function(){
|
|
|
|
|
return get.prompt('huishi')+'(当前牌堆尾数:'+ui.cardPile.childElementCount%10+')';
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return ui.cardPile.childElementCount%10>3;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
trigger.changeToZero();
|
2021-12-09 13:57:51 +00:00
|
|
|
|
var cards=game.cardsGotoOrdering(get.cards(ui.cardPile.childElementCount%10)).cards;
|
|
|
|
|
var num=Math.ceil(cards.length/2);
|
|
|
|
|
var next=player.chooseToMove('慧识:将'+get.cnNumber(num)+'张牌置于牌堆底并获得其余的牌',true);
|
|
|
|
|
next.set('list',[
|
|
|
|
|
['牌堆顶的展示牌',cards],
|
|
|
|
|
['牌堆底'],
|
|
|
|
|
]);
|
|
|
|
|
next.set('filterMove',function(from,to,moved){
|
|
|
|
|
if(moved[0].contains(from)&&to==1) return moved[1].length<_status.event.num;
|
|
|
|
|
return true;
|
|
|
|
|
});
|
|
|
|
|
next.set('filterOk',function(moved){
|
|
|
|
|
return moved[1].length==_status.event.num;
|
|
|
|
|
});
|
|
|
|
|
next.set('num',num);
|
|
|
|
|
next.set('processAI',function(list){
|
|
|
|
|
var cards=list[0][1].slice(0).sort(function(a,b){
|
|
|
|
|
return get.value(b)-get.useful(a);
|
|
|
|
|
});
|
|
|
|
|
return [cards,cards.splice(cards.length-_status.event.num)];
|
2021-06-10 15:27:23 +00:00
|
|
|
|
});
|
|
|
|
|
'step 1'
|
2021-12-09 13:57:51 +00:00
|
|
|
|
if(result.bool){
|
|
|
|
|
var list=result.moved;
|
|
|
|
|
if(list[0].length) player.gain(list[0],'gain2');
|
|
|
|
|
while(list[1].length) ui.cardPile.appendChild(list[1].shift().fix());
|
2021-06-10 15:27:23 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
qingleng:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{global:'phaseEnd'},
|
|
|
|
|
direct:true,
|
2021-10-22 05:07:02 +00:00
|
|
|
|
preHidden:true,
|
2021-06-10 15:27:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=event.player;
|
2021-06-23 09:24:49 +00:00
|
|
|
|
return target!=player&&target.isIn()&&!target.storage.nohp&&(target.hp+target.countCards('h'))>=(ui.cardPile.childElementCount%10)&&player.countCards('he')>0&&player.canUse({name:'sha',nature:'ice'},target,false);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseCard('he',get.prompt('qingleng',trigger.player),'将一张牌当做冰【杀】对其使用',function(card,player){
|
|
|
|
|
return player.canUse(get.autoViewAs({name:'sha',nature:'ice'},[card]),_status.event.target,false);
|
|
|
|
|
}).set('target',trigger.player).set('ai',function(card){
|
|
|
|
|
if(get.effect(_status.event.target,get.autoViewAs({name:'sha',nature:'ice'},[card]),player)<=0) return false;
|
|
|
|
|
return 6-get.value(card);
|
2021-10-22 05:07:02 +00:00
|
|
|
|
}).setHiddenSkill(event.name);
|
2021-06-10 15:27:23 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.useCard(get.autoViewAs({name:'sha',nature:'ice'},result.cards),result.cards,false,trigger.player,'qingleng');
|
|
|
|
|
if(!player.storage.qingleng||!player.storage.qingleng.contains(trigger.player)){
|
|
|
|
|
player.draw();
|
|
|
|
|
player.markAuto('qingleng',[trigger.player]);
|
|
|
|
|
player.storage.qingleng.sortBySeat();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'已对$发动过此技能',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xuanmu:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'showCharacterAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
hiddenSkill:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.toShow.contains('jin_zhangchunhua')&&player!=_status.currentPhase;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addTempSkill('xuanmu2');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
xuanmu2:{
|
|
|
|
|
trigger:{player:'damageBegin4'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.cancel();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(get.tag(card,'damage')&&!player.hasSkillTag('jueqing',false,target)) return 'zerotarget';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-07-06 08:45:57 +00:00
|
|
|
|
g_hidden_ai:{
|
|
|
|
|
charlotte:true,
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:function(player,target){
|
|
|
|
|
if(get.mode()!='guozhan'&&target.isUnseen(2)) return 0.0001;
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
card:{
|
|
|
|
|
cheliji_sichengliangyu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
derivation:'cheliji',
|
|
|
|
|
destroy:'chexuan',
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['cheliji_sichengliangyu'],
|
|
|
|
|
},
|
|
|
|
|
cheliji_tiejixuanyu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
derivation:'cheliji',
|
|
|
|
|
destroy:'chexuan',
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['cheliji_tiejixuanyu'],
|
|
|
|
|
},
|
|
|
|
|
cheliji_feilunzhanyu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
derivation:'cheliji',
|
|
|
|
|
destroy:'chexuan',
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['cheliji_feilunzhanyu'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
characterIntro:{
|
|
|
|
|
zhanghuyuechen:'张虎,生卒年不详,雁门马邑(今山西朔城区大夫庄)人。三国时期曹魏将领。名将张辽之子。官至偏将军,袭封晋阳侯,有一子张统。乐綝(195~257年),字号不详,阳平郡卫国县(今河南省清丰县)人。三国时期曹魏将领,右将军乐进的儿子。果毅坚毅,袭封广昌亭侯,累迁扬州刺史。甘露二年,为叛乱的征东大将军诸葛诞所杀,追赠卫尉。',
|
|
|
|
|
duyu:'杜预(222年-285年),字元凯,京兆郡杜陵县(今陕西西安)人,中国魏晋时期军事家、经学家、律学家,曹魏散骑常侍杜恕之子。杜预初仕曹魏,任尚书郎,后成为权臣司马昭的幕僚,封丰乐亭侯。西晋建立后,历任河南尹、安西军司、秦州刺史、度支尚书等职。咸宁四年(278年)接替羊祜出任镇南大将军,镇守荆州。他积极备战,支持晋武帝司马炎对孙吴作战,并在咸宁五年(279年)成为晋灭吴之战的统帅之一。战后因功进封当阳县侯,仍镇荆州。太康五年(285年),杜预被征入朝,拜司隶校尉,途中于邓县逝世,终年六十三岁。获赠征南大将军、开府仪同三司,谥号为成。杜预耽思经籍,博学多通,多有建树,时誉为“杜武库”。著有《春秋左氏传集解》及《春秋释例》等。为明朝之前唯一一个同时进入文庙和武庙之人。',
|
|
|
|
|
xiahouhui:'夏侯徽(211年-234年),字媛容,沛国谯县(今安徽亳州)人,司马师第一任妻子。征南大将军夏侯尚之女,母德阳乡主为大司马曹真之妹。夏侯徽与司马师之间,生有五个女儿。夏侯徽很有见识器度,每当司马师有什么想法时,都由她从旁策划协助。当时司马师之父司马懿位居上将重位,而他的儿子们都有雄才大略。夏侯徽深知司马师绝非曹魏忠臣,而司马师对出身曹魏家族的夏侯徽也非常顾忌。青龙二年(234年),正逢“大疫”、“大病”之年,夏侯徽被司马师毒杀,时年二十四岁,死后葬于峻平陵。西晋建国后,追谥夏侯徽为景怀皇后。',
|
|
|
|
|
shibao:'石苞(?~273年),字仲容,渤海南皮(今河北省南皮县)人。三国时曹魏至西晋重要将领,西晋开国功臣。西晋建立后,历任大司马、侍中、司徒等职,封乐陵郡公,卒后谥号为“武”。',
|
2023-09-08 15:30:00 +00:00
|
|
|
|
simazhou:'司马伷(227年~283年6月12日),字子将,河内郡温县(今河南省温县)人。西晋宗室、将领,晋宣帝司马懿第三子,伏太妃所生。晋景帝司马师、文帝司马昭的同父异母弟,晋武帝司马炎的叔父。司马伷少有才气,在曹魏历任宁朔将军、散骑常侍、征虏将军等职,先后受封南安亭侯、东武乡侯,五等爵制建立后,改封南皮伯。西晋建立后,获封东莞郡王,入朝任尚书右仆射、抚军将军,出外拜镇东大将军。后改封琅邪王,加开府仪同三司。西晋伐吴时,率军出涂中,孙皓向他投降并奉上玉玺。战后因功拜大将军,增邑三千户。太康四年(283年),司马伷去世,享年五十七岁。谥号为武,世称“琅邪武王”。著有《周官宁朔新书》八卷,今已亡佚。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
huangzu:'黄祖(?-208年),东汉末年将领。刘表任荆州牧时,黄祖出任江夏太守。初平二年(191年),黄祖在与长沙太守孙坚交战时,其部下将孙坚射死,因此与孙家结下仇怨。之后,黄祖多次率部与东吴军队交战,射杀凌操、徐琨等人。建安十三年(208年),在与孙权的交战中,兵败被杀。',
|
|
|
|
|
cheliji:'彻里吉是历史小说《三国演义》中的虚构人物,西羌国王。蜀相诸葛亮伐魏,魏都督曹真驰书赴羌,国王彻里吉即命雅丹丞相与越吉元帅起羌兵一十五万、并战车直扣西平关。后军大败,越吉亡,雅丹被俘,亮将所获羌兵及车马器械,尽给还雅丹,俱放回国。彻里吉感蜀恩义,与之结盟。正史中没有关于彻里吉的记载。',
|
|
|
|
|
weiguan:'卫瓘(220年-291年),字伯玉。河东郡安邑县(今山西省夏县)人。三国曹魏后期至西晋初年重臣、书法家,曹魏尚书卫觊之子。卫瓘出身官宦世家,年轻时仕官于曹魏,历任尚书郎、散骑常侍、侍中、廷尉等职。后以镇西军司、监军身份参与伐蜀战争。蜀汉亡后,与钟会一道逮捕邓艾;钟会谋反时,又成功平息叛乱,命田续杀邓艾父子。回师后转任督徐州诸军事、镇东将军,封菑阳侯。西晋建立后,历任青州、幽州刺史、征东大将军等职,成功化解北方边境威胁,因功进爵菑阳公。后入朝为尚书令、侍中,又升任司空,领太子少傅。后逊位,拜太保。晋惠帝即位后,与贾皇后对立,终在政变中满门遇害,享年七十二岁。卫瓘善隶书及章草。不仅兼工各体,还能学古人之长,是颇有创意的书法家。唐朝张怀瓘《书断》中评其章草为“神品”。',
|
2021-07-15 04:47:00 +00:00
|
|
|
|
zhongyan:' 钟琰 (?—?年)颍川人,王浑之妻。生卒年不详,约魏末晋初间前后在世。王浑的妻子钟琰,是颍川人,为魏太傅钟繇的曾孙女,父亲钟徽,为黄门郎。她平时广泛阅读各种书籍,因此几岁的时候就能撰写文章。她聪慧弘雅,善于啸咏,她的礼仪法度,为中表所推崇,她写有文集五卷。',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
yangyan:'杨艳(238年-274年8月25日),字琼芝,弘农郡华阴县(今陕西省华阴市)人,晋武帝司马炎第一任皇后,曹魏通事郎杨炳之女。自幼父母双亡,为舅舅赵俊所养,跟随继母段氏生活。聪明贤慧,善于书法,天生丽质,娴熟女红,嫁给了世子司马炎。泰始元年(265年),晋武帝即位,建立西晋。泰始二年(266年),杨艳受册为皇后,深得晋武帝宠幸,生下三子三女,包括晋惠帝司马衷。泰始十年(274年),去世,时年三十七,陪葬于峻阳陵,谥号武元皇后。',
|
|
|
|
|
yangzhi:'杨芷(259年-292年3月6日),字季兰,小字男胤,弘农郡华阴县(今陕西省华阴市)人,晋武帝司马炎第二任皇后,东汉太尉杨震幼子杨奉后裔,东汉末年东莱太守、蓩亭侯杨众曾孙女,西晋太傅杨骏与嫡妻庞氏之女,武元皇后杨艳堂妹。咸宁二年(276年),立为皇后,史称“婉嫕有妇德, 美映椒房”,得宠于晋武帝。生渤海殇王,早薨,之后再无生育。其父杨骏擅权引起皇后贾南风忌恨,贾南风联络汝南王司马亮、楚王司马玮发动政变,杀死杨骏,并唆使大臣上书状告杨芷谋反,让晋惠帝司马衷将其贬为庶人,押到金墉城居住。元康二年(292年),杨芷冻饿而死,谥号武悼皇后。',
|
2022-02-06 18:13:56 +00:00
|
|
|
|
xinchang:'辛敞(生卒年不详),字泰雍,陇西人氏,是曹魏时代官员。卫尉辛毗之子,辛宪英之弟。',
|
2022-07-06 13:38:15 +00:00
|
|
|
|
xuangongzhu:'高陵宣公主(?—?)司马氏,晋宣帝司马懿第二女。司马氏下嫁杜预。其侄司马炎登基时,司马氏已经去世。泰始年间(265年—274年)追赠高陵公主。',
|
2022-07-25 14:24:03 +00:00
|
|
|
|
jin_guohuai:'郭槐(237年-296年),字媛韶,太原阳曲(今山西太原)人,魏晋权臣贾充的妻子。父亲是曹魏城阳郡太守郭配,伯父是曹魏名将郭淮。出身太原郭氏。二十一岁时,嫁贾充作继室,生二女二子,长女贾南风,次女贾午,一子贾黎民。贾南风是西晋惠帝司马衷皇后,干预国政,专权误国,直接导致“八王之乱”和西晋亡国。',
|
2022-08-09 15:21:53 +00:00
|
|
|
|
wangxiang:'王祥(184年,一作180年-268年4月30日),字休徵。琅邪临沂(今山东省临沂市西孝友村)人。三国曹魏及西晋时大臣。王祥于东汉末隐居二十年,在曹魏,先后任县令、大司农、司空、太尉等职,封爵睢陵侯。西晋建立,拜太保,进封睢陵公。泰始四年四月戊戌日(268年4月30日)去世,年八十五(一作八十九),谥号“元”。有《训子孙遗令》一文传世。王祥侍奉后母朱氏极孝,为传统文化中二十四孝之一“卧冰求鲤”的主人翁。',
|
2023-11-06 22:33:38 +00:00
|
|
|
|
chengjichengcui:'成倅、成济(?~260年6月21日),扬州丹阳(今安徽省宣城市)人。三国时期曹魏将领。依附于司马氏家族,得到司马昭的心腹贾充指使,刺死魏帝曹髦。司马昭为平息众怒,将成倅、成济兄弟二人杀死。据《魏氏春秋》记载,成济兄弟不服罪,光着身子跑到屋顶,大骂司马昭,被军士从下乱箭射杀。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
characterTitle:{},
|
|
|
|
|
characterFilter:{},
|
|
|
|
|
dynamicTranslate:{},
|
|
|
|
|
perfectPair:{
|
2022-11-12 11:47:23 +00:00
|
|
|
|
jin_simayi:['jin_zhangchunhua','shibao','duyu'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
jin_simazhao:['jin_wangyuanji'],
|
|
|
|
|
jin_simashi:['jin_xiahouhui','jin_yanghuiyu'],
|
2023-05-05 16:00:01 +00:00
|
|
|
|
xuangongzhu:['duyu'],
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
2022-05-30 10:35:29 +00:00
|
|
|
|
characterReplace:{
|
2023-10-05 08:23:32 +00:00
|
|
|
|
yanghu:['jin_yanghu','dc_yanghu','sp_yanghu'],
|
2022-06-21 05:00:44 +00:00
|
|
|
|
jiachong:['jin_jiachong','jiachong'],
|
2022-07-25 14:24:03 +00:00
|
|
|
|
yangyan:['yangyan','old_yangyan'],
|
|
|
|
|
yangzhi:['yangzhi','old_yangzhi'],
|
2022-05-30 10:35:29 +00:00
|
|
|
|
},
|
2021-06-10 15:27:23 +00:00
|
|
|
|
translate:{
|
|
|
|
|
jin_zhangchunhua:'晋张春华',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_zhangchunhua_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
huishi:'慧识',
|
|
|
|
|
huishi_info:'摸牌阶段,你可以放弃摸牌,改为观看牌堆顶的X张牌,获得其中的一半(向下取整),然后将其余牌置入牌堆底。(X为牌堆数量的个位数)',
|
|
|
|
|
qingleng:'清冷',
|
2023-03-04 15:17:30 +00:00
|
|
|
|
qingleng_info:'一名角色的回合结束时,若其体力值与手牌数之和不小于X,则你可将一张牌当无距离限制的冰属性【杀】对其使用(X为牌堆数量的个位数)。若这是你本局游戏内首次其发动过此技能,则你摸一张牌。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
xuanmu:'宣穆',
|
|
|
|
|
xuanmu2:'宣穆',
|
|
|
|
|
xuanmu_info:'锁定技,隐匿技。你于其他角色的回合登场时,防止你受到的伤害直到回合结束。',
|
|
|
|
|
jin_simayi:'晋司马懿',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_simayi_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
zhanghuyuechen:'张虎乐綝',
|
|
|
|
|
xijue:'袭爵',
|
|
|
|
|
xijue_gain:'袭爵',
|
|
|
|
|
xijue_info:'锁定技,游戏开始时,你获得4枚“爵”。回合结束时,你获得X枚“爵”(X为你本回合内造成的伤害数)。你可弃置一枚“爵”并在合适的时机发动〖突袭〗和〖骁果〗。',
|
|
|
|
|
xijue_info_guozhan:'锁定技,当你首次明置此武将牌时,你获得4枚“爵”。回合结束时,你获得X枚“爵”(X为你本回合内造成的伤害数)。你可弃置一枚“爵”并在合适的时机发动〖突袭〗和〖骁果〗。',
|
|
|
|
|
xijue_tuxi:'突袭',
|
|
|
|
|
xijue_tuxi_info:'摸牌阶段摸牌时,你可以少摸任意张牌,然后获得等量的角色的各一张手牌。',
|
|
|
|
|
xijue_tuxi_info_guozhan:'摸牌阶段摸牌时,你可以少摸至多两张牌,然后获得等量的角色的各一张手牌。',
|
|
|
|
|
xijue_xiaoguo:'骁果',
|
|
|
|
|
xijue_xiaoguo_info:'其他角色的结束阶段开始时,你可以弃置一张基本牌,令该角色选择一项:1.弃置一张装备牌,然后你摸一张牌;2.受到你对其造成的1点伤害。',
|
|
|
|
|
xijue_xiaoguo_info_guozhan:'其他角色的结束阶段开始时,你可以弃置一张基本牌,令该角色选择一项:1.弃置一张装备牌;2.受到你对其造成的1点伤害。',
|
2023-10-03 03:16:35 +00:00
|
|
|
|
gz_duyu:'杜预',
|
2023-10-02 05:35:32 +00:00
|
|
|
|
duyu:'晋杜预',
|
|
|
|
|
duyu_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
sanchen:'三陈',
|
2023-05-13 14:57:29 +00:00
|
|
|
|
sanchen_info:'出牌阶段限一次。你可选择一名本回合内未选择过的角色。其摸三张牌,然后弃置三张牌。若其未以此法弃置牌或以此法弃置的牌的类别均不相同,则其摸一张牌且〖三陈〗于此阶段内使用次数上限+1。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
sanchen_info_guozhan:'出牌阶段,你可选择一名本回合内未选择过的角色。其摸三张牌,然后弃置三张牌。若其未以此法弃置牌或以此法弃置的牌的类别均不相同,则其摸一张牌且你获得技能〖破竹〗直到回合结束。否则你本阶段内不能再发动〖三陈〗。',
|
|
|
|
|
zhaotao:'诏讨',
|
|
|
|
|
zhaotao_info:'觉醒技,准备阶段,若你本局游戏内发动〖三陈〗的次数大于2,则你减1点体力上限并获得〖破竹〗。',
|
|
|
|
|
pozhu:'破竹',
|
|
|
|
|
pozhu_info:'出牌阶段,你可以将一张手牌当做【出其不意】使用。若你未因此牌造成过伤害,则你不能再发动〖破竹〗直到回合结束。',
|
|
|
|
|
pozhu_info_guozhan:'出牌阶段限一次,你可以将一张手牌当做【出其不意】使用。',
|
|
|
|
|
jin_wangyuanji:'晋王元姬',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_wangyuanji_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
shiren:'识人',
|
|
|
|
|
shiren_info:'隐匿技。你于其他角色的回合内登场时,若其有手牌,则你可对其发动〖宴戏〗。',
|
|
|
|
|
yanxi:'宴戏',
|
|
|
|
|
yanxi2:'宴戏',
|
2023-09-12 17:28:01 +00:00
|
|
|
|
yanxi_info:'出牌阶段,你可选择一名有手牌的角色。你将该角色的一张随机手牌与牌堆顶的两张牌混合后展示,并选择其中一张。若你以此法选择的是该角色的手牌,则你获得这三张牌。否则你获得选择的牌。你通过〖宴戏〗得到的牌,不计入当前回合的手牌上限。',
|
|
|
|
|
yanxi_info_guozhan:'出牌阶段,你可选择一名有手牌的角色。你将该角色的一张随机手牌与牌堆中的两张随机牌混合后展示,并选择其中一张。若你以此法选择的是该角色的手牌,则你获得这三张牌。否则你获得选择的牌。你通过〖宴戏〗得到的牌,不计入当前回合的手牌上限。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
jin_simazhao:'晋司马昭',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_simazhao_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
tuishi:'推弑',
|
|
|
|
|
tuishi_info:'隐匿技,你于其他角色A的回合内登场时,可于此回合结束时选择其攻击范围内的一名角色B。A选择一项:①对B使用一张【杀】。②你对A造成1点伤害。',
|
|
|
|
|
choufa:'筹伐',
|
|
|
|
|
choufa2:'筹伐',
|
|
|
|
|
choufa_info:'出牌阶段限一次,你可展示一名其他角色的一张手牌并记录其类型A。你令其原类型不为A的手牌的牌名均视为【杀】且均视为无属性,直到其回合结束。',
|
2021-11-01 14:32:23 +00:00
|
|
|
|
xinchoufa:'筹伐',
|
|
|
|
|
xinchoufa_info:'出牌阶段限一次,你可展示一名其他角色的一张手牌A。你令其所有类型与A不同的手牌的牌名均视为【杀】且均视为无属性,直到其回合结束。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
zhaoran:'昭然',
|
|
|
|
|
zhaoran2:'昭然',
|
|
|
|
|
zhaoran_info:'出牌阶段开始时,你可令你的手牌对其他角色可见直到出牌阶段结束。若如此做,当你于此阶段内失去一张手牌后,若你的手牌里没有与此牌花色相同的牌且你本回合内未因该花色的牌触发过此效果,则你选择一项:①摸一张牌。②弃置一名其他角色的一张牌。',
|
2023-09-06 03:26:37 +00:00
|
|
|
|
visible_zhaoran:'invisible',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
chengwu:'成务',
|
|
|
|
|
chengwu_info:'主公技,锁定技,其他晋势力角色攻击范围内的角色视为在你的攻击范围内。',
|
|
|
|
|
jin_xiahouhui:'晋夏侯徽',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_xiahouhui_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
baoqie:'宝箧',
|
|
|
|
|
baoqie_info:'隐匿技,锁定技。你登场后,从牌堆中获得一张不为赠物的宝物牌。若此牌在你的手牌区内为宝物牌,则你可以使用此牌。',
|
|
|
|
|
jyishi:'宜室',
|
|
|
|
|
jyishi_info:'每回合限一次,当有其他角色于其出牌阶段内因弃置而失去手牌后,你可令其获得这些牌中位于弃牌堆的一张,然后你获得其余位于弃牌堆的牌。',
|
|
|
|
|
shiduo:'识度',
|
|
|
|
|
shiduo_info:'出牌阶段限一次,你可以与一名其他角色拼点。若你赢,你获得其所有手牌。然后你交给其X张手牌(X为你手牌数的一半,向下取整)。',
|
|
|
|
|
jin_simashi:'晋司马师',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_simashi_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
taoyin:'韬隐',
|
|
|
|
|
taoyin2:'韬隐',
|
|
|
|
|
taoyin_info:'隐匿技,当你登场后,若当前回合角色存在且不是你,则你可令该角色本回合的手牌上限-2。',
|
|
|
|
|
yimie:'夷灭',
|
|
|
|
|
yimie2:'夷灭',
|
2023-03-31 11:34:38 +00:00
|
|
|
|
yimie_info:'每回合限一次,当你对其他角色造成伤害时,若伤害值X小于Y,则你可失去1点体力,将伤害值改为Y。此伤害结算结束后,其回复(Y-X)点体力(Y为其体力值)。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
ruilve:'睿略',
|
|
|
|
|
ruilve2:'睿略',
|
|
|
|
|
ruilve_info:'主公技,其他晋势力角色的出牌阶段限一次,该角色可以将一张带有伤害标签的基本牌或锦囊牌交给你。',
|
|
|
|
|
tairan:'泰然',
|
|
|
|
|
tairan2:'泰然',
|
2023-03-31 11:34:38 +00:00
|
|
|
|
tairan_info:'锁定技,回合结束时,你将体力回复至体力上限,并将手牌摸至体力上限(称为“泰然”牌,且至多摸五张)。然后你的下一个出牌阶段开始时,你失去上一次以此法回复的体力值的体力,弃置所有“泰然”牌。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
gz_jin_simayi:'司马懿',
|
|
|
|
|
gz_jin_zhangchunhua:'张春华',
|
|
|
|
|
gz_jin_simazhao:'司马昭',
|
|
|
|
|
gz_jin_wangyuanji:'王元姬',
|
|
|
|
|
gz_jin_simashi:'司马师',
|
|
|
|
|
gz_jin_xiahouhui:'夏侯徽',
|
|
|
|
|
xinquanbian:'权变',
|
|
|
|
|
xinquanbian_info:'出牌阶段,每当你首次使用/打出一种花色的手牌时,你可以从牌堆顶的X张牌中获得一张与此牌花色不同的牌,并将其余牌以任意顺序置于牌堆顶。出牌阶段,你至多可使用X张非装备手牌。(X为你的体力上限)',
|
|
|
|
|
shibao:'石苞',
|
|
|
|
|
zhuosheng:'擢升',
|
2023-09-12 17:28:01 +00:00
|
|
|
|
zhuosheng_info:'出牌阶段,①你使用本轮内得到的基本牌时无次数和距离限制。②你使用本轮内获得的普通锦囊牌选择目标后,可令此牌的目标数+1或-1。③你使用本轮内得到的装备牌时可以摸一张牌(以此法得到的牌不能触发〖擢升〗)。',
|
|
|
|
|
zhuosheng_info_guozhan:'出牌阶段,①你使用本轮内得到的基本牌时无距离限制。②你使用本轮内获得的普通锦囊牌选择目标后,可令此牌的目标数+1或-1。③你使用本轮内得到的装备牌时可以摸一张牌(以此法得到的牌不能触发〖擢升〗)。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
jin_yanghuiyu:'晋羊徽瑜',
|
2023-09-30 14:01:59 +00:00
|
|
|
|
jin_yanghuiyu_prefix:'晋',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
gz_jin_yanghuiyu:'羊徽瑜',
|
|
|
|
|
huirong:'慧容',
|
|
|
|
|
huirong_info:'隐匿技,锁定技。当你登场后,你令一名角色将手牌数摸至/弃至与体力值相同(至多摸至五张)。',
|
|
|
|
|
ciwei:'慈威',
|
|
|
|
|
ciwei_info:'一名角色于其回合内使用第二张牌时,若此牌为基本牌或普通锦囊牌,则你可以弃置一张牌,取消此牌的所有目标。',
|
|
|
|
|
caiyuan:'才媛',
|
2023-09-26 04:51:05 +00:00
|
|
|
|
caiyuan_info:'锁定技。回合结束时,若你于你的上一个回合结束后未扣减过体力,则你摸两张牌。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
simazhou:'司马伷',
|
|
|
|
|
caiwang:'才望',
|
|
|
|
|
caiwang_info:'当你使用或打出牌响应其他角色使用的牌,或其他角色使用或打出牌响应你使用的牌后,若这两张牌颜色相同,则你可以弃置对方的一张牌。',
|
|
|
|
|
naxiang:'纳降',
|
|
|
|
|
naxiang2:'纳降',
|
2021-11-07 05:45:48 +00:00
|
|
|
|
naxiang_info:'锁定技,当你受到其他角色造成的伤害后,或你对其他角色造成伤害后,你对其发动〖才望①〗时的“弃置”改为“获得”直到你的下回合开始。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
cheliji:'彻里吉',
|
|
|
|
|
chexuan:'车悬',
|
|
|
|
|
chexuan_info:'出牌阶段,若你的装备区里没有宝物牌,你可弃置一张黑色牌,选择一张【舆】置入你的装备区;当你失去装备区里的宝物牌后,你可进行判定,若结果为黑色,将一张随机的【舆】置入你的装备区。',
|
|
|
|
|
qiangshou:'羌首',
|
|
|
|
|
qiangshou_info:'锁定技,若你的装备区内有宝物牌,你与其他角色的距离-1。',
|
|
|
|
|
cheliji_sichengliangyu:'四乘粮舆',
|
|
|
|
|
cheliji_sichengliangyu_bg:'粮',
|
|
|
|
|
cheliji_sichengliangyu_info:'一名角色的回合结束时,若你的手牌数小于体力值,你可以摸两张牌,然后弃置此牌。',
|
|
|
|
|
cheliji_tiejixuanyu:'铁蒺玄舆',
|
|
|
|
|
cheliji_tiejixuanyu_bg:'蒺',
|
|
|
|
|
cheliji_tiejixuanyu_info:'其他角色的回合结束时,若其本回合未造成过伤害,你可以令其弃置两张牌,然后弃置此牌。',
|
|
|
|
|
cheliji_feilunzhanyu:'飞轮战舆',
|
|
|
|
|
cheliji_feilunzhanyu_bg:'轮',
|
|
|
|
|
cheliji_feilunzhanyu_info:'其他角色的回合结束时,若其本回合使用过非基本牌,你可以令其交给你一张牌,然后弃置此牌。',
|
|
|
|
|
weiguan:'卫瓘',
|
|
|
|
|
zhongyun:'忠允',
|
|
|
|
|
zhongyun2:'忠允',
|
2023-10-26 10:44:24 +00:00
|
|
|
|
zhongyun_info:'锁定技。每名角色的回合限一次,你受伤/回复体力后,若你的体力值与手牌数相等,你回复1点体力或对你攻击范围内的一名角色造成1点伤害;每名角色的回合限一次,你获得手牌或失去手牌后,若你的体力值与手牌数相等,你摸一张牌或弃置一名其他角色一张牌。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
shenpin:'神品',
|
|
|
|
|
shenpin_info:'当一名角色的判定牌生效前,你可以打出一张与判定牌颜色不同的牌代替之。',
|
2021-07-15 04:47:00 +00:00
|
|
|
|
zhongyan:'钟琰',
|
|
|
|
|
bolan:'博览',
|
2023-03-31 11:34:38 +00:00
|
|
|
|
bolan_info:'①出牌阶段开始时,你可从三个描述中带有“出牌阶段限一次”的技能中选择一个,令当前回合角色获得直至此阶段结束。②其他角色出牌阶段限一次,其可以失去1点体力,令你发动一次〖博览①〗。',
|
2021-07-15 04:47:00 +00:00
|
|
|
|
yifa:'仪法',
|
|
|
|
|
yifa2:'仪法',
|
2023-08-22 11:55:39 +00:00
|
|
|
|
yifa_info:'锁定技,其他角色使用【杀】或黑色普通锦囊牌指定你为目标后,其手牌上限-1直到其回合结束。',
|
2021-08-18 13:42:06 +00:00
|
|
|
|
ol_huaxin:'OL华歆',
|
2023-10-02 05:35:32 +00:00
|
|
|
|
ol_huaxin_prefix:'OL',
|
2021-08-18 13:42:06 +00:00
|
|
|
|
caozhao:'草诏',
|
|
|
|
|
caozhao_backup:'草诏',
|
|
|
|
|
caozhao_info:'出牌阶段限一次,你可展示一张手牌并声明一种未以此法声明过的基本牌或普通锦囊牌,令一名体力不大于你的其他角色选择一项:令此牌视为你声明的牌,或其失去1点体力。然后若此牌声明成功,然后你可将其交给一名其他角色。',
|
|
|
|
|
olxibing:'息兵',
|
2023-09-27 08:07:17 +00:00
|
|
|
|
olxibing_info:'当你受到其他角色造成的伤害后,你可弃置你或该角色两张牌,然后你们中手牌少的角色摸两张牌,以此法摸牌的角色不能使用牌指定你为目标直到回合结束。',
|
2021-11-07 05:45:48 +00:00
|
|
|
|
recaiwang:'才望',
|
|
|
|
|
recaiwang_info:'①当你使用或打出牌响应其他角色使用的牌,或其他角色使用或打出牌响应你使用的牌后,若这两张牌颜色相同,则你可以弃置对方的一张牌。②若你的手牌数为1,则你可以将该手牌当做【闪】使用或打出。③若你的装备区牌数为1,则你可以将该装备当做【无懈可击】使用或打出。④若你的判定区牌数为1,则你可以将该延时锦囊牌当做【杀】使用或打出。',
|
|
|
|
|
recaiwang_hand:'才望',
|
|
|
|
|
recaiwang_equip:'才望',
|
|
|
|
|
recaiwang_judge:'才望',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
yangyan:'杨艳',
|
|
|
|
|
xuanbei:'选备',
|
2021-11-26 14:55:37 +00:00
|
|
|
|
xuanbei_info:'①游戏开始时,你从牌堆中获得两张具有应变标签的牌。②每回合限一次。当你使用的具有应变标签的牌结算结束后,你可将此牌对应的所有实体牌交给一名其他角色。',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
xianwan:'娴婉',
|
v1.9.122.3 (#146)
* change lib.init.parsex, Enable 'step' to be used through nesting
* Fixed an issue where nonstandard statement 'step 0' before standard statement 'step 0' would cause an error
* zhangshiping; tw_madai bug fix
* modify all the skills with incorrect "locked" tag
* Change the game.exit function to restart the app for WKWebview users using ios. And added the macintosh field to the judgment of lib.device
* various bug fix
* Revert "various bug fix"
This reverts commit ca7a363172a837af9244fca300d6a008cafc03ac.
* various bug fix
* some sudio
* unlock zhenghun, fix sbdiaochan
* add and adjust some audio, fix some bugs
* add trigger "useSkill" and "logSkillBegin"
* brand new wuxie
* Update standard.js
* update 武安国
* iriya!
* Add character lushi; fix clansankuang
* add 魏关羽/涛神,unlock 关宁/向朗/谋孙策/谋大乔/谋刘表,add related audio
* fix: adjust the edit box style to fix the text overflow problem 🐛
* fix 修文 and some other small bugs
* 伊莉雅·罗日杰斯特文斯卡娅
* Fix the issue of "game.getDB" and "game. deleteDB" reporting errors without "lib.db"
* Some browsers do not support "autoplay", so "onconplay" listening has been added
* sunwukong
* more zooms
* unlock 周善, modify 卢氏/卞喜/刘虞/黄祖/李采薇/张翼/笮融/孙寒华/TW董昭, fix some bug, add omitted audio
* change the number of 如意金箍棒 to 9 instead of 5; fix 夏侯尚's bug; add audio for sunwukong & donghailongwang
* Add the default accept value of '*/*' to the HTML selection file label
* longwang
* add&modify some audio
* add 族王凌/界SP黄月英/界张松/武诸葛亮,fix 晖云's bug; resolve conflicts, bring 武诸葛 up to date, fix 龙王's bug
* add 阮籍, add a skillTag in "jiu2" named jiuSustain for ruanji
* add some audio, sort some characters in sp
* sync 界SP黄月英
* add some character intros
* make 谋弈 play audio correctly
* revert some skills back to new ones
* v1.9.122.3
* Update update.js
---------
Co-authored-by: shijian <2954700422@qq.com>
Co-authored-by: copcap <copcap@outlook.com>
Co-authored-by: copcap <43802486+copcap@users.noreply.github.com>
Co-authored-by: PBK-B <pbk-b@PBK6.cn>
2023-06-30 15:06:19 +00:00
|
|
|
|
xianwan_info:'①当你需要使用【闪】时,若你的武将牌未横置,则你可以横置武将牌并视为使用【闪】。②当你需要使用【杀】时,若你的武将牌横置,则你可以重置武将牌并视为使用【杀】。',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
yangzhi:'杨芷',
|
|
|
|
|
wanyi:'婉嫕',
|
2021-11-26 14:55:37 +00:00
|
|
|
|
wanyi_info:'每回合每项限一次。出牌阶段,你可以将一张具有应变效果的牌当做【逐近弃远】/【出其不意】/【水淹七军】/【洞烛先机】使用。',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
maihuo:'埋祸',
|
2022-04-30 12:32:57 +00:00
|
|
|
|
maihuo_info:'①当你成为其他角色使用【杀】的目标后,若此【杀】不为转化牌且有对应的实体牌且其武将牌上没有“祸”且你是此牌的唯一目标,则你可以令此牌对你无效,并将此【杀】置于其武将牌上,称为“祸”。②一名其他角色的出牌阶段开始时,若其武将牌上有“祸”,则其对你使用此“祸”(有距离限制且计入次数限制,若你不是此牌的合法目标,则改为将此“祸”置入弃牌堆)。③当你对有“祸”的其他角色造成伤害后,你移去其“祸”。',
|
2022-02-06 18:13:56 +00:00
|
|
|
|
xinchang:'辛敞',
|
|
|
|
|
canmou:'参谋',
|
|
|
|
|
canmou_info:'一名角色使用普通锦囊牌指定第一个目标时,若其手牌数为全场唯一最多,则你可以为此牌增加一个额外目标。',
|
|
|
|
|
congjian:'从鉴',
|
|
|
|
|
congjian_info:'一名其他角色成为普通锦囊牌的唯一目标时,若其体力值为全场唯一最多,则你也可以成为此牌的目标。此牌结算结束后,若你受到过渠道为此牌的伤害,则你摸两张牌。',
|
|
|
|
|
xuangongzhu:'宣公主',
|
|
|
|
|
gaoling:'高陵',
|
|
|
|
|
gaoling_info:'隐匿技。当你于回合外明置此武将牌时,你可以令一名角色回复1点体力。',
|
|
|
|
|
qimei:'齐眉',
|
2022-03-22 14:53:37 +00:00
|
|
|
|
qimei_info:'准备阶段,你可以选择一名其他角色。你获得如下效果直到下回合开始:①每回合限一次,当你或其获得牌/失去手牌后,若你与其手牌数相等,则另一名角色摸一张牌。②每回合限一次,当你或其的体力值变化后,若你与其体力值相等,则另一名角色摸一张牌。',
|
2022-02-06 18:13:56 +00:00
|
|
|
|
ybzhuiji:'追姬',
|
|
|
|
|
ybzhuiji_info:'出牌阶段开始时,你可选择一项:①摸两张牌,并于出牌阶段结束时失去1点体力;②回复1点体力,并于出牌阶段结束时弃置两张牌。',
|
2023-10-02 05:35:32 +00:00
|
|
|
|
jin_yanghu:'晋羊祜',
|
|
|
|
|
jin_yanghu_prefix:'晋',
|
2022-05-30 10:35:29 +00:00
|
|
|
|
huaiyuan:'怀远',
|
|
|
|
|
huaiyuanx:'绥',
|
|
|
|
|
huaiyuan_info:'①游戏开始时,你将你的手牌标记为“绥”。②当你失去一张“绥”后,你令一名角色执行一项:⒈其的手牌上限+1。⒉其的攻击范围+1。⒊其摸一张牌。③当你死亡时,你可令一名其他角色的手牌上限+X,且攻击范围+Y(X和Y为你自己被执行过〖怀远②〗的选项一和选项二的次数)。',
|
|
|
|
|
chongxin:'崇信',
|
|
|
|
|
chongxin_info:'出牌阶段限一次,你可重铸一张牌,且令一名有手牌的其他角色也重铸一张牌。',
|
|
|
|
|
dezhang:'德彰',
|
|
|
|
|
dezhang_info:'觉醒技。准备阶段,若你没有“绥”,则你减1点体力上限并获得〖卫戍〗。',
|
|
|
|
|
weishu:'卫戍',
|
2022-12-22 03:19:22 +00:00
|
|
|
|
weishu_info:'锁定技。①当你于摸牌阶段外不因〖卫戍①〗而摸牌后,你令一名角色摸一张牌。②当你于弃牌阶段外不因〖卫戍②〗而弃置牌后,你弃置一名其他角色的一张牌。',
|
2022-06-21 05:00:44 +00:00
|
|
|
|
jin_jiachong:'贾充',
|
|
|
|
|
xiongshu:'凶竖',
|
2022-12-22 03:19:22 +00:00
|
|
|
|
xiongshu_info:'其他角色的出牌阶段开始时,你可弃置X张牌(X为你本轮内此前已发动过此技能的次数,为0则不弃)并展示其一张手牌,然后你预测“其本阶段内是否会使用与展示牌牌名相同的牌”。此阶段结束时,若你的预测正确,则你对其造成1点伤害;否则你获得展示牌。',
|
2022-06-21 05:00:44 +00:00
|
|
|
|
jianhui:'奸回',
|
|
|
|
|
jianhui_info:'锁定技。当你造成伤害后,若受伤角色为A,则你摸一张牌;当你受到伤害后,若伤害来源为A,则A弃置一张牌。(A为除本次伤害外最近一次对你造成过伤害的角色)',
|
2022-07-25 14:24:03 +00:00
|
|
|
|
xinxuanbei:'选备',
|
|
|
|
|
xinxuanbei_info:'出牌阶段限一次。你可选择一名其他角色区域内的一张牌。然后其对你使用对应实体牌为此牌的【杀】。然后若此【杀】,未对你造成过伤害,你摸一张牌;对你造成过伤害,你摸两张牌。',
|
|
|
|
|
xinwanyi:'婉嫕',
|
|
|
|
|
xinwanyi_info:'①当你使用【杀】或普通锦囊牌指定其他角色为唯一目标后,你可将其的一张牌置于你的武将牌上作为“嫕”。②你不能使用/打出/弃置与“嫕”花色相同的牌。③结束阶段或当你受到伤害后,你令一名角色获得你的一张“嫕”。',
|
|
|
|
|
jin_guohuai:'郭槐',
|
|
|
|
|
zhefu:'哲妇',
|
2023-05-13 14:57:29 +00:00
|
|
|
|
zhefu_info:'当你于回合外使用或打出牌后,你可令一名有手牌的其他角色选择一项:⒈弃置一张名称相同的牌。⒉受到你造成的1点伤害。',
|
2022-07-25 14:24:03 +00:00
|
|
|
|
yidu:'遗毒',
|
2023-05-13 14:57:29 +00:00
|
|
|
|
yidu_info:'当你使用的【杀】或伤害性锦囊牌结算结束后,你可以展示一名未受到过渠道为此牌伤害的目标角色的至多三张手牌。若这些牌颜色均相同,则你弃置这些牌。',
|
2022-08-09 15:21:53 +00:00
|
|
|
|
wangxiang:'王祥',
|
|
|
|
|
bingxin:'冰心',
|
|
|
|
|
bingxin_info:'每种牌名每回合限一次。当你需要使用基本牌时,若你的手牌数等于体力值且这些牌的颜色均相同,则你可以摸一张牌,视为使用一张基本牌。',
|
2023-10-02 05:35:32 +00:00
|
|
|
|
ol_lisu:'OL李肃',
|
|
|
|
|
ol_lisu_prefix:'OL',
|
|
|
|
|
qiaoyan:'巧言',
|
|
|
|
|
qiaoyan_info:'锁定技,当你于回合外受到其他角色造成的伤害时,若你:有“珠”,则你令伤害来源获得“珠”;没有“珠”,则你防止此伤害,然后摸一张牌,并将一张牌正面朝上置于武将牌上,称为“珠”。',
|
|
|
|
|
xianzhu:'献珠',
|
|
|
|
|
xianzhu_info:'锁定技,出牌阶段开始时,你令一名角色A获得“珠”。若A不为你自己,则你选择A攻击范围内的一名角色B,视为A对B使用一张【杀】。',
|
2023-11-06 22:33:38 +00:00
|
|
|
|
chengjichengcui:'成济成倅',
|
|
|
|
|
oltousui:'透髓',
|
|
|
|
|
oltousui_info:'你可以将任意张牌置于牌堆底,视为使用一张需使用等量张【闪】抵消的【杀】。',
|
|
|
|
|
olchuming:'畜鸣',
|
|
|
|
|
olchuming_info:'锁定技。当你对其他角色造成伤害时,或当你受到其他角色造成的伤害时,若此伤害的渠道不为牌或没有对应的实体牌,此伤害+1,否则其于本回合结束时将所有以此法造成伤害的牌当【借刀杀人】或【过河拆桥】对你使用。',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
|
|
|
|
|
yingbian_pack1:'文德武备·理',
|
|
|
|
|
yingbian_pack2:'文德武备·备',
|
|
|
|
|
yingbian_pack3:'文德武备·果',
|
2021-07-15 04:47:00 +00:00
|
|
|
|
yingbian_pack4:'文德武备·戒',
|
2021-11-23 04:58:31 +00:00
|
|
|
|
yingbian_pack5:'文德武备·约',
|
2021-06-10 15:27:23 +00:00
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
});
|