v1.9.90.2
This commit is contained in:
parent
e2e4013088
commit
21457e2512
|
@ -944,7 +944,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
return get.attitude(player,event.player)<0;
|
||||
},
|
||||
content:function(){
|
||||
player.gainPlayerCard(trigger.player,true);
|
||||
player.gainPlayerCard(trigger.player,'h',true);
|
||||
},
|
||||
},
|
||||
taipingyaoshu:{
|
||||
|
@ -1230,9 +1230,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
trigger:{source:'damageAfter'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
if(event.player.isDead()) return false;
|
||||
if(player.countCards('h')==0) return false;
|
||||
if(!event.card) return false;
|
||||
if(event.card.name!='sha') return false;
|
||||
if(!event.notLink()) return functiofalse;
|
||||
return game.hasPlayer(function(current){
|
||||
return current!=event.player&&get.distance(event.player,current)<=1;
|
||||
});
|
||||
|
|
|
@ -29,7 +29,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
skill:{
|
||||
"new_wuhun":{
|
||||
audio:"wuhun3",
|
||||
audio:"wuhun2",
|
||||
group:["new_wuhun_mark","new_wuhun_die"],
|
||||
trigger:{
|
||||
player:"damageEnd",
|
||||
|
@ -80,7 +80,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
subSkill:{
|
||||
die:{
|
||||
audio:"wuhun3",
|
||||
audio:"wuhun2",
|
||||
skillAnimation:true,
|
||||
trigger:{
|
||||
player:"dieBegin",
|
||||
|
@ -435,9 +435,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return !player.hasSkill('lianpo2');
|
||||
},
|
||||
content:function(){
|
||||
player.addTempSkill('lianpo2');
|
||||
player.insertPhase();
|
||||
}
|
||||
},
|
||||
lianpo2:{},
|
||||
baonu:{
|
||||
audio:2,
|
||||
mark:true,
|
||||
|
@ -1608,8 +1610,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
discard:{
|
||||
trigger:{player:['useCardAfter','respondAfter']},
|
||||
trigger:{player:['useCard','respond']},
|
||||
forced:true,
|
||||
popup:false,
|
||||
logTarget:function(){
|
||||
return _status.currentPhase;
|
||||
},
|
||||
|
@ -1627,7 +1630,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xinlonghun1:{
|
||||
audio:true,
|
||||
audio:'longhun1',
|
||||
enable:['chooseToUse','chooseToRespond'],
|
||||
prompt:function(){
|
||||
return '将至多两张红桃牌当作桃使用';
|
||||
|
@ -1647,7 +1650,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xinlonghun2:{
|
||||
audio:true,
|
||||
audio:'longhun2',
|
||||
enable:['chooseToUse','chooseToRespond'],
|
||||
prompt:function(){
|
||||
return '将至多两张方片牌当作火杀使用或打出';
|
||||
|
@ -1667,7 +1670,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xinlonghun3:{
|
||||
audio:true,
|
||||
audio:'longhun3',
|
||||
enable:['chooseToUse','chooseToRespond'],
|
||||
prompt:function(){
|
||||
return '将至多两张黑桃牌当作无懈可击使用';
|
||||
|
@ -1687,7 +1690,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xinlonghun4:{
|
||||
audio:true,
|
||||
audio:'longhun4',
|
||||
enable:['chooseToUse','chooseToRespond'],
|
||||
prompt:function(){
|
||||
return '将至多两张梅花牌当作闪打出';
|
||||
|
@ -1712,7 +1715,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return 2+num;
|
||||
}
|
||||
},
|
||||
audio:true,
|
||||
audio:'juejing',
|
||||
trigger:{player:['dyingBegin','dyingAfter']},
|
||||
forced:true,
|
||||
content:function(){
|
||||
|
@ -1761,6 +1764,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
gongxin:{
|
||||
audio:2,
|
||||
audioname:['re_lvmeng'],
|
||||
enable:'phaseUse',
|
||||
usable:1,
|
||||
filterTarget:function(card,player,target){
|
||||
|
@ -1982,11 +1986,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
direct:true,
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.chooseTarget(true,get.prompt('nzry_jieying'),function(card,player,target){
|
||||
return target!=player;
|
||||
player.chooseTarget(true,'请选择【结营】的目标',function(card,player,target){
|
||||
return target!=player&&!target.isLinked();
|
||||
}).ai=function(target){
|
||||
if(!target.isLinked()) return get.attitude(player,target);
|
||||
return 1;
|
||||
return 1+Math.random();
|
||||
};
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
|
@ -2462,7 +2465,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return player.storage.drlt_jieying==event.player;
|
||||
return player.storage.drlt_jieying==event.player&&player!=event.player;
|
||||
},
|
||||
logTarget:'player',
|
||||
content:function(){
|
||||
|
|
|
@ -627,6 +627,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
audio:"wusheng",
|
||||
audioname:['re_guanyu','guanzhang','jsp_guanyu','guansuo'],
|
||||
enable:["chooseToRespond","chooseToUse"],
|
||||
filterCard:function (card,player){
|
||||
if(get.zhu(player,'shouyue')) return true;
|
||||
|
@ -1407,9 +1408,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
canBeDiscarded:function(card){
|
||||
if(get.position(card)=='e') return false;
|
||||
},
|
||||
cardDiscardable:function(card){
|
||||
if(get.position(card)=='e') return false;
|
||||
}
|
||||
},
|
||||
},
|
||||
rejizhi:{
|
||||
|
@ -1978,7 +1976,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
reyingzi:{
|
||||
audio:2,
|
||||
audioname:['sunce'],
|
||||
audioname:['heqi','sunce'],
|
||||
trigger:{player:'phaseDrawBegin'},
|
||||
forced:true,
|
||||
content:function(){
|
||||
|
@ -2579,6 +2577,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
reyicong:{
|
||||
trigger:{
|
||||
player:["changeHp"],
|
||||
},
|
||||
audio:2,
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return get.sgn(player.hp-2)!=get.sgn(player.hp-2-event.num);
|
||||
},
|
||||
content:function (){},
|
||||
mod:{
|
||||
globalFrom:function(from,to,current){
|
||||
if(from.hp>2) return current-1;
|
||||
|
@ -2774,7 +2781,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
reguose:{
|
||||
audio:1,
|
||||
audio:2,
|
||||
enable:'phaseUse',
|
||||
usable:1,
|
||||
discard:false,
|
||||
|
@ -2816,6 +2823,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
fenwei:{
|
||||
skillAnimation:true,
|
||||
audio:2,
|
||||
audioname:['heqi'],
|
||||
unique:true,
|
||||
mark:true,
|
||||
limited:true,
|
||||
|
|
|
@ -984,7 +984,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
|
||||
"nzry_juzhan":{
|
||||
audio:2,
|
||||
audio:"nzry_juzhan_1",
|
||||
mark:true,
|
||||
locked:false,
|
||||
zhuanhuanji:true,
|
||||
|
@ -1150,7 +1150,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
},
|
||||
"nzry_binglve":{},
|
||||
"nzry_binglve":{audio:2},
|
||||
"nzry_huaiju":{
|
||||
marktext:"橘",
|
||||
init:function(player,skill){
|
||||
|
@ -1388,6 +1388,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
"nzry_lijun":{
|
||||
unique:true,
|
||||
global:'nzry_lijun1',
|
||||
audio:'nzry_lijun1',
|
||||
zhuSkill:true,
|
||||
},
|
||||
nzry_lijun2:{},
|
||||
|
@ -1504,6 +1505,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
"nzry_shicai":{
|
||||
audio:"nzry_shicai_2",
|
||||
group:["nzry_shicai_1","nzry_shicai_2","nzry_shicai_3"],
|
||||
ai:{
|
||||
effect:{
|
||||
|
@ -1578,6 +1580,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
"nzry_mingren":{
|
||||
audio:"nzry_mingren_1",
|
||||
init:function (player){
|
||||
player.storage.nzry_mingren=[];
|
||||
},
|
||||
|
@ -1639,6 +1642,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
"nzry_zhenliang":{
|
||||
audio:"nzry_zhenliang_1",
|
||||
mark:true,
|
||||
locked:false,
|
||||
zhuanhuanji:true,
|
||||
|
@ -1657,24 +1661,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
enable:'phaseUse',
|
||||
usable:1,
|
||||
filter:function(event,player){
|
||||
return game.countPlayer(function(current){
|
||||
return game.hasPlayer(function(current){
|
||||
return current!=player&&
|
||||
get.distance(player,current,'attack')<=1&&
|
||||
Math.abs(current.hp-player.hp)>=1&&
|
||||
player.storage.nzry_mingren!=undefined&&
|
||||
player.countCards('he',{color:get.color(player.storage.nzry_mingren[0])})>=Math.abs(current.hp-player.hp);
|
||||
})>0&&player.storage.nzry_zhenliang!=true;
|
||||
player.countCards('he',{color:get.color(player.storage.nzry_mingren[0])})>=Math.max(Math.abs(current.hp-player.hp),1);
|
||||
})&&player.storage.nzry_zhenliang!=true;
|
||||
},
|
||||
filterTarget:function(card,player,target){
|
||||
return player.storage.nzry_mingren!=undefined&&
|
||||
target!=player&&
|
||||
get.distance(player,target,'attack')<=1&&
|
||||
Math.abs(target.hp-player.hp)>=1&&
|
||||
player.countCards('he',{color:get.color(player.storage.nzry_mingren[0])})>=Math.abs(target.hp-player.hp);
|
||||
player.countCards('he',{color:get.color(player.storage.nzry_mingren[0])})>=Math.max(Math.abs(target.hp-player.hp),1);
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.chooseCard('请发动【贞良】的牌',Math.abs(target.hp-player.hp),'he',{color:get.color(player.storage.nzry_mingren[0])},true).set('ai',function(card){
|
||||
player.chooseCard('请选择发动【贞良】的牌',Math.max(Math.abs(target.hp-player.hp),1),'he',{color:get.color(player.storage.nzry_mingren[0])},true).set('ai',function(card){
|
||||
return 6-get.value(card);
|
||||
});
|
||||
'step 1'
|
||||
|
@ -1752,6 +1754,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
"nzry_shenshi":{
|
||||
mark:true,
|
||||
audio:'nzry_shenshi_1',
|
||||
locked:false,
|
||||
zhuanhuanji:true,
|
||||
marktext:'审',
|
||||
|
@ -1777,7 +1780,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
position:'he',
|
||||
filterCard:true,
|
||||
filterTarget:function(card,player,target){
|
||||
return target.isMaxHandcard();
|
||||
return target!=player&&!game.hasPlayer(function(current){
|
||||
return current!=player&¤t.countCards('h')>target.countCards('h');
|
||||
});
|
||||
},
|
||||
check:function(card){
|
||||
return 5-get.value(card);
|
||||
|
@ -1949,6 +1954,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jianchu:{
|
||||
audio:2,
|
||||
trigger:{player:'shaBegin'},
|
||||
filter:function(event){
|
||||
return event.target.countCards('he')>0;
|
||||
|
@ -2443,7 +2449,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
tiaoxin:{
|
||||
audio:4,
|
||||
audio:2,
|
||||
audioname:['sp_jiangwei','xiahouba'],
|
||||
enable:'phaseUse',
|
||||
usable:1,
|
||||
filterTarget:function(card,player,target){
|
||||
|
@ -2810,6 +2817,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
tuntian:{
|
||||
audio:2,
|
||||
audioname:['gz_dengai'],
|
||||
trigger:{player:'loseEnd'},
|
||||
frequent:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2959,6 +2967,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
jiang:{
|
||||
audio:2,
|
||||
audioname:['sp_lvmeng'],
|
||||
trigger:{global:['useCard']},
|
||||
filter:function(event,player){
|
||||
if(!(event.card.name=='juedou'||(event.card.name=='sha'&&get.color(event.card)=='red'))) return false;
|
||||
|
@ -3016,6 +3025,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
zhiba:{
|
||||
unique:true,
|
||||
global:'zhiba2',
|
||||
audio:'zhiba2',
|
||||
zhuSkill:true,
|
||||
},
|
||||
zhiba2:{
|
||||
|
@ -3689,6 +3699,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
huoshou:{
|
||||
audio:"huoshou1",
|
||||
locked:true,
|
||||
group:['huoshou1','huoshou2'],
|
||||
ai:{
|
||||
|
@ -3712,6 +3723,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
huoshou2:{
|
||||
audio:"huoshou1",
|
||||
trigger:{global:'damageBefore'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -3771,6 +3783,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
juxiang:{
|
||||
unique:true,
|
||||
locked:true,
|
||||
audio:"juxiang1",
|
||||
group:['juxiang1','juxiang2'],
|
||||
ai:{
|
||||
effect:{
|
||||
|
@ -3793,6 +3806,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
juxiang2:{
|
||||
audio:"juxiang1",
|
||||
trigger:{global:'useCardAfter'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -3805,6 +3819,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
lieren:{
|
||||
audio:2,
|
||||
audioname:['boss_lvbu3'],
|
||||
trigger:{source:'damageEnd'},
|
||||
filter:function(event,player){
|
||||
if(event._notrigger.contains(event.player)) return false;
|
||||
|
@ -3926,6 +3941,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
songwei:{
|
||||
unique:true,
|
||||
global:'songwei2',
|
||||
audio:"songwei2",
|
||||
zhuSkill:true,
|
||||
},
|
||||
songwei2:{
|
||||
|
@ -4374,7 +4390,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
benghuai:{
|
||||
audio:4,
|
||||
audio:2,
|
||||
audioname:['zhugedan'],
|
||||
trigger:{player:'phaseEnd'},
|
||||
forced:true,
|
||||
check:function(){
|
||||
|
@ -4406,6 +4423,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
baonue:{
|
||||
unique:true,
|
||||
global:'baonue2',
|
||||
audio:'baonue2',
|
||||
zhuSkill:true,
|
||||
},
|
||||
baonue2:{
|
||||
|
@ -4525,7 +4543,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
wansha:{
|
||||
locked:true,
|
||||
audio:2,
|
||||
audioname:['boss_lvbu3'],
|
||||
audioname:['boss_lvbu3','shen_simayi'],
|
||||
global:'wansha2',
|
||||
trigger:{global:'dying'},
|
||||
priority:15,
|
||||
|
@ -4546,6 +4564,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
weimu:{
|
||||
trigger:{global:'useCard'},
|
||||
audio:2,
|
||||
forced:true,
|
||||
filter:function (event,player,card){
|
||||
if(get.color(event.card)!='black') return false;
|
||||
return event.card.name=='nanman'&&player!=event.player||event.card.name=='wanjian'&&player!=event.player||event.card.name=='taoyuan'&&player.hp<player.maxHp||event.card.name=='wugu';
|
||||
},
|
||||
content:function(){},
|
||||
mod:{
|
||||
targetEnabled:function(card){
|
||||
if((get.type(card)=='trick'||get.type(card)=='delay')&&
|
||||
|
@ -4677,14 +4703,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.hp=Math.min(3,player.maxHp);
|
||||
player.discard(player.getCards('hej'));
|
||||
player.draw(3);
|
||||
player.awakenSkill('niepan');
|
||||
player.storage.niepan=true;
|
||||
player.discard(player.getCards('hej'));
|
||||
'step 1'
|
||||
player.link(false);
|
||||
if(player.hp<3){
|
||||
player.recover(3-player.hp);
|
||||
}
|
||||
'step 2'
|
||||
player.draw(3);
|
||||
'step 3'
|
||||
player.link(false);
|
||||
'step 4'
|
||||
player.turnOver(false);
|
||||
},
|
||||
ai:{
|
||||
|
@ -4731,14 +4761,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.hp=Math.min(3,player.maxHp);
|
||||
player.discard(player.getCards('hej'));
|
||||
player.draw(3);
|
||||
player.awakenSkill('oldniepan');
|
||||
player.storage.oldniepan=true;
|
||||
player.discard(player.getCards('hej'));
|
||||
'step 1'
|
||||
player.link(false);
|
||||
if(player.hp<3){
|
||||
player.recover(3-player.hp);
|
||||
}
|
||||
'step 2'
|
||||
player.draw(3);
|
||||
'step 3'
|
||||
player.link(false);
|
||||
'step 4'
|
||||
player.turnOver(false);
|
||||
},
|
||||
ai:{
|
||||
|
@ -5168,6 +5202,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xueyi:{
|
||||
trigger:{player:'phaseDiscardBefore'},
|
||||
audio:2,
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return player.hasZhuSkill('xueyi');
|
||||
},
|
||||
content:function(){},
|
||||
mod:{
|
||||
maxHandcard:function(player,num){
|
||||
if(player.hasZhuSkill('xueyi')){
|
||||
|
@ -5327,13 +5368,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
shensu:{
|
||||
audio:'shensu1',
|
||||
audioname:['xiahouba'],
|
||||
group:['shensu1','shensu2']
|
||||
},
|
||||
xinshensu:{
|
||||
audio:'shensu1',
|
||||
audioname:['xiahouba'],
|
||||
group:['shensu1','shensu2','shensu4']
|
||||
},
|
||||
shensu1:{
|
||||
audio:2,
|
||||
audioname:['xiahouba'],
|
||||
trigger:{player:'phaseBegin'},
|
||||
direct:true,
|
||||
content:function(){
|
||||
|
@ -5356,7 +5402,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
shensu2:{
|
||||
audio:2,
|
||||
audio:'shensu1',
|
||||
audioname:['xiahouba'],
|
||||
trigger:{player:'phaseUseBefore'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -5396,6 +5443,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
shensu4:{
|
||||
audio:'shensu1',
|
||||
audioname:['xiahouba'],
|
||||
trigger:{player:'phaseDiscardBefore'},
|
||||
direct:true,
|
||||
content:function(){
|
||||
|
@ -5466,6 +5514,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
tianxiang:{
|
||||
audio:2,
|
||||
audioname:['daxiaoqiao'],
|
||||
trigger:{player:'damageBefore'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -5559,6 +5608,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
retianxiang:{
|
||||
audio:'tianxiang',
|
||||
audioname:['daxiaoqiao'],
|
||||
trigger:{player:'damageBefore'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -6214,11 +6264,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
huangtian:{
|
||||
unique:true,
|
||||
audio:'huangtian2',
|
||||
global:'huangtian2',
|
||||
zhuSkill:true,
|
||||
},
|
||||
huangtian2:{
|
||||
audio:2,
|
||||
audioname:['zhangjiao'],
|
||||
enable:'phaseUse',
|
||||
discard:false,
|
||||
line:true,
|
||||
|
|
466
character/sp.js
466
character/sp.js
File diff suppressed because it is too large
Load Diff
|
@ -85,6 +85,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
skill:{
|
||||
hujia:{
|
||||
audio:2,
|
||||
audioname:['re_caocao'],
|
||||
unique:true,
|
||||
zhuSkill:true,
|
||||
trigger:{player:'chooseToRespondBegin'},
|
||||
|
@ -348,6 +349,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
tiandu:{
|
||||
audio:2,
|
||||
audioname:['re_guojia','xizhicai'],
|
||||
trigger:{player:'judgeEnd'},
|
||||
frequent:function(event){
|
||||
if(event.result.card.name=='du') return false;
|
||||
|
@ -674,13 +676,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jijiang:{
|
||||
audio:'jijiang1',
|
||||
audioname:['liushan','re_liubei'],
|
||||
unique:true,
|
||||
group:['jijiang1','jijiang2'],
|
||||
zhuSkill:true,
|
||||
},
|
||||
jijiang1:{
|
||||
audio:2,
|
||||
audioname:['liushan'],
|
||||
audioname:['liushan','re_liubei'],
|
||||
trigger:{player:'chooseToRespondBegin'},
|
||||
check:function(event){
|
||||
if(event.jijiang) return false;
|
||||
|
@ -736,8 +740,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jijiang2:{
|
||||
audio:2,
|
||||
audioname:['liushan'],
|
||||
audio:'jijiang1',
|
||||
audioname:['liushan','re_liubei'],
|
||||
enable:'chooseToUse',
|
||||
filter:function(event,player){
|
||||
if(event.filterCard&&!event.filterCard({name:'sha'},player,event)) return false;
|
||||
|
@ -826,7 +830,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
wusheng:{
|
||||
audio:3,
|
||||
audio:2,
|
||||
audioname:['re_guanyu','guanzhang','jsp_guanyu','guansuo'],
|
||||
enable:['chooseToRespond','chooseToUse'],
|
||||
filterCard:function(card,player){
|
||||
if(get.zhu(player,'shouyue')) return true;
|
||||
|
@ -857,6 +862,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
paoxiao:{
|
||||
audio:2,
|
||||
audioname:['re_zhangfei','guanzhang','xiahouba'],
|
||||
trigger:{player:'useCard'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return event.card.name=='sha'&&player.getStat().card.sha>1&&event.getParent().type=='phase';
|
||||
},
|
||||
content:function(){},
|
||||
mod:{
|
||||
cardUsable:function(card,player,num){
|
||||
if(card.name=='sha') return Infinity;
|
||||
|
@ -1319,6 +1332,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
content:function(){}
|
||||
},
|
||||
longdan:{
|
||||
audio:'longdan_sha',
|
||||
audioname:['re_zhaoyun'],
|
||||
group:['longdan_sha','longdan_shan','longdan_draw'],
|
||||
subSkill:{
|
||||
draw:{
|
||||
|
@ -1336,6 +1351,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
sha:{
|
||||
audio:2,
|
||||
audioname:['re_zhaoyun'],
|
||||
enable:['chooseToUse','chooseToRespond'],
|
||||
filterCard:{name:'shan'},
|
||||
viewAs:{name:'sha'},
|
||||
|
@ -1362,7 +1378,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
shan:{
|
||||
audio:2,
|
||||
audio:'longdan_sha',
|
||||
audioname:['re_zhaoyun'],
|
||||
enable:['chooseToRespond'],
|
||||
filterCard:{name:'sha'},
|
||||
viewAs:{name:'shan'},
|
||||
|
@ -1676,7 +1693,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
qixi:{
|
||||
audio:4,
|
||||
audio:2,
|
||||
audioname:['ganning','re_ganning'],
|
||||
enable:'chooseToUse',
|
||||
filterCard:function(card){
|
||||
return get.color(card)=='black';
|
||||
|
@ -1690,7 +1708,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
check:function(card){return 4-get.value(card)}
|
||||
},
|
||||
keji:{
|
||||
audio:4,
|
||||
audio:2,
|
||||
audioname:['re_lvmeng','sp_lvmeng'],
|
||||
trigger:{player:'phaseDiscardBefore'},
|
||||
frequent:function(event,player){
|
||||
return !player.needsToDiscard();
|
||||
|
@ -1727,6 +1746,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
yingzi:{
|
||||
audio:2,
|
||||
audioname:['sp_lvmeng'],
|
||||
trigger:{player:'phaseDrawBegin'},
|
||||
frequent:true,
|
||||
content:function(){
|
||||
|
@ -1786,7 +1806,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
guose:{
|
||||
audio:1,
|
||||
audio:2,
|
||||
filter:function(event,player){
|
||||
return player.countCards('he',{suit:'diamond'})>0;
|
||||
},
|
||||
|
@ -1804,6 +1824,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
liuli:{
|
||||
audio:2,
|
||||
audioname:['re_daqiao','daxiaoqiao'],
|
||||
trigger:{target:'shaBefore'},
|
||||
direct:true,
|
||||
priority:5,
|
||||
|
@ -1928,7 +1949,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xiaoji:{
|
||||
audio:4,
|
||||
audio:2,
|
||||
audioname:['sp_sunshangxiang'],
|
||||
trigger:{player:'loseEnd'},
|
||||
frequent:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2163,6 +2185,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
jijiu:{
|
||||
audio:2,
|
||||
audioname:['re_huatuo'],
|
||||
enable:'chooseToUse',
|
||||
filter:function(event,player){
|
||||
return _status.currentPhase!=player;
|
||||
|
@ -2184,12 +2207,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
wushuang:{
|
||||
audio:'wushuang1',
|
||||
forced:true,
|
||||
locked:true,
|
||||
group:['wushuang1','wushuang2']
|
||||
},
|
||||
wushuang1:{
|
||||
audio:2,
|
||||
audioname:['re_lvbu'],
|
||||
trigger:{player:'shaBegin'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2207,6 +2232,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
wushuang2:{
|
||||
audio:2,
|
||||
audioname:['re_lvbu'],
|
||||
trigger:{player:'juedou',target:'juedou'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
|
|
@ -1660,7 +1660,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
name:"tiesuo",
|
||||
},
|
||||
prompt:"将一张梅花牌当铁锁连环使用",
|
||||
check:function (card){return 4-get.value(card)},
|
||||
check:function (card){return 6-get.value(card)},
|
||||
mark:true,
|
||||
marktext:"凤",
|
||||
intro:{
|
||||
|
@ -1758,7 +1758,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return get.suit(card)=='club';
|
||||
},
|
||||
check:function (card){
|
||||
return 5-get.useful(card);
|
||||
return -1;
|
||||
},
|
||||
content:function (){
|
||||
player.draw();
|
||||
|
@ -1856,12 +1856,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
ai:{
|
||||
order:1,
|
||||
result:{
|
||||
target:function (player,target){
|
||||
target:0,
|
||||
/*target:function (player,target){
|
||||
if(target.hasSkillTag('nofire')) return 0;
|
||||
if(lib.config.mode=='versus') return -1;
|
||||
if(player.hasUnknown()) return 0;
|
||||
return get.damageEffect(target,player);
|
||||
},
|
||||
},*/
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -2724,6 +2725,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
result:{
|
||||
target:function (player,target){
|
||||
var raweffect=function(player,target){
|
||||
if(player.countCards('h','sha')){
|
||||
return get.effect(target,{name:'sha'},player,target);
|
||||
}else{
|
||||
|
@ -2745,6 +2747,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
if(att<=0&&!target.countCards('he')) return 1.5;
|
||||
return -1.5;
|
||||
}
|
||||
}
|
||||
var num=game.countPlayer(function(current){
|
||||
return current!=player&¤t.hp==target.hp&&(raweffect(player,current)*get.attitude(player,current))>0
|
||||
});
|
||||
return raweffect(player,target)*(num-1);
|
||||
},
|
||||
},
|
||||
expose:0.4,
|
||||
|
@ -4278,6 +4285,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
viewAs:{
|
||||
name:"wuxie",
|
||||
},
|
||||
check:function(card){
|
||||
if(card.name=='wuxie') return 1000;
|
||||
return 0;
|
||||
},
|
||||
prompt:"将一张手牌当无懈可击使用",
|
||||
threaten:1.2,
|
||||
},
|
||||
|
|
|
@ -12,7 +12,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
xunyou:['male','wei',3,['zhiyu','qice']],
|
||||
xin_xushu:['male','shu',3,['xinwuyan','xinjujian']],
|
||||
xin_masu:['male','shu',3,['sanyao','zhiman']],
|
||||
xin_fazheng:['male','shu',3,['xinenyuan','xinxuanhuo']],
|
||||
xin_fazheng:['male','shu',3,['xinenyuan','xinxuanhuo'],['die_audio']],
|
||||
zhuran:['male','wu',4,['danshou']],
|
||||
xusheng:['male','wu',4,['xinpojun']],
|
||||
wuguotai:['female','wu',3,['ganlu','buyi']],
|
||||
|
@ -453,9 +453,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
fenli:{
|
||||
audio:2,
|
||||
group:['fenli_draw','fenli_use','fenli_discard'],
|
||||
subSkill:{
|
||||
draw:{
|
||||
audio:'fenli',
|
||||
trigger:{player:'phaseDrawBefore'},
|
||||
prompt:'是否发动【奋励】跳过摸牌阶段?',
|
||||
filter:function(event,player){
|
||||
|
@ -472,6 +474,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
use:{
|
||||
audio:'fenli',
|
||||
trigger:{player:'phaseUseBefore'},
|
||||
prompt:'是否发动【奋励】跳过出牌阶段?',
|
||||
filter:function(event,player){
|
||||
|
@ -489,6 +492,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
discard:{
|
||||
audio:'fenli',
|
||||
trigger:{player:'phaseDiscardBefore'},
|
||||
prompt:'是否发动【奋励】跳过弃牌阶段?',
|
||||
filter:function(event,player){
|
||||
|
@ -504,6 +508,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
pingkou:{
|
||||
audio:2,
|
||||
group:['pingkou_init','pingkou_count'],
|
||||
subSkill:{
|
||||
init:{
|
||||
|
@ -620,6 +625,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
pindi:{
|
||||
audio:2,
|
||||
enable:'phaseUse',
|
||||
filterTarget:function(card,player,target){
|
||||
if(player==target) return false;
|
||||
|
@ -693,6 +699,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
funan:{
|
||||
audio:2,
|
||||
trigger:{global:['respondAfter','useCardAfter']},
|
||||
filter:function(event,player){
|
||||
if(!event.respondTo) return false;
|
||||
|
@ -753,6 +760,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jiexun:{
|
||||
audio:2,
|
||||
trigger:{player:'phaseEnd'},
|
||||
// filter:function(event,player){
|
||||
// return game.hasPlayer(function(current){
|
||||
|
@ -810,9 +818,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
zhuandui:{
|
||||
audio:2,
|
||||
group:['zhuandui_respond','zhuandui_use'],
|
||||
subSkill:{
|
||||
use:{
|
||||
audio:"zhuandui",
|
||||
trigger:{player:'shaBegin'},
|
||||
check:function(event,player){
|
||||
return get.attitude(player,event.target)<0;
|
||||
|
@ -831,6 +841,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
respond:{
|
||||
audio:"zhuandui",
|
||||
trigger:{target:'shaBegin'},
|
||||
check:function(event,player){
|
||||
return get.effect(player,event.card,event.player,player)<0;
|
||||
|
@ -858,6 +869,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
tianbian:{
|
||||
audio:2,
|
||||
trigger:{player:'chooseCardBegin'},
|
||||
check:function(event,player){
|
||||
return player.hasCard(function(card){
|
||||
|
@ -902,6 +914,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jianzheng:{
|
||||
audio:2,
|
||||
trigger:{global:'useCard'},
|
||||
filter:function(event,player){
|
||||
if(!player.countCards('h')) return false;
|
||||
|
@ -979,6 +992,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
qingxian:{
|
||||
audio:2,
|
||||
group:['qingxian_jilie','qingxian_rouhe'],
|
||||
ai:{
|
||||
threaten:0.8,
|
||||
|
@ -995,6 +1009,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
subSkill:{
|
||||
rouhe:{
|
||||
audio:'qingxian',
|
||||
trigger:{player:'recoverEnd'},
|
||||
direct:true,
|
||||
content:function(){
|
||||
|
@ -1021,6 +1036,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jilie:{
|
||||
audio:'qingxian',
|
||||
trigger:{player:'damageEnd'},
|
||||
filter:function(event,player){
|
||||
return event.source&&event.source.isIn();
|
||||
|
@ -1105,6 +1121,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
juexiang:{
|
||||
audio:2,
|
||||
trigger:{player:'dieBegin'},
|
||||
direct:true,
|
||||
skillAnimation:true,
|
||||
|
@ -1127,6 +1144,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
derivation:['juexiang_ji','juexiang_lie','juexiang_rou','juexiang_he'],
|
||||
subSkill:{
|
||||
ji:{
|
||||
audio:1,
|
||||
mark:true,
|
||||
nopop:true,
|
||||
intro:{
|
||||
|
@ -1154,6 +1172,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
lie:{
|
||||
audio:1,
|
||||
mark:true,
|
||||
nopop:true,
|
||||
intro:{
|
||||
|
@ -1183,6 +1202,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
rou:{
|
||||
audio:1,
|
||||
mark:true,
|
||||
nopop:true,
|
||||
intro:{
|
||||
|
@ -1215,6 +1235,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
he:{
|
||||
audio:1,
|
||||
mark:true,
|
||||
nopop:true,
|
||||
intro:{
|
||||
|
@ -1265,6 +1286,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
bizhuan:{
|
||||
audio:2,
|
||||
trigger:{player:'useCardAfter',target:'useCardToBegin'},
|
||||
filter:function(event,player){
|
||||
if(event.name!='useCard'&&event.player==event.target) return false;
|
||||
|
@ -1480,6 +1502,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
shouxi:{
|
||||
audio:2,
|
||||
trigger:{target:'shaBefore'},
|
||||
direct:true,
|
||||
init:function(player){
|
||||
|
@ -1538,6 +1561,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
huimin:{
|
||||
audio:2,
|
||||
trigger:{player:'phaseEnd'},
|
||||
check:function(event,player){
|
||||
return game.countPlayer(function(current){
|
||||
|
@ -1651,6 +1675,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
fuzhu:{
|
||||
audio:2,
|
||||
trigger:{global:'phaseEnd'},
|
||||
filter:function(event,player){
|
||||
return event.player!=player&&event.player.sex=='male'&&ui.cardPile.childElementCount<=player.hp*10;
|
||||
|
@ -1693,9 +1718,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
wengua:{
|
||||
global:'wengua2'
|
||||
global:'wengua2',
|
||||
audio:2,
|
||||
},
|
||||
wengua2:{
|
||||
audio:'wengua',
|
||||
enable:'phaseUse',
|
||||
filter:function(event,player){
|
||||
if(player.hasSkill('wengua3')) return false;
|
||||
|
@ -1825,6 +1852,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
wengua3:{},
|
||||
daiyan:{
|
||||
audio:2,
|
||||
trigger:{player:'phaseEnd'},
|
||||
direct:true,
|
||||
init:function(){
|
||||
|
@ -1886,6 +1914,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
fumian:{
|
||||
audio:2,
|
||||
trigger:{player:'phaseBegin'},
|
||||
direct:true,
|
||||
content:function(){
|
||||
|
@ -2023,6 +2052,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
zhongjian:{
|
||||
audio:2,
|
||||
enable:'phaseUse',
|
||||
usable:2,
|
||||
filter:function(event,player){
|
||||
|
@ -2143,6 +2173,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
caishi:{
|
||||
audio:2,
|
||||
trigger:{player:'phaseDrawBegin'},
|
||||
direct:true,
|
||||
init:function(player){
|
||||
|
@ -2300,6 +2331,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
xinsidi:{
|
||||
audio:"sidi",
|
||||
trigger:{global:'phaseUseBegin'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2358,6 +2390,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
audio:false,
|
||||
content:function(){
|
||||
if(!player.storage.xinsidi3&&player.storage.xinsidi4.isAlive()){
|
||||
player.storage.xinsidi4.logSkill('xinsidi',player);
|
||||
player.storage.xinsidi4.useCard({name:'sha'},player);
|
||||
}
|
||||
delete player.storage.xinsidi2;
|
||||
|
@ -2601,6 +2634,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
taoluan_backup:{},
|
||||
jishe:{
|
||||
audio:2,
|
||||
enable:'phaseUse',
|
||||
filter:function(event,player){
|
||||
return player.getHandcardLimit()>0;
|
||||
|
@ -2639,6 +2673,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
jishe3:{
|
||||
audio:'jishe',
|
||||
trigger:{player:'phaseEnd'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2678,6 +2713,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
lianhuo:{
|
||||
audio:2,
|
||||
trigger:{player:'damageBegin'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2688,6 +2724,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
huisheng:{
|
||||
audio:2,
|
||||
trigger:{player:'damageBefore'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2776,6 +2813,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
qinqing:{
|
||||
audio:2,
|
||||
mode:['identity','versus'],
|
||||
available:function(mode){
|
||||
if(mode=='versus'&&_status.mode!='four') return false;
|
||||
|
@ -2786,14 +2824,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var zhu=get.zhu(player);
|
||||
if(!zhu||!zhu.isZhu) return false;
|
||||
return game.hasPlayer(function(current){
|
||||
return current!=player&¤t!=zhu&&get.distance(current,zhu,'attack')<=1;
|
||||
return current!=zhu&&get.distance(current,zhu,'attack')<=1;
|
||||
});
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.chooseTarget(get.prompt('qinqing'),[1,Infinity],function(card,player,target){
|
||||
var zhu=get.zhu(player);
|
||||
if(target==player||target==zhu) return false;
|
||||
if(target==zhu) return false;
|
||||
return get.distance(target,zhu,'attack')<=1;
|
||||
}).set('ai',function(target){
|
||||
var he=target.countCards('he')
|
||||
|
@ -2844,6 +2882,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
guizao:{
|
||||
audio:2,
|
||||
trigger:{player:'phaseDiscardEnd'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2867,6 +2906,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
jiyu:{
|
||||
audio:2,
|
||||
enable:'phaseUse',
|
||||
locked:false,
|
||||
filter:function(event,player){
|
||||
|
@ -3307,7 +3347,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
fulin:{
|
||||
trigger:{player:'phaseDiscardBegin'},
|
||||
silent:true,
|
||||
audio:2,
|
||||
content:function(){
|
||||
player.addTempSkill('fulin2','phaseDiscardAfter');
|
||||
},
|
||||
|
@ -3323,7 +3363,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
count:{
|
||||
trigger:{player:'gainEnd'},
|
||||
silent:true,
|
||||
audio:'fulin',
|
||||
filter:function(event,player){
|
||||
return _status.currentPhase==player;
|
||||
},
|
||||
|
@ -3597,6 +3637,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
qingxi:{
|
||||
audio:2,
|
||||
trigger:{source:'damageBegin'},
|
||||
check:function(event,player){
|
||||
return get.attitude(player,event.player)<0;
|
||||
|
@ -4154,6 +4195,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
benxi:{
|
||||
audio:2,
|
||||
trigger:{player:'useCard'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return player.isPhaseUsing();
|
||||
},
|
||||
content:function(){},
|
||||
mod:{
|
||||
globalFrom:function(from,to,distance){
|
||||
if(_status.currentPhase==from){
|
||||
|
@ -4184,6 +4232,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
sidi:{
|
||||
audio:2,
|
||||
trigger:{global:'respondEnd'},
|
||||
filter:function(event,player){
|
||||
if(event.parent.parent.name!='sha') return false;
|
||||
|
@ -5136,6 +5185,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
qinwang:{
|
||||
audio:'qinwang1',
|
||||
unique:true,
|
||||
group:['qinwang1','qinwang2'],
|
||||
zhuSkill:true,
|
||||
|
@ -5219,7 +5269,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
qinwang2:{
|
||||
audio:2,
|
||||
audio:'qinwang1',
|
||||
enable:'chooseToUse',
|
||||
filter:function(event,player){
|
||||
if(event.filterCard&&!event.filterCard({name:'sha'},player,event)) return false;
|
||||
|
@ -6419,6 +6469,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
zhiman:{
|
||||
audio:2,
|
||||
audioname:['guansuo'],
|
||||
trigger:{source:'damageBefore'},
|
||||
check:function(event,player){
|
||||
if(get.damageEffect(event.player,player,player)<0) return true;
|
||||
|
@ -8266,6 +8317,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
zongshi:{
|
||||
audio:2,
|
||||
mod:{
|
||||
maxHandcard:function(player,num){
|
||||
return num+game.countGroup();
|
||||
|
@ -8691,6 +8743,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
group:'xinenyuan2'
|
||||
},
|
||||
xinenyuan2:{
|
||||
audio:true,
|
||||
trigger:{player:'gainEnd'},
|
||||
filter:function(event,player){
|
||||
return event.source&&event.source.isAlive()&&event.source!=player&&event.cards.length>=2;
|
||||
|
@ -8704,6 +8757,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
enyuan:{
|
||||
audio:'enyuan1',
|
||||
locked:true,
|
||||
group:['enyuan1','enyuan2'],
|
||||
ai:{
|
||||
|
@ -8731,7 +8785,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
enyuan2:{
|
||||
trigger:{player:'damageEnd'},
|
||||
forced:true,
|
||||
audio:true,
|
||||
audio:2,
|
||||
filter:function(event,player){
|
||||
return event.source&&event.source!=player;
|
||||
},
|
||||
|
|
|
@ -4167,6 +4167,13 @@
|
|||
frequent:true,
|
||||
intro:'开启后游戏中将有两个内奸(内奸胜利条件仍为主内1v1时击杀主公)'
|
||||
},
|
||||
choose_group:{
|
||||
name:'神武将选择势力',
|
||||
init:true,
|
||||
restart:true,
|
||||
frequent:true,
|
||||
intro:'若开启此选项,选择神武将的玩家需在亮出自己的武将牌之前为自己选择一个势力。'
|
||||
},
|
||||
double_character:{
|
||||
name:'双将模式',
|
||||
init:false,
|
||||
|
|
|
@ -1,26 +1,22 @@
|
|||
window.noname_update={
|
||||
version:'1.9.90.1',
|
||||
update:'1.9.90',
|
||||
version:'1.9.90.2',
|
||||
update:'1.9.90.1',
|
||||
changeLog:[
|
||||
'神武将选择势力(仅限单机身份模式)',
|
||||
'bug修复',
|
||||
'神武将选择势力设为可选选项',
|
||||
'大量配音问题修复',
|
||||
],
|
||||
files:[
|
||||
'card/extra.js',
|
||||
'card/guozhan.js',
|
||||
'character/extra.js',
|
||||
'character/old.js',
|
||||
'character/refresh.js',
|
||||
'character/shenhua.js',
|
||||
'character/sp.js',
|
||||
'character/standard.js',
|
||||
'character/xinghuoliaoyuan.js',
|
||||
'character/yijiang.js',
|
||||
'mode/boss.js',
|
||||
'mode/guozhan.js',
|
||||
'mode/identity.js',
|
||||
'mode/versus.js',
|
||||
'game/game.js',
|
||||
'layout/default/layout.css',
|
||||
'layout/mobile/layout.css',
|
||||
]
|
||||
};
|
||||
|
|
|
@ -285,7 +285,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
gz_panfeng:['male','qun',4,['kuangfu'],['gzskin']],
|
||||
gz_zoushi:['female','qun',3,['huoshui','qingcheng']],
|
||||
|
||||
gz_dengai:['male','wei',4,['tuntian','ziliang','gzjixi'],['gzskin']],
|
||||
gz_dengai:['male','wei',4,['tuntian','ziliang','gzjixi'],['gzskin','die_audio']],
|
||||
gz_caohong:['male','wei',4,['huyuan','heyi'],['gzskin']],
|
||||
gz_jiangfei:['male','shu',3,['shengxi','gzshoucheng']],
|
||||
gz_jiangwei:['male','shu',4,['tiaoxin','yizhi','tianfu'],['gzskin']],
|
||||
|
@ -2129,6 +2129,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
},
|
||||
"new_keji":{
|
||||
audio:"keji",
|
||||
group:["new_keji_count","new_keji_reset","new_keji_judge"],
|
||||
subSkill:{
|
||||
reset:{
|
||||
|
@ -2786,7 +2787,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
if(result.bool){
|
||||
player.logSkill('new_fangzhu',result.targets);
|
||||
event.target=result.targets[0]
|
||||
event.target.chooseToDiscard().set('ai',function(card){
|
||||
event.target.chooseToDiscard('he').set('ai',function(card){
|
||||
var player=_status.event.player;
|
||||
if(player.isTurnedOver()) return -1;
|
||||
return (player.hp*player.hp)-get.value(card);
|
||||
|
@ -3707,6 +3708,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
gzzhiman:{
|
||||
audio:'zhiman',
|
||||
inherit:'zhiman',
|
||||
content:function(){
|
||||
'step 0'
|
||||
|
@ -4908,6 +4910,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
hongfa_respond:{
|
||||
audio:'hongfa',
|
||||
trigger:{player:'chooseToRespondBegin'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -4941,6 +4944,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
hongfa_use:{
|
||||
audio:'hongfa',
|
||||
enable:'chooseToUse',
|
||||
filter:function(event,player){
|
||||
if(!event.filterCard({name:'sha'},player)) return false;
|
||||
|
@ -4997,6 +5001,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
hongfa:{
|
||||
audio:2,
|
||||
init:function(player){
|
||||
player.storage.huangjintianbingfu=[];
|
||||
},
|
||||
|
@ -5012,6 +5017,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
player.storage.huangjintianbingfu.addArray(get.cards(get.population('qun')));
|
||||
player.syncStorage('huangjintianbingfu');
|
||||
player.updateMarks('huangjintianbingfu');
|
||||
event.trigger('addCardToStorage');
|
||||
},
|
||||
ai:{
|
||||
threaten:2,
|
||||
|
@ -5047,6 +5053,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
wendao:{
|
||||
audio:2,
|
||||
unique:true,
|
||||
forceunique:true,
|
||||
enable:'phaseUse',
|
||||
|
@ -5125,6 +5132,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
// }
|
||||
// return num>event.num;
|
||||
// },
|
||||
audio:2,
|
||||
content:function(){
|
||||
'step 0'
|
||||
var num=get.population('qun');
|
||||
|
@ -5144,6 +5152,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
zhangwu:{
|
||||
audio:2,
|
||||
unique:true,
|
||||
forceunique:true,
|
||||
ai:{
|
||||
|
@ -5152,6 +5161,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
group:['zhangwu_gain','zhangwu_clear','zhangwu_count1','zhangwu_count2','zhangwu_count3'],
|
||||
subSkill:{
|
||||
gain:{
|
||||
audio:'zhangwu',
|
||||
trigger:{global:['discardAfter','respondAfter','useCardAfter','equipAfter',
|
||||
'judgeAfter','useSkillAfter','phaseDrawBegin','phaseAfter']},
|
||||
forced:true,
|
||||
|
@ -5165,11 +5175,12 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
}
|
||||
}
|
||||
if(game.hasPlayer(function(current){
|
||||
return current!=player&¤t.getEquip('feilongduofeng');
|
||||
})){
|
||||
return true;
|
||||
}
|
||||
if(event.name=='equip'&&player!=event.player&&event.card.name=='feilongduofeng') return true;
|
||||
//if(game.hasPlayer(function(current){
|
||||
// return current!=player&¤t.getEquip('feilongduofeng');
|
||||
//})){
|
||||
// return true;
|
||||
//}
|
||||
if(['discard','respond','useCard'].contains(event.name)&&event.cards){
|
||||
for(var i=0;i<event.cards.length;i++){
|
||||
if(event.cards[i].name=='feilongduofeng'&&get.position(event.cards[i])=='d'){
|
||||
|
@ -5187,14 +5198,15 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
if(trigger.name=='equip'||trigger.name=='respond'||trigger.delay==false) game.delay();
|
||||
'step 1'
|
||||
var list=[];
|
||||
game.countPlayer(function(current){
|
||||
/*game.countPlayer(function(current){
|
||||
if(current!=player){
|
||||
var es=current.getEquip('feilongduofeng');
|
||||
if(es){
|
||||
list.add(es);
|
||||
}
|
||||
}
|
||||
});
|
||||
});*/
|
||||
if(trigger.name=='equip'&&player!=trigger.player) list.add(trigger.card);
|
||||
if(['discard','respond','useCard'].contains(trigger.name)&&trigger.cards){
|
||||
for(var i=0;i<trigger.cards.length;i++){
|
||||
if(trigger.cards[i].name=='feilongduofeng'&&get.position(trigger.cards[i])=='d'){
|
||||
|
@ -5285,6 +5297,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
count2:{
|
||||
audio:'zhangwu',
|
||||
trigger:{player:'loseAfter'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -5330,6 +5343,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
count3:{
|
||||
audio:'zhangwu',
|
||||
trigger:{global:'equipBefore'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -5430,6 +5444,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
gzshoucheng:{
|
||||
inherit:'shoucheng',
|
||||
audio:'shoucheng',
|
||||
filter:function(event,player){
|
||||
if(event.player.countCards('h')) return false;
|
||||
if(!event.player.isFriendOf(player)) return false;
|
||||
|
@ -5455,6 +5470,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
gzjixi:{
|
||||
inherit:'jixi',
|
||||
audio:2,
|
||||
mainSkill:true,
|
||||
init:function(player){
|
||||
if(player.checkMainSkill('gzjixi')){
|
||||
|
@ -5463,6 +5479,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
ziliang:{
|
||||
audio:2,
|
||||
trigger:{global:'damageEnd'},
|
||||
filter:function(event,player){
|
||||
return event.player.isIn()&&event.player.isFriendOf(player)&&player.storage.tuntian&&player.storage.tuntian.length;
|
||||
|
@ -5659,10 +5676,12 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
fengshi:{
|
||||
audio:2,
|
||||
zhenfa:'siege',
|
||||
global:'fengshi_sha'
|
||||
},
|
||||
fengshi_sha:{
|
||||
audio:'fengshi',
|
||||
trigger:{player:'shaBegin'},
|
||||
filter:function(event,player){
|
||||
if(game.countPlayer()<4) return false;
|
||||
|
@ -5694,6 +5713,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
gzcunsi:{
|
||||
derivation:'gzyongjue',
|
||||
enable:'phaseUse',
|
||||
audio:'cunsi',
|
||||
filter:function(event,player){
|
||||
return player.checkMainSkill('gzcunsi',false)||player.checkViceSkill('gzcunsi',false);
|
||||
},
|
||||
|
@ -5737,6 +5757,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
gzyongjue:{
|
||||
audio:'yongjue',
|
||||
trigger:{global:'useCardAfter'},
|
||||
filter:function(event,player){
|
||||
if(event.gzyongjue==player){
|
||||
|
@ -5749,7 +5770,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
return false;
|
||||
},
|
||||
mark:true,
|
||||
nopop:true,
|
||||
intro:{
|
||||
content:'若与你势力相同的一名角色于其回合内使用的第一张牌为【杀】,则该角色可以在此【杀】结算完成后获得之'
|
||||
},
|
||||
|
@ -5813,6 +5833,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
derivation:'benghuai'
|
||||
},
|
||||
gzmingshi:{
|
||||
audio:'mingshi',
|
||||
trigger:{player:'damageBegin'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
|
@ -6006,7 +6027,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
gzqianxun:{
|
||||
audio:'qianxun',
|
||||
audio:'reqianxun',
|
||||
trigger:{target:'useCardToBefore'},
|
||||
forced:true,
|
||||
priority:15,
|
||||
|
@ -6051,6 +6072,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
gzxiaoji:{
|
||||
inherit:'xiaoji',
|
||||
audio:'xiaoji',
|
||||
content:function(){
|
||||
player.draw(2);
|
||||
}
|
||||
|
@ -6151,6 +6173,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
gzzhiheng:{
|
||||
inherit:'zhiheng',
|
||||
audio:'zhiheng',
|
||||
selectCard:function(){
|
||||
var player=_status.event.player;
|
||||
if(player.hasSkill('dinglanyemingzhu_skill')) return [1,Infinity];
|
||||
|
@ -6277,6 +6300,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
gzxiaoguo:{
|
||||
inherit:'xiaoguo',
|
||||
audio:'xiaoguo',
|
||||
content:function(){
|
||||
"step 0"
|
||||
var nono=(Math.abs(get.attitude(player,trigger.player))<3);
|
||||
|
|
|
@ -617,7 +617,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
if(typeof lib.config.test_game=='string'&&player==game.me.next){
|
||||
player.init(lib.config.test_game);
|
||||
}
|
||||
if(player.group=='shen'){
|
||||
if(get.config('choose_group')&&player.group=='shen'){
|
||||
var list=lib.group.slice(0);
|
||||
list.remove('shen');
|
||||
if(list.length) player.group=list.randomGet();
|
||||
|
@ -1173,7 +1173,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
game.addRecentCharacter(result.buttons[0].link);
|
||||
}
|
||||
if(chooseGroup){
|
||||
if(get.config('choose_group')&&chooseGroup){
|
||||
var list=lib.group.slice(0);
|
||||
list.remove('shen');
|
||||
game.me.chooseControl(list).prompt='请选择神武将的势力';
|
||||
|
|
Loading…
Reference in New Issue