2020-09-25 10:40:43 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
game.import('character',function(lib,game,ui,get,ai,_status){
|
|
|
|
|
return {
|
|
|
|
|
name:'old',
|
|
|
|
|
characterSort:{
|
|
|
|
|
old:{
|
2020-10-27 10:59:52 +00:00
|
|
|
|
old_standard:['ol_yuanshu'],
|
2022-04-18 02:27:32 +00:00
|
|
|
|
old_shenhua:["yuji","zhangjiao","old_zhugezhan","old_guanqiujian","xiahouyuan","weiyan","xiaoqiao","pangde","xuhuang"],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_refresh:["old_zhangfei","old_huatuo","old_zhaoyun","ol_huaxiong"],
|
2021-12-09 13:57:51 +00:00
|
|
|
|
old_yijiang1:["masu","xushu","xin_yujin","old_xusheng","old_lingtong","fazheng"],
|
2022-04-30 12:32:57 +00:00
|
|
|
|
old_yijiang2:["old_zhonghui","madai"],
|
2020-10-27 10:59:52 +00:00
|
|
|
|
old_yijiang3:["liru","old_zhuran","old_fuhuanghou","old_caochong"],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_yijiang4:["old_caozhen","old_chenqun","old_zhuhuan"],
|
2022-07-06 13:38:15 +00:00
|
|
|
|
old_yijiang5:["old_caoxiu","old_zhuzhi"],
|
2021-02-28 15:59:11 +00:00
|
|
|
|
old_yijiang67:["ol_zhangrang","ol_liuyu"],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_sp:["old_lingju","old_maliang","old_machao","zhangliang","jsp_caoren","ol_guansuo","old_zhangxingcai","old_huangfusong","ol_maliang","old_wangyun"],
|
2021-12-09 13:57:51 +00:00
|
|
|
|
old_yingbian:['junk_simayi'],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_mobile:["old_caochun","old_majun"],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
character:{
|
2022-04-30 12:32:57 +00:00
|
|
|
|
madai:['male','shu',4,['mashu','oldqianxi']],
|
2022-04-18 02:27:32 +00:00
|
|
|
|
xuhuang:['male','wei',4,['gzduanliang']],
|
2021-12-09 13:57:51 +00:00
|
|
|
|
junk_simayi:['male','jin',3,['buchen','smyyingshi','xiongzhi','quanbian'],['hiddenSkill']],
|
2021-02-05 14:52:19 +00:00
|
|
|
|
fazheng:['male','shu',3,['enyuan','xuanhuo']],
|
2020-10-27 10:59:52 +00:00
|
|
|
|
ol_yuanshu:['male','qun',4,['wangzun','tongji']],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
pangde:['male','qun',4,['mashu','mengjin']],
|
|
|
|
|
ol_huaxiong:["male","qun",6,["new_reyaowu"]],
|
|
|
|
|
old_wangyun:['male','qun',4,['wylianji','moucheng']],
|
|
|
|
|
xiaoqiao:['female','wu',3,['tianxiang','hongyan']],
|
|
|
|
|
weiyan:['male','shu',4,['kuanggu']],
|
|
|
|
|
xiahouyuan:['male','wei',4,['shensu']],
|
|
|
|
|
ol_maliang:['male','shu',3,['zishu','yingyuan']],
|
|
|
|
|
old_huangfusong:['male','qun',4,['fenyue']],
|
|
|
|
|
old_majun:["male","wei",3,["xinfu_jingxie1","xinfu_qiaosi"],[]],
|
|
|
|
|
old_zhangxingcai:['female','shu',3,['oldshenxian','qiangwu']],
|
|
|
|
|
old_fuhuanghou:['female','qun',3,['oldzhuikong','oldqiuyuan']],
|
|
|
|
|
old_caochong:['male','wei',3,['oldrenxin','oldchengxiang']],
|
|
|
|
|
yuji:['male','qun',3,['old_guhuo'],['forbidai']],
|
|
|
|
|
zhangjiao:['male','qun',3,['leiji','guidao','huangtian'],['zhu']],
|
2021-01-19 14:04:52 +00:00
|
|
|
|
old_zhangfei:['male','shu',4,['new_repaoxiao','new_tishen']],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_zhaoyun:['male','shu',4,['longdan','new_yajiao']],
|
|
|
|
|
old_huatuo:['male','qun',3,['jijiu','chulao']],
|
|
|
|
|
jsp_caoren:['male','wei',4,['kuiwei','yanzheng']],
|
|
|
|
|
old_caochun:['male','wei',4,['shanjia']],
|
|
|
|
|
masu:['male','shu',3,['xinzhan','huilei']],
|
2022-03-22 14:53:37 +00:00
|
|
|
|
xushu:['male','shu',3,['xswuyan','jujian']],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
liru:['male','qun',3,['juece','mieji','fencheng']],
|
|
|
|
|
xin_yujin:['male','wei',4,['jieyue']],
|
|
|
|
|
//lusu:['male','wu',3,['haoshi','dimeng']],
|
|
|
|
|
//yuanshao:['male','qun',4,['luanji','xueyi'],['zhu']],
|
|
|
|
|
old_zhonghui:['male','wei',3,['zzhenggong','zquanji','zbaijiang']],
|
|
|
|
|
old_xusheng:['male','wu',4,['pojun']],
|
|
|
|
|
old_zhuran:['male','wu',4,['olddanshou']],
|
|
|
|
|
old_lingtong:['male','wu',4,['oldxuanfeng']],
|
|
|
|
|
old_caoxiu:['male','wei',4,['taoxi']],
|
|
|
|
|
old_caozhen:['male','wei',4,['sidi']],
|
|
|
|
|
old_lingju:['female','qun',3,['jieyuan','fenxin_old']],
|
|
|
|
|
old_maliang:['male','shu',3,['xiemu','naman']],
|
|
|
|
|
old_chenqun:['male','wei',3,['dingpin','oldfaen']],
|
|
|
|
|
old_zhuhuan:['male','wu',4,['youdi']],
|
|
|
|
|
old_zhuzhi:['male','wu',4,['anguo']],
|
|
|
|
|
|
|
|
|
|
old_machao:['male','qun',4,['zhuiji','oldcihuai']],
|
|
|
|
|
old_zhugezhan:["male","shu",3,["old_zuilun","old_fuyin"]],
|
|
|
|
|
zhangliang:["male","qun",4,["old_jijun","old_fangtong"]],
|
|
|
|
|
ol_zhangrang:['male','qun',3,['xintaoluan']],
|
|
|
|
|
ol_guansuo:['male','shu',4,['zhengnan','xiefang']],
|
2020-10-27 10:59:52 +00:00
|
|
|
|
//ol_manchong:['male','wei',3,['yuce','junxing']],
|
2020-09-25 10:40:43 +00:00
|
|
|
|
ol_liuyu:['male','qun',2,['zongzuo','zhige']],
|
|
|
|
|
old_guanqiujian:["male","wei",4,["drlt_zhenrong","drlt_hongju"],[]],
|
|
|
|
|
},
|
|
|
|
|
characterFilter:{
|
|
|
|
|
old_lingju:function(mode){
|
|
|
|
|
return mode=='identity';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skill:{
|
|
|
|
|
oldshenxian:{
|
|
|
|
|
audio:'shenxian',
|
|
|
|
|
inherit:'shenxian',
|
|
|
|
|
},
|
|
|
|
|
"old_guhuo":{
|
|
|
|
|
group:["old_guhuo_guess","old_guhuo_respond","old_guhuo_wuxie"],
|
|
|
|
|
enable:"chooseToUse",
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filter:function(event,player){
|
2021-05-18 07:57:26 +00:00
|
|
|
|
if(!player.countCards('hs')) return false;
|
2020-09-25 10:40:43 +00:00
|
|
|
|
var list=['sha','tao','shan','jiu','taoyuan','wugu','juedou','huogong','jiedao','tiesuo','guohe','shunshou','wuzhong','wanjian','nanman'];
|
|
|
|
|
if(get.mode()=='guozhan'){
|
|
|
|
|
list=list.concat(['xietianzi','shuiyanqijunx','lulitongxin','lianjunshengyan','chiling','diaohulishan','yuanjiao','huoshaolianying']);
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
|
|
if(event.filterCard({name:list[i]},player)) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
chooseButton:{
|
2022-04-10 16:34:02 +00:00
|
|
|
|
dialog:function(){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
var name=lib.inpile[i];
|
|
|
|
|
if(name=='wuxie') continue;
|
|
|
|
|
if(name=='sha'){
|
|
|
|
|
list.push(['基本','','sha']);
|
|
|
|
|
list.push(['基本','','sha','fire']);
|
|
|
|
|
list.push(['基本','','sha','thunder']);
|
2020-12-22 13:57:12 +00:00
|
|
|
|
list.push(['基本','','sha','ice']);
|
2020-09-25 10:40:43 +00:00
|
|
|
|
}
|
|
|
|
|
else if(get.type(name)=='trick') list.push(['锦囊','',name]);
|
|
|
|
|
else if(get.type(name)=='basic') list.push(['基本','',name]);
|
|
|
|
|
}
|
|
|
|
|
return ui.create.dialog('蛊惑',[list,'vcard']);
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filter:function(button,player){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
var evt=_status.event.getParent();
|
|
|
|
|
if(evt&&evt.filterCard){
|
|
|
|
|
return evt.filterCard({name:button.link[2]},player,evt);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
backup:function(links,player){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
return {
|
|
|
|
|
filterCard:true,
|
|
|
|
|
selectCard:1,
|
2021-05-18 07:57:26 +00:00
|
|
|
|
position:'hs',
|
2020-09-25 10:40:43 +00:00
|
|
|
|
viewAs:{name:links[0][2],nature:links[0][3]},
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
prompt:function(links,player){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
return '将一张手牌当'+get.translation(links[0][2])+'使用';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ai:{save:true,respondShan:true,respondSha:true},
|
|
|
|
|
},
|
|
|
|
|
"old_guhuo_guess":{
|
|
|
|
|
audio:'guhuo_guess',
|
|
|
|
|
trigger:{
|
|
|
|
|
player:"useCardBefore",
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filter:function(event,player){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
return event.skill=="old_guhuo_backup"||event.skill=="old_guhuo_wuxie";
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
direct:true,
|
|
|
|
|
priority:15,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
content:function(){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
player.logSkill('old_guhuo_guess');
|
|
|
|
|
player.popup(trigger.card.name,'metal');
|
|
|
|
|
player.lose(trigger.cards,ui.special);
|
|
|
|
|
player.line(trigger.targets,trigger.card.nature);
|
|
|
|
|
trigger.line=false;
|
|
|
|
|
event.prompt=get.translation(player)+'声明了'+get.translation(trigger.card.name)+',是否质疑?';
|
|
|
|
|
event.guessers=game.filterPlayer(function(current){
|
|
|
|
|
return current!=player&¤t.hp>0;
|
|
|
|
|
});
|
|
|
|
|
event.guessers.sort(lib.sort.seat);
|
|
|
|
|
event.ally=[];
|
|
|
|
|
event.betray=[];
|
|
|
|
|
'step 1'
|
|
|
|
|
if(event.guessers.length==0) event.goto(3);
|
|
|
|
|
else{
|
|
|
|
|
event.guessers[0].chooseControl('质疑','不质疑').set('prompt',event.prompt).set('ai',function(){
|
|
|
|
|
if(get.attitude(event.guessers[0],player)>0) return '不质疑';
|
|
|
|
|
return Math.random()<0.5?'不质疑':'质疑';
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(!result.control) result.control='不质疑';
|
|
|
|
|
event.guessers[0].chat(result.control);
|
|
|
|
|
game.delay();
|
|
|
|
|
if(result.control=='不质疑'){
|
|
|
|
|
game.log(event.guessers[0],'#g不质疑');
|
|
|
|
|
event.ally.push(event.guessers[0]);
|
|
|
|
|
}else{
|
|
|
|
|
game.log(event.guessers[0],'#y质疑');
|
|
|
|
|
event.betray.push(event.guessers[0]);
|
|
|
|
|
}
|
|
|
|
|
event.guessers.remove(event.guessers[0]);
|
|
|
|
|
if(event.guessers.length) event.goto(1);
|
|
|
|
|
'step 3'
|
|
|
|
|
player.showCards(trigger.cards);
|
|
|
|
|
if(event.betray.length){
|
|
|
|
|
if(trigger.card.name==trigger.cards[0].name){
|
|
|
|
|
if(get.suit(trigger.cards[0])!='heart'){
|
|
|
|
|
game.log(player,'使用的','#y'+get.translation(trigger.card.name),'作废了');
|
|
|
|
|
game.cardsDiscard(trigger.cards);
|
|
|
|
|
trigger.cancel();
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<event.betray.length;i++){
|
|
|
|
|
event.betray[i].loseHp();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
game.log(player,'使用的','#y'+get.translation(trigger.card.name),'作废了');
|
|
|
|
|
game.cardsDiscard(trigger.cards);
|
|
|
|
|
trigger.cancel();
|
|
|
|
|
game.asyncDraw(event.betray);
|
|
|
|
|
if(trigger.name=='useCard'&&trigger.parent) trigger.parent.goto(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
'step 4'
|
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"old_guhuo_respond":{
|
|
|
|
|
trigger:{
|
|
|
|
|
player:"chooseToRespondBegin",
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filter:function(event,player){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
if(event.responded) return false;
|
|
|
|
|
if(!event.filterCard({name:'shan'})&&!event.filterCard({name:'sha'})) return false;
|
|
|
|
|
if(!player.countCards('h')) return false;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
content:function(){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
if(trigger.filterCard({name:'shan'})&&lib.filter.cardRespondable({name:'shan'},player,trigger)) event.name='shan';
|
|
|
|
|
else event.name='sha';
|
|
|
|
|
player.chooseCard('是否发动【蛊惑】,将一张手牌当做'+get.translation(event.name)+'打出?');
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('old_guhuo_guess');
|
|
|
|
|
player.popup(event.name,'metal');
|
|
|
|
|
player.lose(result.cards,ui.special);
|
|
|
|
|
event.card=result.cards[0];
|
|
|
|
|
event.prompt=get.translation(player)+'声明了'+get.translation(event.name)+',是否质疑?';
|
|
|
|
|
event.guessers=game.filterPlayer(function(current){
|
|
|
|
|
return current!=player&¤t.hp>0;
|
|
|
|
|
});
|
|
|
|
|
event.guessers.sort(lib.sort.seat);
|
|
|
|
|
event.ally=[];
|
|
|
|
|
event.betray=[];
|
|
|
|
|
}
|
|
|
|
|
else event.finish();
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.guessers.length==0) event.goto(4);
|
|
|
|
|
else{
|
|
|
|
|
event.guessers[0].chooseControl('质疑','不质疑').set('prompt',event.prompt).set('ai',function(){
|
|
|
|
|
if(get.attitude(event.guessers[0],player)>0) return '不质疑';
|
|
|
|
|
return Math.random()<0.5?'不质疑':'质疑';
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
'step 3'
|
|
|
|
|
if(!result.control) result.control='不质疑';
|
|
|
|
|
event.guessers[0].chat(result.control);
|
|
|
|
|
game.delay();
|
|
|
|
|
if(result.control=='不质疑'){
|
|
|
|
|
game.log(event.guessers[0],'#g不质疑');
|
|
|
|
|
event.ally.push(event.guessers[0]);
|
|
|
|
|
}else{
|
|
|
|
|
game.log(event.guessers[0],'#y质疑');
|
|
|
|
|
event.betray.push(event.guessers[0]);
|
|
|
|
|
}
|
|
|
|
|
event.guessers.remove(event.guessers[0]);
|
|
|
|
|
if(event.guessers.length) event.goto(2);
|
|
|
|
|
'step 4'
|
|
|
|
|
var bool=true;
|
|
|
|
|
player.showCards(event.card);
|
|
|
|
|
if(event.betray.length){
|
|
|
|
|
if(event.name==event.card.name){
|
|
|
|
|
if(get.suit(event.card)!='heart'){
|
|
|
|
|
game.log(player,'使用的','#y'+get.translation(event.name),'作废了');
|
|
|
|
|
game.cardsDiscard(event.card);
|
|
|
|
|
bool=false;
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<event.betray.length;i++){
|
|
|
|
|
event.betray[i].loseHp();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
game.log(player,'使用的','#y'+get.translation(event.name),'作废了');
|
|
|
|
|
game.cardsDiscard(event.card);
|
|
|
|
|
bool=false;
|
|
|
|
|
game.asyncDraw(event.betray);
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!bool) event.finish();
|
|
|
|
|
'step 5'
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.responded=true;
|
|
|
|
|
trigger.result={bool:true,card:{name:event.name},cards:[event.card]};
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:4,
|
|
|
|
|
useful:-1,
|
|
|
|
|
value:-1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"old_guhuo_wuxie":{
|
|
|
|
|
log:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
enable:"chooseToUse",
|
|
|
|
|
filterCard:true,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
viewAsFilter:function(player){
|
2021-05-18 07:57:26 +00:00
|
|
|
|
return player.countCards('hs')>0;
|
2020-09-25 10:40:43 +00:00
|
|
|
|
},
|
|
|
|
|
viewAs:{
|
|
|
|
|
name:"wuxie",
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
|
|
|
|
if(card.name=='wuxie') return 1000;
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
prompt:"将一张手牌当无懈可击使用",
|
|
|
|
|
threaten:1.2,
|
|
|
|
|
},
|
|
|
|
|
old_zuilun:{
|
2021-05-18 07:57:26 +00:00
|
|
|
|
audio:'xinfu_zuilun',
|
2020-09-25 10:40:43 +00:00
|
|
|
|
subSkill:{
|
|
|
|
|
e:{},
|
|
|
|
|
h:{},
|
|
|
|
|
},
|
|
|
|
|
enable:"phaseUse",
|
|
|
|
|
usable:2,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
if(player==target) return false;
|
|
|
|
|
var pos='he';
|
|
|
|
|
if(player.hasSkill('old_zuilun_h')) pos='e';
|
|
|
|
|
if(player.hasSkill('old_zuilun_e')) pos='h';
|
|
|
|
|
return target.countGainableCards(player,pos)>0;
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
content:function(){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
var pos='he';
|
|
|
|
|
if(player.hasSkill('old_zuilun_h')) pos='e';
|
|
|
|
|
if(player.hasSkill('old_zuilun_e')) pos='h';
|
|
|
|
|
player.gainPlayerCard(target,pos,true);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool&&result.cards&&result.cards.length){
|
|
|
|
|
target.draw();
|
|
|
|
|
var pos=result.cards[0].original;
|
|
|
|
|
if(pos=='h'||pos=='e') player.addTempSkill('old_zuilun_'+pos,'phaseUseAfter');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:7,
|
|
|
|
|
result:{
|
|
|
|
|
target:-1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
old_fuyin:{
|
|
|
|
|
mod:{
|
|
|
|
|
targetEnabled:function(card,player,target){
|
|
|
|
|
if((card.name=='juedou'||card.name=='sha'||card.name=='huogong')&&player!=target&&player.countCards('h')>=target.countCards('h')&&target.isEmpty(2)) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
old_jijun:{
|
2020-09-25 10:40:43 +00:00
|
|
|
|
marktext:"方",
|
|
|
|
|
audio:"xinfu_jijun",
|
|
|
|
|
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);
|
2020-09-25 10:40:43 +00:00
|
|
|
|
},
|
|
|
|
|
enable:"phaseUse",
|
|
|
|
|
filterCard:true,
|
|
|
|
|
selectCard:[1,Infinity],
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filter:function(event,player){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
return player.countCards('h')>0;
|
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
check:function(card){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
var player=_status.event.player;
|
2022-04-10 16:34:02 +00:00
|
|
|
|
if((36-player.getExpansions('old_jijun').length)<=player.countCards('h')) return 1;
|
2020-09-25 10:40:43 +00:00
|
|
|
|
return 5-get.value(card);
|
|
|
|
|
},
|
|
|
|
|
discard:false,
|
|
|
|
|
lose:false,
|
2022-04-10 16:34:02 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
player.addToExpansion(cards,player,'give').gaintag.add('old_jijun');
|
2020-09-25 10:40:43 +00:00
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
ai:{order:1,result:{player:1}},
|
2020-09-25 10:40:43 +00:00
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
old_fangtong:{
|
2020-09-25 10:40:43 +00:00
|
|
|
|
trigger:{
|
|
|
|
|
player:"phaseJieshuBegin",
|
|
|
|
|
},
|
|
|
|
|
audio:"xinfu_fangtong",
|
|
|
|
|
forced:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'metal',
|
2022-04-10 16:34:02 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return (player.getExpansions('old_jijun').length>35);
|
2020-09-25 10:40:43 +00:00
|
|
|
|
},
|
2022-04-10 16:34:02 +00:00
|
|
|
|
content:function(){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
var bool=false;
|
2022-04-10 16:34:02 +00:00
|
|
|
|
if(player==game.me||player.isFriendOf(game.me)) bool=true;
|
2020-09-25 10:40:43 +00:00
|
|
|
|
else switch(get.mode()){
|
|
|
|
|
case 'identity':{
|
|
|
|
|
game.showIdentity();
|
|
|
|
|
var id1=player.identity;
|
|
|
|
|
var id2=game.me.identity;
|
|
|
|
|
if(['zhu','zhong','mingzhong'].contains(id1)){
|
|
|
|
|
if(['zhu','zhong','mingzhong'].contains(id2)) bool=true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2022-04-10 16:34:02 +00:00
|
|
|
|
else if(id1=='fan'){
|
2020-09-25 10:40:43 +00:00
|
|
|
|
if(id2=='fan') bool=true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
game.over(bool);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
oldanxu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
multitarget:true,
|
|
|
|
|
audio:2,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(player==target) return false;
|
|
|
|
|
var num=target.countCards('h');
|
|
|
|
|
if(ui.selected.targets.length){
|
|
|
|
|
return num<ui.selected.targets[0].countCards('h');
|
|
|
|
|
}
|
|
|
|
|
var players=game.filterPlayer();
|
|
|
|
|
for(var i=0;i<players.length;i++){
|
|
|
|
|
if(num>players[i].countCards('h')) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:2,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var gainner,giver;
|
|
|
|
|
if(targets[0].countCards('h')<targets[1].countCards('h')){
|
|
|
|
|
gainner=targets[0];
|
|
|
|
|
giver=targets[1];
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
gainner=targets[1];
|
|
|
|
|
giver=targets[0];
|
|
|
|
|
}
|
|
|
|
|
gainner.gainPlayerCard(giver,'h',true).set('visible',true);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool&&result.links.length&&get.suit(result.links[0])!='spade'){
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10.5,
|
|
|
|
|
threaten:2,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=target.countCards('h');
|
|
|
|
|
var att=get.attitude(player,target);
|
|
|
|
|
if(ui.selected.targets.length==0){
|
|
|
|
|
if(att>0) return -1;
|
|
|
|
|
var players=game.filterPlayer();
|
|
|
|
|
for(var i=0;i<players.length;i++){
|
|
|
|
|
var num2=players[i].countCards('h');
|
|
|
|
|
var att2=get.attitude(player,players[i]);
|
|
|
|
|
if(att2>=0&&num2<num) return -1;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
player:0.1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
oldfaen:{
|
|
|
|
|
audio:'faen',
|
|
|
|
|
trigger:{global:['turnOverAfter','linkAfter']},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.name=='link') return event.player.isLinked();
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return get.attitude(player,event.player)>0;
|
|
|
|
|
},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.draw();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
oldxuanfeng:{
|
|
|
|
|
audio:'xuanfeng',
|
|
|
|
|
trigger:{player:'loseAfter'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.es&&event.es.length>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.chooseTarget(get.prompt('oldxuanfeng'),function(card,player,target){
|
|
|
|
|
if(target==player) return false;
|
|
|
|
|
return get.distance(player,target)<=1||player.canUse('sha',target,false);
|
|
|
|
|
}).set('ai',function(target){
|
|
|
|
|
if(get.distance(player,target)<=1){
|
|
|
|
|
return get.damageEffect(target,player,player)*2;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return get.effect(target,{name:'sha'},player,player);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('oldxuanfeng',result.targets);
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
var distance=get.distance(player,target);
|
|
|
|
|
if(distance<=1&&player.canUse('sha',target,false)){
|
|
|
|
|
player.chooseControl('出杀','造成伤害').ai=function(){
|
|
|
|
|
return '造成伤害';
|
|
|
|
|
}
|
|
|
|
|
event.target=target;
|
|
|
|
|
}
|
|
|
|
|
else if(distance<=1){
|
|
|
|
|
target.damage();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.useCard({name:'sha',isCard:true},target,false).animate=false;
|
|
|
|
|
game.delay();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
var target=event.target;
|
|
|
|
|
if(result.control=='出杀'){
|
|
|
|
|
player.useCard({name:'sha',isCard:true},target,false).animate=false;
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.damage();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,current){
|
|
|
|
|
if(get.type(card)=='equip') return [1,3];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
reverseEquip:true,
|
|
|
|
|
noe:true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
translate:{
|
|
|
|
|
old_zhangxingcai:'旧张星彩',
|
|
|
|
|
old_majun:'骰子马钧',
|
|
|
|
|
old_yuanshu:'手杀袁术',
|
|
|
|
|
old_xusheng:'旧徐盛',
|
|
|
|
|
old_lingtong:'旧凌统',
|
|
|
|
|
old_zhuran:'旧朱然',
|
|
|
|
|
old_caoxiu:'旧曹休',
|
|
|
|
|
old_caozhen:'旧曹真',
|
|
|
|
|
old_lingju:'旧灵雎',
|
|
|
|
|
old_maliang:'旧马良',
|
|
|
|
|
old_chenqun:'旧陈群',
|
|
|
|
|
old_zhuhuan:'旧朱桓',
|
|
|
|
|
old_zhuzhi:'旧朱治',
|
|
|
|
|
old_machao:'☆SP马超',
|
|
|
|
|
old_zhugezhan:"旧诸葛瞻",
|
|
|
|
|
zhangliang:'SP张梁',
|
|
|
|
|
yuji:'旧于吉',
|
|
|
|
|
old_zhangfei:'OL张飞',
|
|
|
|
|
old_huatuo:'OL华佗',
|
|
|
|
|
jsp_caoren:'☆SP曹仁',
|
|
|
|
|
ol_zhangrang:'旧张让',
|
|
|
|
|
ol_liaohua:'OL廖化',
|
|
|
|
|
ol_zhuran:'OL朱然',
|
|
|
|
|
ol_guansuo:'OL关索',
|
|
|
|
|
ol_manchong:'OL满宠',
|
|
|
|
|
old_fuhuanghou:'旧伏皇后',
|
|
|
|
|
old_caochong:'旧曹冲',
|
|
|
|
|
old_guanqiujian:'旧毌丘俭',
|
|
|
|
|
old_huangfusong:'旧皇甫嵩',
|
|
|
|
|
ol_maliang:'旧马良',
|
|
|
|
|
ol_liuyu:'OL刘虞',
|
|
|
|
|
old_wangyun:'旧王允',
|
|
|
|
|
old_zhaoyun:'旧赵云',
|
|
|
|
|
ol_huaxiong:'旧华雄',
|
|
|
|
|
|
|
|
|
|
"old_guhuo":"蛊惑",
|
|
|
|
|
"old_guhuo_info":"你可以说出任何一种基本牌或普通锦囊牌,并正面朝下使用或打出一张手牌。体力值不为0的其他角色依次选择是否质疑。若无角色质疑,则该牌按你所述之牌结算。若有角色质疑则亮出验明:若为真,质疑者各失去1点体力;若为假,质疑者各摸一张牌。无论真假,弃置被质疑的牌。仅当被质疑的牌为红桃花色且为真时,该牌仍然可以进行结算。",
|
|
|
|
|
"old_guhuo_guess":"蛊惑",
|
|
|
|
|
"old_guhuo_wuxie":"蛊惑",
|
|
|
|
|
"old_jijun":"集军",
|
|
|
|
|
"old_jijun_info":"出牌阶段,你可以将任意张手牌置于你的武将牌上。(均称为“方”)",
|
|
|
|
|
"old_fangtong":"方统",
|
|
|
|
|
"old_fangtong_info":"锁定技,结束阶段,若你的“方”的数目大于等于36,则你所在的游戏阵营直接取得游戏胜利。",
|
|
|
|
|
old_zuilun:"罪论",
|
|
|
|
|
old_zuilun_info:"出牌阶段,你可以获得一名其他角色的一张牌(手牌、装备区各一次),然后该角色摸一张牌。",
|
|
|
|
|
old_fuyin:"父荫",
|
|
|
|
|
old_fuyin_info:"锁定技,若你的装备区内没有防具牌,手牌数大于或等于你的其他角色不能使用【杀】、【决斗】或【火攻】指定你为目标",
|
|
|
|
|
oldanxu:'安恤',
|
|
|
|
|
oldanxu_info:'出牌阶段限一次,你可以选择手牌数不相等的两名其他角色,令其中手牌少的角色获得手牌多的角色的一张手牌并展示之,然后若此牌不为黑桃,你摸一张牌。',
|
|
|
|
|
oldfaen:'法恩',
|
|
|
|
|
oldfaen_info:'当一名角色翻面或横置后,你可以令其摸一张牌。',
|
|
|
|
|
oldxuanfeng:'旋风',
|
|
|
|
|
oldxuanfeng_info:'每当你失去一次装备区里的牌时,你可以执行下列两项中的一项:1.视为对任意一名其他角色使用一张【杀】(此【杀】不计入每回合的使用限制);2.对与你距离1以内的一名其他角色造成一点伤害',
|
2020-10-27 10:59:52 +00:00
|
|
|
|
ol_yuanshu:'旧袁术',
|
2021-02-05 14:52:19 +00:00
|
|
|
|
fazheng:'旧法正',
|
2021-12-09 13:57:51 +00:00
|
|
|
|
junk_simayi:'旧晋司马懿',
|
|
|
|
|
junk_simayi_ab:'司马懿',
|
2022-04-30 12:32:57 +00:00
|
|
|
|
madai:'旧马岱',
|
2020-09-25 10:40:43 +00:00
|
|
|
|
|
2020-10-27 10:59:52 +00:00
|
|
|
|
old_standard:'标准包',
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_shenhua:'神话再临',
|
|
|
|
|
old_refresh:'界限突破',
|
|
|
|
|
old_yijiang1:'一将成名2011',
|
|
|
|
|
old_yijiang2:'一将成名2012',
|
|
|
|
|
old_yijiang3:'一将成名2013',
|
|
|
|
|
old_yijiang4:'一将成名2014',
|
|
|
|
|
old_yijiang5:'一将成名2015',
|
|
|
|
|
old_yijiang67:'原创设计',
|
|
|
|
|
old_sp:'SP',
|
2022-04-30 12:32:57 +00:00
|
|
|
|
old_yingbian:'文德武备',
|
2020-09-25 10:40:43 +00:00
|
|
|
|
old_mobile:'移动版',
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
});
|