v1.9.96.9
This commit is contained in:
parent
a35da27375
commit
2f89551ce9
92
game/game.js
92
game/game.js
|
@ -9472,6 +9472,8 @@
|
||||||
'default':"默认",
|
'default':"默认",
|
||||||
special:'特殊',
|
special:'特殊',
|
||||||
zhenfa:'阵法',
|
zhenfa:'阵法',
|
||||||
|
aozhan:"鏖战",
|
||||||
|
"aozhan_info":"",
|
||||||
mode_derivation_card_config:'衍生',
|
mode_derivation_card_config:'衍生',
|
||||||
mode_banned_card_config:'禁卡',
|
mode_banned_card_config:'禁卡',
|
||||||
mode_favourite_character_config:'收藏',
|
mode_favourite_character_config:'收藏',
|
||||||
|
@ -10048,7 +10050,7 @@
|
||||||
player.ai.tempIgnore=[];
|
player.ai.tempIgnore=[];
|
||||||
player.stat.push({card:{},skill:{}});
|
player.stat.push({card:{},skill:{}});
|
||||||
game.countPlayer(function(current){
|
game.countPlayer(function(current){
|
||||||
current.actionHistory.push({useCard:[],respond:[],skipped:[],lose:[],gain:[]});
|
current.actionHistory.push({useCard:[],respond:[],skipped:[],lose:[],gain:[],sourceDamage:[],damage:[]});
|
||||||
});
|
});
|
||||||
if(ui.land&&ui.land.player==player){
|
if(ui.land&&ui.land.player==player){
|
||||||
game.addVideo('destroyLand');
|
game.addVideo('destroyLand');
|
||||||
|
@ -10290,6 +10292,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_status.imchoosing=true;
|
_status.imchoosing=true;
|
||||||
|
event.switchToAuto=function(){
|
||||||
|
_status.event.bool=false;
|
||||||
|
game.resume();
|
||||||
|
}
|
||||||
game.pause();
|
game.pause();
|
||||||
"step 3"
|
"step 3"
|
||||||
_status.imchoosing=false;
|
_status.imchoosing=false;
|
||||||
|
@ -10306,8 +10312,8 @@
|
||||||
event.goto(2);
|
event.goto(2);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
event.dialog.close();
|
if(event.dialog) event.dialog.close();
|
||||||
ui.confirm.close();
|
if(ui.confirm) ui.confirm.close();
|
||||||
event.finish();
|
event.finish();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -14442,6 +14448,7 @@
|
||||||
player.stat[player.stat.length-1].damaged+=num;
|
player.stat[player.stat.length-1].damaged+=num;
|
||||||
}
|
}
|
||||||
if(source){
|
if(source){
|
||||||
|
source.getHistory('sourceDamage').push(event);
|
||||||
if(source.stat[source.stat.length-1].damage==undefined){
|
if(source.stat[source.stat.length-1].damage==undefined){
|
||||||
source.stat[source.stat.length-1].damage=num;
|
source.stat[source.stat.length-1].damage=num;
|
||||||
}
|
}
|
||||||
|
@ -14449,6 +14456,7 @@
|
||||||
source.stat[source.stat.length-1].damage+=num;
|
source.stat[source.stat.length-1].damage+=num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
player.getHistory('damage').push(event);
|
||||||
if(event.notrigger){
|
if(event.notrigger){
|
||||||
player.changeHp(-num,false)._triggered=null;
|
player.changeHp(-num,false)._triggered=null;
|
||||||
}
|
}
|
||||||
|
@ -23763,6 +23771,75 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
skill:{
|
skill:{
|
||||||
|
aozhan:{
|
||||||
|
charlotte:true,
|
||||||
|
mod:{
|
||||||
|
targetEnabled:function(card){
|
||||||
|
if(card.name=='tao'&&get.itemtype(card)=='card') return false;
|
||||||
|
},
|
||||||
|
cardSavable:function(card){
|
||||||
|
if(card.name=='tao'&&get.itemtype(card)=='card') return false;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
group:["aozhan_sha","aozhan_shan"],
|
||||||
|
subSkill:{
|
||||||
|
sha:{
|
||||||
|
enable:["chooseToUse","chooseToRespond"],
|
||||||
|
filterCard:{
|
||||||
|
name:"tao",
|
||||||
|
},
|
||||||
|
viewAs:{
|
||||||
|
name:"sha",
|
||||||
|
},
|
||||||
|
viewAsFilter:function (player){
|
||||||
|
if(!player.countCards('h','tao')) return false;
|
||||||
|
},
|
||||||
|
prompt:"将一张桃当杀使用或打出",
|
||||||
|
check:function (){return 1},
|
||||||
|
ai:{
|
||||||
|
effect:{
|
||||||
|
target:function (card,player,target,current){
|
||||||
|
if(get.tag(card,'respondSha')&¤t<0) return 0.6
|
||||||
|
},
|
||||||
|
},
|
||||||
|
respondSha:true,
|
||||||
|
skillTagFilter:function (player){
|
||||||
|
if(!player.countCards('h','tao')) return false;
|
||||||
|
},
|
||||||
|
order:function (){
|
||||||
|
return get.order({name:'sha'})-0.1;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sub:true,
|
||||||
|
},
|
||||||
|
shan:{
|
||||||
|
enable:["chooseToRespond","chooseToUse"],
|
||||||
|
filterCard:{
|
||||||
|
name:"tao",
|
||||||
|
},
|
||||||
|
viewAs:{
|
||||||
|
name:"shan",
|
||||||
|
},
|
||||||
|
prompt:"将一张桃当闪打出",
|
||||||
|
check:function (){return 1},
|
||||||
|
viewAsFilter:function (player){
|
||||||
|
if(!player.countCards('h','tao')) return false;
|
||||||
|
},
|
||||||
|
ai:{
|
||||||
|
respondShan:true,
|
||||||
|
skillTagFilter:function (player){
|
||||||
|
if(!player.countCards('h','tao')) return false;
|
||||||
|
},
|
||||||
|
effect:{
|
||||||
|
target:function (card,player,target,current){
|
||||||
|
if(get.tag(card,'respondShan')&¤t<0) return 0.6
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sub:true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
global:[],
|
global:[],
|
||||||
globalmap:{},
|
globalmap:{},
|
||||||
storage:{},
|
storage:{},
|
||||||
|
@ -24181,7 +24258,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
event.acted.push(player);
|
event.acted.push(player);
|
||||||
var str=get.translation(trigger.player.name)+'濒死,是否帮助?';
|
var str=get.translation(trigger.player)+'濒死,是否帮助?';
|
||||||
var str2='当前体力:'+trigger.player.hp;
|
var str2='当前体力:'+trigger.player.hp;
|
||||||
if(lib.config.tao_enemy&&event.dying.side!=player.side&&lib.config.mode!='identity'&&lib.config.mode!='guozhan'&&!event.dying.hasSkillTag('revertsave')){
|
if(lib.config.tao_enemy&&event.dying.side!=player.side&&lib.config.mode!='identity'&&lib.config.mode!='guozhan'&&!event.dying.hasSkillTag('revertsave')){
|
||||||
event._result={bool:false}
|
event._result={bool:false}
|
||||||
|
@ -26069,7 +26146,7 @@
|
||||||
if(lib.config.background_music=='music_off'){
|
if(lib.config.background_music=='music_off'){
|
||||||
ui.backgroundMusic.src='';
|
ui.backgroundMusic.src='';
|
||||||
}
|
}
|
||||||
else if(get.mode()=='guozhan'&&_status._aozhan==true&&lib.config.mode_config.guozhan.aozhan_bgm!='disabled'){
|
else if(_status._aozhan==true&&lib.config.mode_config.guozhan.aozhan_bgm!='disabled'){
|
||||||
var aozhan=lib.config.mode_config.guozhan.aozhan_bgm;
|
var aozhan=lib.config.mode_config.guozhan.aozhan_bgm;
|
||||||
ui.backgroundMusic.src=lib.assetURL+'audio/background/aozhan_'+aozhan+'.mp3';
|
ui.backgroundMusic.src=lib.assetURL+'audio/background/aozhan_'+aozhan+'.mp3';
|
||||||
}
|
}
|
||||||
|
@ -41675,7 +41752,7 @@
|
||||||
node.damagepopups=[];
|
node.damagepopups=[];
|
||||||
node.judging=[];
|
node.judging=[];
|
||||||
node.stat=[{card:{},skill:{}}];
|
node.stat=[{card:{},skill:{}}];
|
||||||
node.actionHistory=[{useCard:[],respond:[],skipped:[],lose:[],gain:[]}];
|
node.actionHistory=[{useCard:[],respond:[],skipped:[],lose:[],gain:[],sourceDamage:[],damage:[]}];
|
||||||
node.tempSkills={};
|
node.tempSkills={};
|
||||||
node.storage={};
|
node.storage={};
|
||||||
node.marks={};
|
node.marks={};
|
||||||
|
@ -47681,7 +47758,8 @@
|
||||||
// replace(/主公技/g,'<span class="firetext">主公技</span>');
|
// replace(/主公技/g,'<span class="firetext">主公技</span>');
|
||||||
},
|
},
|
||||||
translation:function(str,arg){
|
translation:function(str,arg){
|
||||||
if(str&&typeof str=='object'&&str.name){
|
if(str&&typeof str=='object'&&(str.name||str._tempTranslate)){
|
||||||
|
if(str._tempTranslate) return str._tempTranslate;
|
||||||
var str2;
|
var str2;
|
||||||
if(arg=='viewAs'&&str.viewAs){
|
if(arg=='viewAs'&&str.viewAs){
|
||||||
str2=get.translation(str.viewAs);
|
str2=get.translation(str.viewAs);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
window.noname_update={
|
window.noname_update={
|
||||||
version:'1.9.96.8.1',
|
version:'1.9.96.9',
|
||||||
update:'1.9.96.8',
|
update:'1.9.96.8.1',
|
||||||
changeLog:[
|
changeLog:[
|
||||||
'BUG修复',
|
'BUG修复',
|
||||||
],
|
],
|
||||||
|
@ -12,16 +12,16 @@ window.noname_update={
|
||||||
//'card/swd.js',
|
//'card/swd.js',
|
||||||
//'card/guozhan.js',
|
//'card/guozhan.js',
|
||||||
//'card/gwent.js',
|
//'card/gwent.js',
|
||||||
//'character/diy.js',
|
'character/diy.js',
|
||||||
//'character/extra.js',
|
'character/extra.js',
|
||||||
//'character/hearth.js',
|
//'character/hearth.js',
|
||||||
//'character/gujian.js',
|
//'character/gujian.js',
|
||||||
//'character/gwent.js',
|
//'character/gwent.js',
|
||||||
//'character/mobile.js',
|
//'character/mobile.js',
|
||||||
//'character/mtg.js',
|
//'character/mtg.js',
|
||||||
//'character/old.js',
|
//'character/old.js',
|
||||||
'character/refresh.js',
|
//'character/refresh.js',
|
||||||
'character/shenhua.js',
|
//'character/shenhua.js',
|
||||||
'character/sp.js',
|
'character/sp.js',
|
||||||
//'character/tw.js',
|
//'character/tw.js',
|
||||||
//'character/standard.js',
|
//'character/standard.js',
|
||||||
|
@ -32,12 +32,12 @@ window.noname_update={
|
||||||
//'character/yxs.js',
|
//'character/yxs.js',
|
||||||
//'extension/boss/extension.js',
|
//'extension/boss/extension.js',
|
||||||
//'layout/default/layout.css',
|
//'layout/default/layout.css',
|
||||||
//'mode/identity.js',
|
'mode/identity.js',
|
||||||
'mode/doudizhu.js',
|
//'mode/doudizhu.js',
|
||||||
'mode/guozhan.js',
|
'mode/guozhan.js',
|
||||||
//'mode/single.js',
|
//'mode/single.js',
|
||||||
//'mode/stone.js',
|
//'mode/stone.js',
|
||||||
//'mode/versus.js',
|
'mode/versus.js',
|
||||||
//'mode/boss.js',
|
//'mode/boss.js',
|
||||||
'game/game.js',
|
'game/game.js',
|
||||||
//'game/config.js',
|
//'game/config.js',
|
||||||
|
|
Loading…
Reference in New Issue