1.7.11
This commit is contained in:
parent
7d0b30f077
commit
546308e9c5
|
@ -57,10 +57,18 @@
|
|||
}
|
||||
window.resetGameTimeout=setTimeout(function(){
|
||||
if(window.inSplash) return;
|
||||
if(confirm('游戏似乎未正常载入,是否重置游戏?')){
|
||||
localStorage.clear();
|
||||
if(indexedDB) indexedDB.deleteDatabase('noname_0.9_data');
|
||||
window.location.reload();
|
||||
if(window.resetExtension){
|
||||
if(confirm('游戏似乎未正常载入,是否禁用扩展并重新打开?')){
|
||||
window.resetExtension();
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(confirm('游戏似乎未正常载入,是否重置游戏?')){
|
||||
localStorage.clear();
|
||||
if(indexedDB) indexedDB.deleteDatabase('noname_0.9_data');
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
},5000);
|
||||
}())
|
||||
|
|
33
game/game.js
33
game/game.js
|
@ -16,10 +16,9 @@
|
|||
dieClose:[]
|
||||
};
|
||||
var lib={
|
||||
version:'1.7.10',
|
||||
version:'1.7.11',
|
||||
changeLog:[
|
||||
'新武将',
|
||||
'明忠锦囊',
|
||||
'扩展'
|
||||
],
|
||||
configprefix:'noname_0.9_',
|
||||
updates:[],
|
||||
|
@ -2988,21 +2987,34 @@
|
|||
}
|
||||
}
|
||||
delete lib.help2;
|
||||
|
||||
if(lib.config.extensions.length){
|
||||
window.resetExtension=function(){
|
||||
for(var i=0;i<lib.config.extensions.length;i++){
|
||||
game.saveConfig('extension_'+lib.config.extensions[i],false);
|
||||
}
|
||||
}
|
||||
}
|
||||
for(var i=0;i<lib.config.extensions.length;i++){
|
||||
try{
|
||||
eval(localStorage.getItem(lib.configprefix+'extension_'+lib.config.extensions[i]));
|
||||
}
|
||||
catch(e){}
|
||||
catch(e){
|
||||
console.log(e);
|
||||
}
|
||||
if(game.importedPack&&lib.config['extension_'+game.importedPack.name]){
|
||||
var cfg={};
|
||||
for(var i in lib.config){
|
||||
if(i.indexOf('extension_'+game.importedPack.name)==0&&
|
||||
i!='extension_'+game.importedPack.name){
|
||||
cfg[i.slice(11+game.importedPack.name.length)]=lib.config[i];
|
||||
for(var j in lib.config){
|
||||
if(j.indexOf('extension_'+game.importedPack.name)==0&&
|
||||
j!='extension_'+game.importedPack.name){
|
||||
cfg[j.slice(11+game.importedPack.name.length)]=lib.config[j];
|
||||
}
|
||||
}
|
||||
game.importedPack.content(cfg);
|
||||
try{
|
||||
game.importedPack.content(cfg);
|
||||
}
|
||||
catch(e){
|
||||
console.log(e);
|
||||
}
|
||||
delete game.importedPack;
|
||||
}
|
||||
}
|
||||
|
@ -17110,6 +17122,7 @@
|
|||
|
||||
clearTimeout(window.resetGameTimeout);
|
||||
delete window.resetGameTimeout;
|
||||
delete window.resetExtension;
|
||||
},
|
||||
system:function(str,func,right){
|
||||
var node=ui.create.div(right?ui.system2:ui.system1);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "noname",
|
||||
"xwalk_version": "1.7.10",
|
||||
"xwalk_version": "1.7.11",
|
||||
"start_url": "index.html",
|
||||
"icons": [
|
||||
{
|
||||
|
|
|
@ -2139,7 +2139,7 @@ mode.chess={
|
|||
ui.create.me();
|
||||
ui.create.fakeme();
|
||||
|
||||
if(!event.video&&_status.mode=='combat'&&get.config('zhu')){
|
||||
if(!event.video&&_status.mode=='combat'&&get.config('zhu')&&!_status.vsboss&&game.players.length>2){
|
||||
game.friendZhu=event.friendZhu;
|
||||
game.friendZhu.hp++;
|
||||
game.friendZhu.maxHp++;
|
||||
|
@ -2157,7 +2157,7 @@ mode.chess={
|
|||
}
|
||||
}
|
||||
|
||||
if(get.config('main_zhu')){
|
||||
if(get.config('main_zhu')&&event.friendViceZhu){
|
||||
game.friendViceZhu=event.friendViceZhu;
|
||||
game.friendViceZhu.node.identity.firstChild.innerHTML='仕';
|
||||
for(var i=0;i<game.players.length;i++){
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "无名杀",
|
||||
"version": "1.7.10",
|
||||
"version": "1.7.11",
|
||||
"main": "main.js"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue