2017-01-23 07:04:02 +00:00
|
|
|
|
character.old={
|
|
|
|
|
character:{
|
|
|
|
|
zhangjiao:['male','qun',3,['leiji','guidao','huangtian'],['zhu']],
|
|
|
|
|
masu:['male','shu',3,['xinzhan','huilei']],
|
|
|
|
|
xushu:['male','shu',3,['wuyan','jujian']],
|
|
|
|
|
fazheng:['male','shu',3,['enyuan','xuanhuo']],
|
|
|
|
|
liru:['male','qun',3,['juece','mieji','fencheng']],
|
2017-01-24 14:45:08 +00:00
|
|
|
|
yujin:['male','wei',4,['yizhong']],
|
2017-01-23 12:19:03 +00:00
|
|
|
|
lusu:['male','wu',3,['haoshi','dimeng']],
|
2017-01-23 07:30:15 +00:00
|
|
|
|
yuanshao:['male','qun',4,['luanji','xueyi'],['zhu']],
|
2017-01-23 13:54:09 +00:00
|
|
|
|
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_madai:['male','shu',4,['mashu','oldqianxi']],
|
|
|
|
|
old_caoxiu:['male','wei',4,['taoxi']],
|
2017-01-23 15:49:24 +00:00
|
|
|
|
old_huaxiong:['male','qun',6,['shiyong']],
|
|
|
|
|
old_wangyi:['female','wei',3,['oldzhenlie','oldmiji']],
|
|
|
|
|
old_caozhen:['male','wei',4,['sidi']],
|
|
|
|
|
old_quancong:['male','wu',4,['zhenshan']],
|
2017-02-06 03:27:52 +00:00
|
|
|
|
old_yuanshu:['male','qun',4,['yongsi','weidi']],
|
2017-01-23 07:04:02 +00:00
|
|
|
|
},
|
|
|
|
|
skill:{
|
2017-01-23 16:36:45 +00:00
|
|
|
|
zhenshan:{
|
|
|
|
|
trigger:{player:'chooseToRespondBegin'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.responded) return false;
|
2017-03-22 04:08:52 +00:00
|
|
|
|
if(!event.filterCard({name:'shan'},player,event)&&!!event.filterCard({name:'sha'},player,event)) return false;
|
2017-01-23 16:36:45 +00:00
|
|
|
|
if(player.hasSkill('zhenshan2')) return false;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var nh=player.countCards('h');
|
2017-02-12 00:31:38 +00:00
|
|
|
|
return game.hasPlayer(function(current){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return current!=player&¤t.countCards('h')<nh;
|
2017-02-12 00:31:38 +00:00
|
|
|
|
});
|
2017-01-23 16:36:45 +00:00
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.chooseTarget(get.prompt('zhenshan'),function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return target.countCards('h')<player.countCards('h');
|
2017-01-23 16:36:45 +00:00
|
|
|
|
}).set('ai',function(target){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.attitude(player,target)
|
2017-01-23 16:36:45 +00:00
|
|
|
|
});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.responded=true;
|
|
|
|
|
if(trigger.filterCard({name:'shan'})){
|
|
|
|
|
trigger.result={bool:true,card:{name:'shan'}}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
trigger.result={bool:true,card:{name:'sha'}}
|
|
|
|
|
}
|
|
|
|
|
player.logSkill('zhenshan',result.targets);
|
|
|
|
|
player.addTempSkill('zhenshan2','phaseAfter');
|
2017-03-01 04:48:42 +00:00
|
|
|
|
player.swapHandcards(result.targets[0]);
|
2017-01-23 16:36:45 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-03-22 04:08:52 +00:00
|
|
|
|
group:'zhenshan_use'
|
2017-01-23 16:36:45 +00:00
|
|
|
|
},
|
|
|
|
|
zhenshan2:{},
|
2017-03-22 04:08:52 +00:00
|
|
|
|
zhenshan_use:{
|
2017-01-23 16:36:45 +00:00
|
|
|
|
enable:'chooseToUse',
|
2017-03-22 04:08:52 +00:00
|
|
|
|
filter:function(event,player){
|
2017-01-23 16:36:45 +00:00
|
|
|
|
if(player.hasSkill('zhenshan2')) return false;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var nh=player.countCards('h');
|
2017-03-22 04:08:52 +00:00
|
|
|
|
if(!game.hasPlayer(function(current){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return current!=player&¤t.countCards('h')<nh;
|
2017-03-22 04:08:52 +00:00
|
|
|
|
})){
|
|
|
|
|
return false;
|
2017-01-23 16:36:45 +00:00
|
|
|
|
}
|
2017-03-22 04:08:52 +00:00
|
|
|
|
return event.filterCard({name:'sha'},player,event)||
|
|
|
|
|
event.filterCard({name:'jiu'},player,event)||
|
|
|
|
|
event.filterCard({name:'tao'},player,event);
|
2017-01-23 16:36:45 +00:00
|
|
|
|
},
|
2017-03-22 04:08:52 +00:00
|
|
|
|
chooseButton:{
|
|
|
|
|
dialog:function(event,player){
|
|
|
|
|
var list=[];
|
|
|
|
|
if(event.filterCard({name:'sha'},player,event)){
|
|
|
|
|
list.push(['基本','','sha']);
|
|
|
|
|
list.push(['基本','','sha','fire']);
|
|
|
|
|
list.push(['基本','','sha','thunder']);
|
|
|
|
|
}
|
|
|
|
|
if(event.filterCard({name:'tao'},player,event)){
|
|
|
|
|
list.push(['基本','','tao']);
|
|
|
|
|
}
|
|
|
|
|
if(event.filterCard({name:'jiu'},player,event)){
|
|
|
|
|
list.push(['基本','','jiu']);
|
|
|
|
|
}
|
|
|
|
|
return ui.create.dialog('振赡',[list,'vcard'],'hidden');
|
2017-01-23 16:36:45 +00:00
|
|
|
|
},
|
2017-03-22 04:08:52 +00:00
|
|
|
|
check:function(button){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var card={name:button.link[2],nature:button.link[3]};
|
|
|
|
|
if(card.name=='jiu') return 0;
|
|
|
|
|
if(game.hasPlayer(function(current){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return player.canUse(card,current)&&get.effect(current,card,player,player)>0;
|
2017-03-22 04:08:52 +00:00
|
|
|
|
})){
|
|
|
|
|
if(card.name=='sha'){
|
|
|
|
|
if(card.nature=='fire') return 2.95;
|
|
|
|
|
else if(card.nature=='fire') return 2.92;
|
|
|
|
|
else return 2.9;
|
|
|
|
|
}
|
|
|
|
|
else if(card.name=='tao'){
|
|
|
|
|
return 4;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
backup:function(links,player){
|
|
|
|
|
return {
|
|
|
|
|
filterCard:function(){return false},
|
|
|
|
|
viewAs:{name:links[0][2],nature:links[0][3]},
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
popname:true,
|
|
|
|
|
log:false,
|
|
|
|
|
precontent:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget('选择交换手牌的目标',function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return target.countCards('h')<player.countCards('h')
|
2017-03-22 04:08:52 +00:00
|
|
|
|
},true).ai=function(target){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.attitude(player,target);
|
2017-03-22 04:08:52 +00:00
|
|
|
|
}
|
|
|
|
|
player.addTempSkill('zhenshan2','phaseAfter');
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('zhenshan',result.targets);
|
|
|
|
|
player.swapHandcards(result.targets[0]);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
prompt:function(links,player){
|
|
|
|
|
return '选择'+get.translation(links[0][3]||'')+get.translation(links[0][2])+'的目标';
|
2017-01-23 16:36:45 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:function(){
|
2017-03-22 04:08:52 +00:00
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var event=_status.event;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var nh=player.countCards('h');
|
2017-02-12 00:31:38 +00:00
|
|
|
|
if(game.hasPlayer(function(current){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.attitude(player,current)>0&¤t.countCards('h')<nh;
|
2017-02-12 00:31:38 +00:00
|
|
|
|
})){
|
2017-03-22 04:08:52 +00:00
|
|
|
|
if(event.type=='dying'){
|
|
|
|
|
if(event.filterCard({name:'tao'},player,event)){
|
|
|
|
|
return 0.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(event.filterCard({name:'tao'},player,event)){
|
|
|
|
|
return 4;
|
|
|
|
|
}
|
|
|
|
|
if(event.filterCard({name:'sha'},player,event)){
|
|
|
|
|
return 2.9;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-23 16:36:45 +00:00
|
|
|
|
}
|
2017-03-22 04:08:52 +00:00
|
|
|
|
return 0;
|
|
|
|
|
},
|
2017-01-23 16:36:45 +00:00
|
|
|
|
save:true,
|
2017-03-22 04:08:52 +00:00
|
|
|
|
respondSha:true,
|
|
|
|
|
skillTagFilter:function(player,tag,arg){
|
2017-01-23 16:36:45 +00:00
|
|
|
|
if(player.hasSkill('zhenshan2')) return false;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var nh=player.countCards('h');
|
2017-02-12 00:31:38 +00:00
|
|
|
|
return game.hasPlayer(function(current){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return current!=player&¤t.countCards('h')<nh;
|
2017-02-12 00:31:38 +00:00
|
|
|
|
});
|
2017-01-23 16:36:45 +00:00
|
|
|
|
},
|
2017-03-22 04:08:52 +00:00
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-23 16:36:45 +00:00
|
|
|
|
},
|
2017-01-23 15:49:24 +00:00
|
|
|
|
oldzhenlie:{
|
|
|
|
|
audio:'zhenlie',
|
|
|
|
|
trigger:{player:'judge'},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return event.judge(player.judging[0])<0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var card=get.cards()[0];
|
|
|
|
|
player.$throw(card);
|
|
|
|
|
card.clone.classList.add('thrownhighlight');
|
|
|
|
|
if(trigger.player.judging[0].clone){
|
|
|
|
|
trigger.player.judging[0].clone.classList.remove('thrownhighlight');
|
|
|
|
|
game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone]));
|
|
|
|
|
}
|
|
|
|
|
ui.discardPile.appendChild(trigger.player.judging[0]);
|
|
|
|
|
trigger.player.judging[0]=card;
|
|
|
|
|
trigger.position.appendChild(card);
|
|
|
|
|
game.log(trigger.player,'的判定牌改为',card);
|
|
|
|
|
game.delay(2);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
oldmiji:{
|
|
|
|
|
trigger:{player:['phaseBegin','phaseEnd']},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.isDamaged();
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.judge(function(card){
|
|
|
|
|
return get.color(card)=='black'?1:-1;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool&&player.maxHp>player.hp){
|
|
|
|
|
var cards=get.cards(player.maxHp-player.hp);
|
|
|
|
|
event.cards=cards;
|
|
|
|
|
var dialog=ui.create.dialog('选择获得卡牌的目标',cards,'hidden');
|
|
|
|
|
dialog.classList.add('noselect');
|
|
|
|
|
player.chooseTarget(true,dialog).ai=function(target){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.attitude(player,target)/Math.sqrt(1+target.countCards('h'));
|
2017-01-23 15:49:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
2017-01-27 11:31:29 +00:00
|
|
|
|
player.line(result.targets);
|
2017-01-23 15:49:24 +00:00
|
|
|
|
result.targets[0].gain(event.cards,'draw');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(get.tag(card,'recover')&&target.hp==target.maxHp-1) return [0,0];
|
|
|
|
|
if(target.hasFriend()){
|
|
|
|
|
if((get.tag(card,'damage')==1||get.tag(card,'loseHp'))&&target.hp==target.maxHp) return [0,1];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
threaten:function(player,target){
|
|
|
|
|
if(target.hp==1) return 3;
|
|
|
|
|
if(target.hp==2) return 2;
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shiyong:{
|
|
|
|
|
audio:2,
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
check:function(){
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
2017-04-08 13:33:19 +00:00
|
|
|
|
return event.card&&event.card.name=='sha'&&(get.color(event.card)=='red'||event.player.hasSkill('jiu'));
|
2017-01-23 15:49:24 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.loseMaxHp();
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-23 13:54:09 +00:00
|
|
|
|
oldqianxi:{
|
|
|
|
|
trigger:{source:'damageBefore'},
|
|
|
|
|
check:function(event,player){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
var att=get.attitude(player,event.player);
|
2017-01-23 13:54:09 +00:00
|
|
|
|
if(event.player.hp==event.player.maxHp) return att<0;
|
|
|
|
|
if(event.player.hp==event.player.maxHp-1&&
|
|
|
|
|
(event.player.maxHp<=3||event.player.hasSkillTag('maixie'))) return att<0;
|
|
|
|
|
return att>0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.card&&event.card.name=='sha'&&get.distance(player,event.player)<=1;
|
|
|
|
|
},
|
|
|
|
|
logTarget:'player',
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.judge(function(card){
|
|
|
|
|
return get.suit(card)!='heart'?1:-1;
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
trigger.player.loseMaxHp(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
oldxuanfeng:{
|
|
|
|
|
audio:'xuanfeng',
|
|
|
|
|
trigger:{player:'loseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
if(event.cards[i].original=='e') return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.chooseTarget(get.prompt('xuanfeng'),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){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.damageEffect(target,player,player)*2;
|
2017-01-23 13:54:09 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.effect(target,{name:'sha'},player,player);
|
2017-01-23 13:54:09 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('xuanfeng',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'},target,false).animate=false;
|
|
|
|
|
game.delay();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
var target=event.target;
|
|
|
|
|
if(result.control=='出杀'){
|
|
|
|
|
player.useCard({name:'sha'},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];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
noe:true
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-23 07:04:02 +00:00
|
|
|
|
},
|
|
|
|
|
translate:{
|
2017-02-06 03:27:52 +00:00
|
|
|
|
old_yuanshu:'旧袁术',
|
2017-01-23 13:54:09 +00:00
|
|
|
|
old_xusheng:'旧徐盛',
|
|
|
|
|
old_lingtong:'旧凌统',
|
|
|
|
|
old_zhuran:'旧朱然',
|
|
|
|
|
old_madai:'旧马岱',
|
|
|
|
|
old_caoxiu:'旧曹休',
|
2017-01-23 15:49:24 +00:00
|
|
|
|
old_huaxiong:'旧华雄',
|
|
|
|
|
old_wangyi:'旧王异',
|
|
|
|
|
old_caozhen:'旧曹真',
|
|
|
|
|
old_quancong:'旧全琮',
|
2017-01-23 07:04:02 +00:00
|
|
|
|
|
2017-01-23 16:36:45 +00:00
|
|
|
|
zhenshan:'振赡',
|
2017-03-22 04:08:52 +00:00
|
|
|
|
zhenshan_use:'振赡',
|
|
|
|
|
zhenshan_use_backup:'振赡',
|
2017-01-23 16:36:45 +00:00
|
|
|
|
zhenshan_info:'每名角色的回合限一次,每当你需要使用或打出一张基本牌时,你可以与一名手牌数少于你的角色交换手牌。若如此做,视为你使用或打出了此牌',
|
2017-03-22 04:08:52 +00:00
|
|
|
|
zhenshan_use_info:'每名角色的回合限一次,每当你需要使用或打出一张基本牌时,你可以与一名手牌数少于你的角色交换手牌。若如此做,视为你使用或打出了此牌',
|
2017-01-23 15:49:24 +00:00
|
|
|
|
oldzhenlie:'贞烈',
|
|
|
|
|
oldzhenlie_info:'在你的判定牌生效前,你可以亮出牌堆顶的一张牌代替之',
|
|
|
|
|
oldmiji:'秘计',
|
|
|
|
|
oldmiji_info:'准备/结束阶段开始时,若你已受伤,你可以判定,若判定结果为黑色,你观看牌堆顶的X张牌(X为你已损失的体力值),然后将这些牌交给一名角色',
|
|
|
|
|
shiyong:'恃勇',
|
|
|
|
|
shiyong_info:'锁定技,当你受到一次红色【杀】或【酒】【杀】造成的伤害后,须减1点体力上限',
|
2017-01-23 13:54:09 +00:00
|
|
|
|
oldqianxi:'潜袭',
|
|
|
|
|
oldqianxi_info:'当你使用【杀】对距离为1的目标角色造成伤害时,你可以进行一次判定,若判定结果不为红桃,你防止此伤害,令其减1点体力上限',
|
|
|
|
|
oldxuanfeng:'旋风',
|
|
|
|
|
oldxuanfeng_info:'每当你失去一次装备区里的牌时,你可以执行下列两项中的一项:1.视为对任意一名其他角色使用一张【杀】(此【杀】不计入每回合的使用限制);2.对与你距离1以内的一名其他角色造成一点伤害',
|
2017-01-23 07:04:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|