2015-04-29 03:25:17 +00:00
|
|
|
|
card.shenqi={
|
|
|
|
|
card:{
|
|
|
|
|
donghuangzhong:{
|
2016-06-08 04:29:54 +00:00
|
|
|
|
fullskin:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['donghuangzhong'],
|
2016-06-08 07:45:01 +00:00
|
|
|
|
ai:{
|
2016-06-08 13:06:42 +00:00
|
|
|
|
equipValue:6
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xuanyuanjian:{
|
2016-06-08 04:29:54 +00:00
|
|
|
|
fullskin:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
2016-06-08 07:45:01 +00:00
|
|
|
|
skills:['xuanyuanjian','xuanyuanjian2','xuanyuanjian3'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
enable:function(card,player){
|
|
|
|
|
return player.skills.contains('xuanyuan')||player.hp>2;
|
|
|
|
|
},
|
2016-06-08 04:29:54 +00:00
|
|
|
|
distance:{attackFrom:-3},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
onEquip:function(){
|
|
|
|
|
if(!player.skills.contains('xuanyuan')&&player.hp<=2){
|
|
|
|
|
player.discard(card);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2016-06-08 07:45:01 +00:00
|
|
|
|
equipValue:9
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
pangufu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
skills:['pangufu'],
|
|
|
|
|
distance:{attackFrom:-3},
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:8
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
lianyaohu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:8
|
|
|
|
|
},
|
|
|
|
|
skills:['lianhua','shouna']
|
|
|
|
|
},
|
|
|
|
|
haotianta:{
|
2016-06-08 04:29:54 +00:00
|
|
|
|
fullskin:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['haotianta'],
|
|
|
|
|
ai:{
|
2016-06-08 07:45:01 +00:00
|
|
|
|
equipValue:5
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fuxiqin:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['kongxin'],
|
|
|
|
|
ai:{
|
2016-02-14 09:04:31 +00:00
|
|
|
|
equipValue:6
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shennongding:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['shennongding'],
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:6
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
kongdongyin:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['kongdongyin'],
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
if(player.hp==2) return 7;
|
2016-02-05 03:09:04 +00:00
|
|
|
|
if(player.hp==1) return 10;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-06-08 04:29:54 +00:00
|
|
|
|
kunlunjingc:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
2016-06-08 07:45:01 +00:00
|
|
|
|
skills:['kunlunjingc'],
|
2016-06-08 04:29:54 +00:00
|
|
|
|
ai:{
|
2016-06-08 07:45:01 +00:00
|
|
|
|
equipValue:6
|
2016-06-08 04:29:54 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
nvwashi:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
skills:['nvwashi'],
|
|
|
|
|
ai:{
|
2016-02-15 12:03:41 +00:00
|
|
|
|
equipValue:5
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skill:{
|
2016-06-08 07:45:01 +00:00
|
|
|
|
kunlunjingc:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
delay:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var cards=get.cards(3);
|
|
|
|
|
event.cards=cards;
|
|
|
|
|
player.chooseCardButton('选择一张牌',cards,true);
|
|
|
|
|
'step 1'
|
|
|
|
|
event.card=result.links[0];
|
|
|
|
|
player.chooseCard('h',true,'用一张手牌替换'+get.translation(event.card));
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.cards[event.cards.indexOf(event.card)]=result.cards[0];
|
|
|
|
|
player.lose(result.cards,ui.special);
|
|
|
|
|
var cardx=ui.create.card();
|
|
|
|
|
cardx.classList.add('infohidden');
|
|
|
|
|
cardx.classList.add('infoflip');
|
|
|
|
|
player.$throw(cardx,1000,'nobroadcast');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 3'
|
|
|
|
|
player.gain(event.card);
|
|
|
|
|
player.$draw();
|
|
|
|
|
for(var i=event.cards.length-1;i>=0;i--){
|
|
|
|
|
event.cards[i].fix();
|
|
|
|
|
ui.cardPile.insertBefore(event.cards[i],ui.cardPile.firstChild);
|
|
|
|
|
}
|
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
lianhua:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var hu=player.get('e','5');
|
|
|
|
|
if(hu&&hu.storage.shouna&&hu.storage.shouna.length>1){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
usable:1,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
event.hu=player.get('e','5');
|
|
|
|
|
player.chooseCardButton('弃置两张壶中的牌,然后从牌堆中获得一张类别不同的牌',2,event.hu.storage.shouna).ai=function(){
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var type=[];
|
|
|
|
|
player.$throw(result.links);
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'弃置了',result.links);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
for(var i=0;i<result.links.length;i++){
|
|
|
|
|
event.hu.storage.shouna.remove(result.links[i]);
|
|
|
|
|
ui.discardPile.appendChild(result.links[i]);
|
|
|
|
|
type.add(get.type(result.links[i],'trick'));
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<ui.cardPile.childNodes.length;i++){
|
|
|
|
|
if(!type.contains(get.type(ui.cardPile.childNodes[i],'trick'))){
|
|
|
|
|
player.gain(ui.cardPile.childNodes[i],'gain');
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.getStat('skill').lianhua--;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:11,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shouna:{
|
|
|
|
|
trigger:{global:'discardAfter'},
|
|
|
|
|
filter:function(event,player){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(player.skills.contains('shouna2')) return false;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(_status.currentPhase==event.player) return false;
|
|
|
|
|
if(event.player==player) return false;
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
if(get.position(event.cards[i])=='d'){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
2015-09-03 03:49:14 +00:00
|
|
|
|
forced:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
2015-09-03 03:49:14 +00:00
|
|
|
|
var cards=trigger.cards.slice(0);
|
|
|
|
|
for(var i=0;i<cards.length;i++){
|
|
|
|
|
if(get.position(cards[i])!='d'){
|
|
|
|
|
cards.splice(i,1);i--;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var hu=player.get('e','5');
|
2015-09-03 03:49:14 +00:00
|
|
|
|
if(cards.length&&hu){
|
|
|
|
|
if(!hu.storage.shouna){
|
|
|
|
|
hu.storage.shouna=[];
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
player.addTempSkill('shouna2','phaseAfter');
|
2015-09-03 03:49:14 +00:00
|
|
|
|
player.$gain2(cards);
|
|
|
|
|
for(var i=0;i<cards.length;i++){
|
|
|
|
|
hu.storage.shouna.push(cards[i]);
|
|
|
|
|
ui.special.appendChild(cards[i]);
|
|
|
|
|
}
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'将',cards,'收入炼妖壶');
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
shouna2:{},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
donghuangzhong:{
|
2016-06-08 07:45:01 +00:00
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseCardTarget({
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
ai1:function(card){
|
|
|
|
|
return 7-ai.get.useful(card);
|
|
|
|
|
},
|
|
|
|
|
ai2:function(target){
|
|
|
|
|
return -ai.get.attitude(player,target);
|
|
|
|
|
},
|
|
|
|
|
prompt:'是否发动【东皇钟】?'
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('donghuangzhong',result.targets);
|
|
|
|
|
player.discard(result.cards);
|
|
|
|
|
event.target=result.targets[0];
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
var target=event.target;
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
if(get.type(lib.inpile[i])=='delay'&&!target.hasJudge(lib.inpile[i])){
|
|
|
|
|
list.push(lib.inpile[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(list.length){
|
|
|
|
|
var card=game.createCard(list.randomGet());
|
|
|
|
|
target.addJudge(card);
|
|
|
|
|
target.$draw(card);
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
donghuangzhong_old:{
|
2015-04-29 03:25:17 +00:00
|
|
|
|
mode:['identity','guozhan'],
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.player==game.me&&
|
|
|
|
|
(game.dead.length||game.players.length+game.dead.length<8);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<game.dead.length;i++){
|
|
|
|
|
list.push(game.dead[i].name);
|
|
|
|
|
}
|
|
|
|
|
if(game.dead.length){
|
|
|
|
|
player.chooseButton(ui.create.dialog([list,'character']),function(button){
|
|
|
|
|
for(var i=0;i<game.dead.length&&game.dead[i].name!=button.link;i++);
|
|
|
|
|
return -ai.get.attitude(_status.event.player,game.dead[i]);
|
|
|
|
|
},true);
|
|
|
|
|
if(game.players.length+game.dead.length<8){
|
|
|
|
|
event.control=ui.create.control('新角色',ui.click.cancel)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
for(var i=0;i<game.dead.length&&game.dead[i].name!=result.buttons[0].link;i++);
|
|
|
|
|
game.removePlayer(game.dead[i]);
|
|
|
|
|
player.recover();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var group=player.group;
|
|
|
|
|
if(group=='unknown') group=lib.group.randomGet();
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i in lib.character){
|
|
|
|
|
if(lib.character[i][1]==group) list.push(i);
|
|
|
|
|
}
|
|
|
|
|
var player2=game.addPlayer();
|
|
|
|
|
if(get.config('double_character')){
|
|
|
|
|
var list2=list.randomGets(2);
|
|
|
|
|
player2.init(list2[0],list2[1]);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player2.init(list.randomGet())
|
|
|
|
|
}
|
|
|
|
|
player2.identity=player.identity;
|
|
|
|
|
if(player2.identity=='zhu') player2.identity='zhong';
|
|
|
|
|
player2.setIdentity();
|
|
|
|
|
player2.identityShown=true;
|
|
|
|
|
if(group!='unknown') player.loseHp(player2.maxHp);
|
|
|
|
|
}
|
|
|
|
|
if(event.control) event.control.close();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xuanyuanjian:{
|
|
|
|
|
trigger:{player:'changeHp'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.skills.contains('xuanyuan')&&player.hp<=2
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2016-06-08 07:45:01 +00:00
|
|
|
|
var e1=player.get('e','1');
|
|
|
|
|
if(e1&&e1.name=='xuanyuanjian'){
|
|
|
|
|
player.discard(e1);
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xuanyuanjian2:{
|
|
|
|
|
trigger:{source:'damageBefore'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event){
|
2016-06-08 07:45:01 +00:00
|
|
|
|
return event.notLink();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
if(!trigger.nature) trigger.nature='thunder';
|
2016-06-08 07:45:01 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xuanyuanjian3:{
|
|
|
|
|
trigger:{source:'damageAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.notLink();
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.loseHp();
|
|
|
|
|
player.draw();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
pangufu:{
|
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
priority:55,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.player.num('he')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.chooseToDiscard(true,'he');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shouhua:{
|
|
|
|
|
mode:['identity','infinity'],
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player==game.me;
|
|
|
|
|
},
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=game.zhu&&target!=game.me&&target.hp<target.maxHp;
|
|
|
|
|
},
|
|
|
|
|
filterCard:true,
|
|
|
|
|
check:function(card){
|
|
|
|
|
return ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
discard:false,
|
|
|
|
|
prepare:function(cards,player){
|
|
|
|
|
player.$throw(cards);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
target.$turn2();
|
|
|
|
|
target.style.left='calc(50% - 120px)';
|
|
|
|
|
target.style.top='calc(50% - 60px)';
|
|
|
|
|
game.delay(0,2500);
|
|
|
|
|
"step 1"
|
|
|
|
|
target.removeAttribute('style');
|
|
|
|
|
if(Math.random()<(ai.get.value(cards[0])+1)*(target.maxHp-target.hp)/(60*target.maxHp)){
|
|
|
|
|
event.position=target.dataset.position;
|
|
|
|
|
target.dataset.position=player.dataset.position;
|
|
|
|
|
target.delete();
|
|
|
|
|
event.success=true;
|
|
|
|
|
}
|
|
|
|
|
game.delay();
|
|
|
|
|
"step 2"
|
|
|
|
|
if(event.success){
|
|
|
|
|
player.popup('收化成功');
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'将',target,'收化');
|
2015-04-29 03:25:17 +00:00
|
|
|
|
target.dataset.position=event.position;
|
|
|
|
|
var card=player.get('e','5');
|
|
|
|
|
if(!card.storage.shouhua) card.storage.shouhua=[];
|
|
|
|
|
card.storage.shouhua.push(target);
|
|
|
|
|
game.removePlayer(target);
|
|
|
|
|
game.checkResult();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.popup('收化失败');
|
|
|
|
|
target.gain(cards);
|
|
|
|
|
target.$gain2(cards);
|
|
|
|
|
}
|
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
player:function(){
|
|
|
|
|
return Math.random()-0.4;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
haotianta:{
|
|
|
|
|
trigger:{global:'judgeBefore'},
|
2016-06-08 04:29:54 +00:00
|
|
|
|
direct:true,
|
2016-07-01 01:31:02 +00:00
|
|
|
|
usable:3,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-06-08 07:45:01 +00:00
|
|
|
|
event.cards=get.cards(3);
|
2016-06-08 04:29:54 +00:00
|
|
|
|
player.chooseCardButton(event.cards,'昊天塔:选择一张牌作为'+get.translation(trigger.player)+'的'+trigger.judgestr+'判定结果').ai=function(button){
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(ai.get.attitude(player,trigger.player)>0){
|
2016-06-08 07:45:01 +00:00
|
|
|
|
return 1+trigger.judge(button.link);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
if(ai.get.attitude(player,trigger.player)<0){
|
2016-06-08 07:45:01 +00:00
|
|
|
|
return 1-trigger.judge(button.link);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
2016-06-08 07:45:01 +00:00
|
|
|
|
return 0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
};
|
|
|
|
|
"step 1"
|
2016-06-08 07:45:01 +00:00
|
|
|
|
if(!result.bool){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
player.logSkill('haotianta',trigger.player);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
var card=result.links[0];
|
|
|
|
|
event.cards.remove(card);
|
2016-06-08 04:29:54 +00:00
|
|
|
|
var judgestr=get.translation(trigger.player)+'的'+trigger.judgestr+'判定';
|
|
|
|
|
event.videoId=lib.status.videoId++;
|
|
|
|
|
event.dialog=ui.create.dialog(judgestr);
|
|
|
|
|
event.dialog.classList.add('center');
|
|
|
|
|
event.dialog.videoId=event.videoId;
|
|
|
|
|
|
2016-06-08 07:45:01 +00:00
|
|
|
|
game.addVideo('judge1',player,[get.cardInfo(card),judgestr,event.videoId]);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
for(var i=0;i<event.cards.length;i++) ui.discardPile.appendChild(event.cards[i]);
|
2016-06-08 07:45:01 +00:00
|
|
|
|
// var node=card.copy('thrown','center',ui.arena).animate('start');
|
|
|
|
|
var node;
|
|
|
|
|
if(game.chess){
|
|
|
|
|
node=card.copy('thrown','center',ui.arena).animate('start');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
node=player.$throwordered(card.copy(),true);
|
|
|
|
|
}
|
|
|
|
|
node.classList.add('thrownhighlight');
|
|
|
|
|
ui.arena.classList.add('thrownhighlight');
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(card){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
trigger.result={
|
|
|
|
|
card:card,
|
|
|
|
|
judge:trigger.judge(card),
|
|
|
|
|
node:node,
|
2016-06-08 04:29:54 +00:00
|
|
|
|
number:get.number(card),
|
|
|
|
|
suit:get.suit(card),
|
|
|
|
|
color:get.color(card),
|
2015-04-29 03:25:17 +00:00
|
|
|
|
};
|
|
|
|
|
if(trigger.result.judge>0){
|
|
|
|
|
trigger.result.bool=true;
|
|
|
|
|
trigger.player.popup('洗具');
|
|
|
|
|
}
|
|
|
|
|
if(trigger.result.judge<0){
|
|
|
|
|
trigger.result.bool=false;
|
|
|
|
|
trigger.player.popup('杯具');
|
|
|
|
|
}
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(trigger.player,'的判定结果为',card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
trigger.direct=true;
|
|
|
|
|
trigger.position.appendChild(card);
|
|
|
|
|
game.delay(2);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
2016-06-08 07:45:01 +00:00
|
|
|
|
ui.arena.classList.remove('thrownhighlight');
|
2016-06-08 04:29:54 +00:00
|
|
|
|
event.dialog.close();
|
|
|
|
|
game.addVideo('judge2',null,event.videoId);
|
|
|
|
|
ui.clear();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
var card=trigger.result.card;
|
2016-06-08 04:29:54 +00:00
|
|
|
|
trigger.position.appendChild(card);
|
|
|
|
|
trigger.result.node.delete();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
tag:{
|
|
|
|
|
rejudge:10
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shennongding:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
selectCard:2,
|
|
|
|
|
check:function(card){
|
|
|
|
|
if(get.tag(card,'recover')>=1) return 0;
|
|
|
|
|
return 7-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hp<player.maxHp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.recover();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
return ai.get.recoverEffect(player);
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-12-21 05:44:18 +00:00
|
|
|
|
order:2.5
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
kongdongyin:{
|
|
|
|
|
trigger:{player:'dieBefore'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.maxHp>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
player.hp=1;
|
|
|
|
|
player.draw();
|
|
|
|
|
player.discard(player.get('e',{subtype:'equip5'}));
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
nvwashi:{
|
|
|
|
|
trigger:{global:'dying'},
|
|
|
|
|
priority:6,
|
|
|
|
|
filter:function(event,player){
|
2016-06-08 07:45:01 +00:00
|
|
|
|
return event.player.hp<=0&&player.hp>1;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
2016-06-08 07:45:01 +00:00
|
|
|
|
return ai.get.attitude(player,event.player)>=3;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-06-08 07:45:01 +00:00
|
|
|
|
trigger.player.recover();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
2016-06-08 07:45:01 +00:00
|
|
|
|
player.loseHp();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.2,
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
kongxin:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.num('h');
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h')?true:false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.chooseToCompare(target);
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.bool=true;
|
|
|
|
|
player.chooseTarget('选择一个目标视为'+get.translation(target)+'对其使用一张杀',function(card,player,target2){
|
|
|
|
|
return player!=target2&&target.canUse('sha',target2);
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return ai.get.effect(target,{name:'sha'},target,player);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.discardPlayerCard(player);
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(event.bool&&result.bool){
|
|
|
|
|
target.useCard({name:'sha'},result.targets);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:7,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2015-11-06 10:05:08 +00:00
|
|
|
|
if(player.num('h')<=1) return 0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(ai.get.attitude(player,target)>=0) return 0;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(player!=game.players[i]&&
|
|
|
|
|
target.canUse('sha',game.players[i])&&
|
|
|
|
|
ai.get.effect(game.players[i],{name:'sha'},target,player)>0){
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
kongxin2:{
|
|
|
|
|
trigger:{player:'dying'},
|
|
|
|
|
priority:10,
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player==game.me;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.removeSkill('kongxin2');
|
|
|
|
|
game.swapPlayer(player);
|
|
|
|
|
player.storage.kongxin.lockOut=false;
|
|
|
|
|
player.storage.kongxin.out();
|
|
|
|
|
if(player==game.me) game.swapPlayer(player.storage.kongxin);
|
|
|
|
|
if(lib.config.mode=='identity') player.storage.kongxin.setIdentity();
|
|
|
|
|
delete player.storage.kongxin;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
lianyao_hujia:{
|
|
|
|
|
mode:['identity','guozhan'],
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player!=game.me) return false;
|
|
|
|
|
var card=player.get('e','5');
|
|
|
|
|
if(card.storage.shouhua&&card.storage.shouhua.length) return true;
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var list=[];
|
|
|
|
|
var card=player.get('e','5');
|
|
|
|
|
for(var i=0;i<card.storage.shouhua.length;i++){
|
|
|
|
|
list.push(card.storage.shouhua[i].name);
|
|
|
|
|
}
|
|
|
|
|
var dialog=ui.create.dialog([list,'character']);
|
|
|
|
|
for(var i=0;i<dialog.buttons.length;i++){
|
|
|
|
|
dialog.buttons[i].link=card.storage.shouhua[i];
|
|
|
|
|
dialog.buttons[i].querySelector('.intro').remove();
|
|
|
|
|
}
|
|
|
|
|
player.chooseButton(dialog,true);
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
game.restorePlayer(result.links[0]);
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
game.swapPlayer(result.links[0]);
|
|
|
|
|
result.links[0].hp=1;
|
|
|
|
|
result.links[0].update();
|
|
|
|
|
result.links[0].storage.lianyao_hujia=player;
|
|
|
|
|
game.swapPlayer(result.links[0]);
|
|
|
|
|
result.links[0].addSkill('lianyao_hujia2');
|
|
|
|
|
result.links[0].phase();
|
|
|
|
|
result.links[0].setIdentity();
|
|
|
|
|
result.links[0].identityShown=true;
|
|
|
|
|
player.out(true);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
lianyao_hujia2:{
|
|
|
|
|
trigger:{player:['phaseAfter','changeHp']},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.hp=1;
|
|
|
|
|
player.update();
|
|
|
|
|
var me=player.storage.lianyao_hujia;
|
|
|
|
|
delete player.storage.lianyao_hujia;
|
|
|
|
|
me.lockOut=false;
|
|
|
|
|
me.out();
|
|
|
|
|
player.removeSkill('lianyao_hujia2');
|
|
|
|
|
if(player==game.me){
|
|
|
|
|
game.swapPlayer(me);
|
|
|
|
|
game.removePlayer(player);
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
translate:{
|
|
|
|
|
donghuangzhong:'东皇钟',
|
|
|
|
|
xuanyuanjian:'轩辕剑',
|
|
|
|
|
xuanyuanjian2:'轩辕剑',
|
|
|
|
|
pangufu:'盘古斧',
|
|
|
|
|
lianyaohu:'炼妖壶',
|
|
|
|
|
haotianta:'昊天塔',
|
|
|
|
|
fuxiqin:'伏羲琴',
|
|
|
|
|
shennongding:'神农鼎',
|
|
|
|
|
kongdongyin:'崆峒印',
|
2016-06-08 04:29:54 +00:00
|
|
|
|
kunlunjingc:'昆仑镜',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
nvwashi:'女娲石',
|
|
|
|
|
donghuangzhong_bg:'钟',
|
|
|
|
|
lianyaohu_bg:'壶',
|
|
|
|
|
haotianta_bg:'塔',
|
|
|
|
|
fuxiqin_bg:'琴',
|
|
|
|
|
shennongding_bg:'鼎',
|
|
|
|
|
kongdongyin_bg:'印',
|
2016-06-08 04:29:54 +00:00
|
|
|
|
kunlunjingc_bg:'镜',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
nvwashi_bg:'石',
|
|
|
|
|
kongxin:'控心',
|
|
|
|
|
lianhua:'炼化',
|
|
|
|
|
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
|
|
|
|
|
shouna:'收纳',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
shouna_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你可以选择其中的一张放入炼妖壶,每名角色的回合限一次',
|
2016-06-08 07:45:01 +00:00
|
|
|
|
donghuangzhong_info:'回合结束阶段,你可以弃置一张手牌,并选择一名角色将一张随机判定牌置入其判定区',
|
|
|
|
|
xuanyuanjian_info:'锁定技,每当你即将造成一次伤害,你令此伤害加一并变为雷属性,此伤害结算后,你流失一点体力并摸一张牌。任何时候,若你体力值不超过2,则立即失去轩辕剑',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌',
|
2016-07-01 01:31:02 +00:00
|
|
|
|
haotianta_info:'任意一名角色进行判定前,你可以观看牌堆顶的3张牌,并选择一张作为判定结果,此结果不可被更改,也不能触发技能。每回合最多发动3次',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
shennongding_info:'出牌阶段,你可以弃置两张手牌,然后回复一点体力。每阶段限一次',
|
|
|
|
|
kongdongyin_info:'令你抵挡一次死亡,将体力回复至1,并摸一张牌,发动后进入弃牌堆',
|
2016-06-08 07:45:01 +00:00
|
|
|
|
kunlunjingc_info:'出牌阶段限一次,你可以观看牌堆顶的三张牌,然后用一张手牌替换其中的一张',
|
|
|
|
|
nvwashi_info:'当一名角色濒死时,若你的体力值大于1,你可以失去一点体力并令其回复一点体力',
|
2015-11-26 08:15:28 +00:00
|
|
|
|
kongxin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
|
|
|
|
|
fuxiqin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
lianyaohu_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你将其放入炼妖壶(每回合只发动一次);出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
|
2015-11-26 08:15:28 +00:00
|
|
|
|
// fuxiqin_info:'出牌阶段,你可以选择一名角色并流失X点体力,然后获得其控制权直到其首次进入濒死状态,X为该角色当前的体力值',
|
|
|
|
|
// fuxiqin_info:'',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
list:[
|
2016-06-08 04:29:54 +00:00
|
|
|
|
['diamond',13,'donghuangzhong'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
['diamond',13,'fuxiqin'],
|
2016-06-08 04:29:54 +00:00
|
|
|
|
['spade',13,'kunlunjingc'],
|
|
|
|
|
['spade',13,'xuanyuanjian'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
['spade',13,'pangufu'],
|
|
|
|
|
['club',13,'lianyaohu'],
|
2016-06-08 04:29:54 +00:00
|
|
|
|
['diamond',13,'haotianta'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
['club',13,'shennongding'],
|
|
|
|
|
['heart',13,'nvwashi'],
|
|
|
|
|
['heart',13,'kongdongyin'],
|
|
|
|
|
],
|
|
|
|
|
}
|