fix
This commit is contained in:
parent
cdd05d471b
commit
df72f2f6a9
|
@ -247,7 +247,7 @@ character.yijiang={
|
||||||
popup:false,
|
popup:false,
|
||||||
content:function(){
|
content:function(){
|
||||||
delete player.storage.jiaozhao;
|
delete player.storage.jiaozhao;
|
||||||
delete player.storage.jiaozhao2;
|
delete player.storage.jiaozhao_card;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
danxin:{
|
danxin:{
|
||||||
|
@ -345,7 +345,7 @@ character.yijiang={
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
target.chooseToUse({name:'sha'},player,-1,'止戈:使用一张杀,或将其装备区里的一张牌交给'+get.translation(player));
|
target.chooseToUse({name:'sha'},'止戈:使用一张杀,或将其装备区里的一张牌交给'+get.translation(player));
|
||||||
'step 1'
|
'step 1'
|
||||||
if(!result.bool&&target.num('e')){
|
if(!result.bool&&target.num('e')){
|
||||||
target.chooseCard('e',true,'将其装备区里的一张牌交给'+get.translation(player));
|
target.chooseCard('e',true,'将其装备区里的一张牌交给'+get.translation(player));
|
||||||
|
@ -360,6 +360,7 @@ character.yijiang={
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
|
expose:0.2,
|
||||||
order:5,
|
order:5,
|
||||||
result:{
|
result:{
|
||||||
target:-1,
|
target:-1,
|
||||||
|
@ -730,26 +731,34 @@ character.yijiang={
|
||||||
if(info&&info.distance&&info.distance.attackFrom){
|
if(info&&info.distance&&info.distance.attackFrom){
|
||||||
num-=info.distance.attackFrom;
|
num-=info.distance.attackFrom;
|
||||||
}
|
}
|
||||||
trigger.player.chooseToDiscard(num,'弃置'+get.cnNumber(num)+'张牌,或令杀的伤害+1').set('ai',function(card){
|
if(trigger.player.num('h')<num){
|
||||||
var player=_status.event.player;
|
event.directfalse=true;
|
||||||
if(player.hp==1){
|
}
|
||||||
if(get.type(card)=='basic'){
|
else{
|
||||||
return 8-ai.get.value(card);
|
trigger.player.chooseToDiscard(num,'弃置'+get.cnNumber(num)+'张手牌,或令杀的伤害+1').set('ai',function(card){
|
||||||
|
var player=_status.event.player;
|
||||||
|
if(player.hp==1){
|
||||||
|
if(get.type(card)=='basic'){
|
||||||
|
return 8-ai.get.value(card);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return 10-ai.get.value(card);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
return 10-ai.get.value(card);
|
if(num>2){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return 8-ai.get.value(card);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
else{
|
}
|
||||||
if(num>2){
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return 8-ai.get.value(card);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
'step 1'
|
'step 1'
|
||||||
if(result.bool){
|
if(!event.directfalse&&result.bool){
|
||||||
player.discard(player.get('e','1'));
|
var e1=player.get('e','1');
|
||||||
|
if(e1){
|
||||||
|
player.discard(e1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
trigger.num++;
|
trigger.num++;
|
||||||
|
|
14
game/game.js
14
game/game.js
|
@ -18684,8 +18684,16 @@
|
||||||
game.saveConfig('extension_'+extname+'_'+i,game.importedPack.config[i].init);
|
game.saveConfig('extension_'+extname+'_'+i,game.importedPack.config[i].init);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(game.importedPack.image&&lib.db){
|
var imglist=[];
|
||||||
for(var i=0;i<game.importedPack.image.length;i++){
|
for(var i in zip.files){
|
||||||
|
if(i[0]!='.'&&i[0]!='_'){
|
||||||
|
if(i.indexOf('.jpg')!=-1||i.indexOf('.png')!=-1){
|
||||||
|
imglist.push(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(imglist.length&&lib.db){
|
||||||
|
for(var i=0;i<imglist.length;i++){
|
||||||
var buttons=page.querySelectorAll('.button.character');
|
var buttons=page.querySelectorAll('.button.character');
|
||||||
for(var j=0;j<buttons.length;j++){
|
for(var j=0;j<buttons.length;j++){
|
||||||
if(buttons[j].link==i){
|
if(buttons[j].link==i){
|
||||||
|
@ -18693,7 +18701,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var imgname=game.importedPack.image[i];
|
var imgname=imglist[i];
|
||||||
var str=zip.file(imgname).asArrayBuffer();
|
var str=zip.file(imgname).asArrayBuffer();
|
||||||
if(str){
|
if(str){
|
||||||
var blob=new Blob([str]);
|
var blob=new Blob([str]);
|
||||||
|
|
Loading…
Reference in New Issue