This commit is contained in:
parent
41b27ae984
commit
4eac450532
|
@ -880,13 +880,21 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
event.finish();
|
event.finish();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var list=['sha','shan','tao','jiu'];
|
var list=['sha','sha','sha','shan','tao','jiu'];
|
||||||
if(player.storage.jiaozhao1){
|
if(player.storage.jiaozhao1){
|
||||||
list=list.concat(['taoyuan','wugu','juedou','huogong','jiedao','tiesuo','guohe','shunshou','wuzhong','wanjian','nanman']);
|
list=list.concat(['taoyuan','wugu','juedou','huogong','jiedao','tiesuo','guohe','shunshou','wuzhong','wanjian','nanman']);
|
||||||
}
|
}
|
||||||
for(var i=0;i<list.length;i++){
|
for(var i=0;i<list.length;i++){
|
||||||
if(i<=4){
|
if(i<=6){
|
||||||
list[i]=['基本','',list[i]];
|
if(i==1){
|
||||||
|
list[i]=['基本','',list[i],'fire'];
|
||||||
|
}
|
||||||
|
else if(i==2){
|
||||||
|
list[i]=['基本','',list[i],'thunder'];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
list[i]=['基本','',list[i]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
list[i]=['锦囊','',list[i]];
|
list[i]=['锦囊','',list[i]];
|
||||||
|
@ -956,13 +964,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return button.link[2]==_status.event.choice?1:0;
|
return button.link[2]==_status.event.choice?1:0;
|
||||||
}).set('choice',choice);
|
}).set('choice',choice);
|
||||||
'step 3'
|
'step 3'
|
||||||
var chosen=result.links[0][2];
|
var chosen=result.links[0][2];
|
||||||
event.target.showCards(game.createCard({name:chosen,suit:cards[0].suit,number:cards[0].number}),get.translation(event.target)+'声明了'+get.translation(chosen));
|
var nature=result.links[0][3];
|
||||||
|
var fakecard={name:chosen,suit:cards[0].suit,number:cards[0].number,nature:nature};
|
||||||
|
event.target.showCards(game.createCard(fakecard),get.translation(event.target)+'声明了'+get.translation(chosen));
|
||||||
player.storage.jiaozhao=cards[0];
|
player.storage.jiaozhao=cards[0];
|
||||||
player.storage.jiaozhao_card=chosen;
|
player.storage.jiaozhao_card=fakecard;
|
||||||
game.broadcastAll(function(name){
|
game.broadcastAll(function(name){
|
||||||
lib.skill.jiaozhao2.viewAs={name:name};
|
lib.skill.jiaozhao2.viewAs=fakecard;
|
||||||
},result.links[0][2]);
|
},fakecard);
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
order:9,
|
order:9,
|
||||||
|
@ -987,7 +997,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
audio:'jiaozhao',
|
audio:'jiaozhao',
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!player.storage.jiaozhao) return false;
|
if(!player.storage.jiaozhao) return false;
|
||||||
var name=player.storage.jiaozhao_card;
|
var name=player.storage.jiaozhao_card.name;
|
||||||
if(name=='tao'||name=='shan'||name=='wuzhong'||name=='jiu') return false;
|
if(name=='tao'||name=='shan'||name=='wuzhong'||name=='jiu') return false;
|
||||||
return player.getCards('h').contains(player.storage.jiaozhao);
|
return player.getCards('h').contains(player.storage.jiaozhao);
|
||||||
},
|
},
|
||||||
|
@ -998,7 +1008,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
popname:true,
|
popname:true,
|
||||||
filterTarget:function(card,player,target){
|
filterTarget:function(card,player,target){
|
||||||
if(player==target) return false;
|
if(player==target) return false;
|
||||||
return lib.filter.filterTarget({name:player.storage.jiaozhao_card},player,target);
|
return lib.filter.filterTarget(player.storage.jiaozhao_card,player,target);
|
||||||
},
|
},
|
||||||
check:function(card){
|
check:function(card){
|
||||||
return 8-get.value(card);
|
return 8-get.value(card);
|
||||||
|
|
20
game/game.js
20
game/game.js
|
@ -1797,6 +1797,16 @@
|
||||||
},
|
},
|
||||||
unfrequent:true,
|
unfrequent:true,
|
||||||
},
|
},
|
||||||
|
autoborder_start:{
|
||||||
|
name:'基础边框颜色',
|
||||||
|
init:'bronze',
|
||||||
|
item:{
|
||||||
|
bronze:'铜',
|
||||||
|
silver:'银',
|
||||||
|
gold:'金'
|
||||||
|
},
|
||||||
|
unfrequent:true
|
||||||
|
},
|
||||||
player_border:{
|
player_border:{
|
||||||
name:'边框宽度',
|
name:'边框宽度',
|
||||||
init:'normal',
|
init:'normal',
|
||||||
|
@ -11849,6 +11859,14 @@
|
||||||
for(var j=0;j<source.stat.length;j++){
|
for(var j=0;j<source.stat.length;j++){
|
||||||
if(source.stat[j].damage!=undefined) dnum+=source.stat[j].damage;
|
if(source.stat[j].damage!=undefined) dnum+=source.stat[j].damage;
|
||||||
}
|
}
|
||||||
|
if(dnum>=2){
|
||||||
|
if(lib.config.autoborder_start=='silver'){
|
||||||
|
dnum+=4;
|
||||||
|
}
|
||||||
|
else if(lib.config.autoborder_start=='gold'){
|
||||||
|
dnum+=8;
|
||||||
|
}
|
||||||
|
}
|
||||||
if(lib.config.autoborder_count=='damage'){
|
if(lib.config.autoborder_count=='damage'){
|
||||||
source.node.framebg.dataset.decoration='';
|
source.node.framebg.dataset.decoration='';
|
||||||
if(dnum>=10){
|
if(dnum>=10){
|
||||||
|
@ -12152,7 +12170,7 @@
|
||||||
switch(source.node.framebg.dataset.auto){
|
switch(source.node.framebg.dataset.auto){
|
||||||
case 'gold':case 'silver':source.node.framebg.dataset.auto='gold';break;
|
case 'gold':case 'silver':source.node.framebg.dataset.auto='gold';break;
|
||||||
case 'bronze':source.node.framebg.dataset.auto='silver';break;
|
case 'bronze':source.node.framebg.dataset.auto='silver';break;
|
||||||
default:source.node.framebg.dataset.auto='bronze';
|
default:source.node.framebg.dataset.auto=lib.config.autoborder_start||'bronze';
|
||||||
}
|
}
|
||||||
if(lib.config.autoborder_count=='kill'){
|
if(lib.config.autoborder_count=='kill'){
|
||||||
source.node.framebg.dataset.decoration=source.node.framebg.dataset.auto;
|
source.node.framebg.dataset.decoration=source.node.framebg.dataset.auto;
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 62 KiB |
Loading…
Reference in New Issue