Update huanlekapai.js

This commit is contained in:
Sukincen 2019-12-01 11:05:15 +08:00 committed by GitHub
parent 6304196036
commit b1104d3d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -413,9 +413,12 @@ audio:true,
trigger:{ trigger:{
player:"phaseBegin", player:"phaseBegin",
}, },
filter:function (event,player){
return player.isAlive();
},
priority:2018, priority:2018,
direct:true, direct:true,
/* createDialog:function (player,target,onlylist){ createDialog:function (player,target,onlylist){
var names=[]; var names=[];
var list=[]; var list=[];
if(target.name&&!target.isUnseen(0)) names.add(target.name); if(target.name&&!target.isUnseen(0)) names.add(target.name);
@ -460,9 +463,9 @@ audio:true,
} }
dialog.add(ui.create.div('.placeholder')); dialog.add(ui.create.div('.placeholder'));
return dialog; return dialog;
},*/ },
content:function (){ content:function (){
/* 'step 0' 'step 0'
player.chooseTarget(get.prompt2('xuelunyang'),function(card,player,target){ player.chooseTarget(get.prompt2('xuelunyang'),function(card,player,target){
var names=[]; var names=[];
if(target.name&&!target.isUnseen(0)) names.add(target.name); if(target.name&&!target.isUnseen(0)) names.add(target.name);
@ -518,10 +521,10 @@ audio:true,
player.addTempSkill(result); player.addTempSkill(result);
player.popup(result); player.popup(result);
game.log(player,'获得了','【'+get.translation(result)+'】'); game.log(player,'获得了','【'+get.translation(result)+'】');
*/
'step 0' /* 'step 0'
player.chooseTarget(get.prompt2('xuelunyang'),function(card,player,target){ player.chooseTarget(get.prompt2('xuelunyang'),function(card,player,target){
return player!=target; return target!=player;
}).set('ai',function(target){ }).set('ai',function(target){
if(get.attitude(_status.event.player,target)>0) return Math.random(); if(get.attitude(_status.event.player,target)>0) return Math.random();
return get.attitude(_status.event.player,target)<=0; return get.attitude(_status.event.player,target)<=0;
@ -545,7 +548,7 @@ audio:true,
player.popup(skill); player.popup(skill);
//player.markSkillCharacter('xuelunyang',event.target.name,get.skillTranslation(skill,player),get.skillInfoTranslation(skill)); //player.markSkillCharacter('xuelunyang',event.target.name,get.skillTranslation(skill,player),get.skillInfoTranslation(skill));
game.log(player,'获得了','【'+get.translation(skill)+'】'); game.log(player,'获得了','【'+get.translation(skill)+'】');
} } */
}, },
}, },