This commit is contained in:
Spmario233 2019-07-04 22:32:54 +08:00 committed by GitHub
parent 33b53def7e
commit 836dbf618f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 137 additions and 38 deletions

View File

@ -1,5 +1,7 @@
window.noname_asset_list=[ window.noname_asset_list=[
'1.9.88.2', '1.9.88.2',
'audio/background/aozhan_chaoming.mp3',
'audio/background/aozhan_online.mp3',
'audio/background/music_danji.mp3', 'audio/background/music_danji.mp3',
'audio/background/music_default.mp3', 'audio/background/music_default.mp3',
'audio/background/music_diaochan.mp3', 'audio/background/music_diaochan.mp3',
@ -1961,6 +1963,41 @@ window.noname_asset_list=[
'image/character/gw_yisilinni.jpg', 'image/character/gw_yisilinni.jpg',
'image/character/gw_zhangyujushou.jpg', 'image/character/gw_zhangyujushou.jpg',
'image/character/gw_zhuoertan.jpg', 'image/character/gw_zhuoertan.jpg',
'image/character/gz_caohong.jpg',
'image/character/gz_caopi.jpg',
'image/character/gz_dengai.jpg',
'image/character/gz_diaochan.jpg',
'image/character/gz_dingfeng.jpg',
'image/character/gz_fazheng.jpg',
'image/character/gz_ganfuren.jpg',
'image/character/gz_guojia.jpg',
'image/character/gz_hetaihou.jpg',
'image/character/gz_huangyueying.jpg',
'image/character/gz_jiangwei.jpg',
'image/character/gz_jiaxu.jpg',
'image/character/gz_lingtong.jpg',
'image/character/gz_lukang.jpg',
'image/character/gz_lvbu.jpg',
'image/character/gz_madai.jpg',
'image/character/gz_masu.jpg',
'image/character/gz_panfeng.jpg',
'image/character/gz_re_yuanshao.jpg',
'image/character/gz_sp_zhugeliang.jpg',
'image/character/gz_sunce.jpg',
'image/character/gz_wangping.jpg',
'image/character/gz_wuguotai.jpg',
'image/character/gz_xiaoqiao.jpg',
'image/character/gz_xunyou.jpg',
'image/character/gz_xusheng.jpg',
'image/character/gz_yuanshu.jpg',
'image/character/gz_yuejin.jpg',
'image/character/gz_yuji.jpg',
'image/character/gz_yujin.jpg',
'image/character/gz_zhangxiu.jpg',
'image/character/gz_zhenji.jpg',
'image/character/gz_zhouyu.jpg',
'image/character/gz_zhugeliang.jpg',
'image/character/gz_zuoci.jpg',
'image/character/hanba.jpg', 'image/character/hanba.jpg',
'image/character/handang.jpg', 'image/character/handang.jpg',
'image/character/hanhaoshihuan.jpg', 'image/character/hanhaoshihuan.jpg',

View File

@ -4482,22 +4482,31 @@
restart:true, restart:true,
}, },
connect_initshow_draw:{ connect_initshow_draw:{
name:'首亮摸牌', name:'首亮奖励',
item:{ item:{
'0':'关闭', 'off':'关闭',
'1':'一张', 'draw':'摸牌',
'2':'两张', 'mark':'标记',
'3':'三张',
}, },
init:'2', init:'mark',
frequent:true, frequent:true,
intro:'第一个明置身份牌的角色可获得摸牌奖励' intro:'第一个明置武将牌的角色可获得首亮奖励'
},
connect_aozhan:{
name:'鏖战模式',
init:true,
intro:'若开启此选项,则将在游戏中引入“鏖战模式”的规则:<br>当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。<br>◇在鏖战模式下,【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。<br>注:进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。',
},
connect_viewnext:{
name:'观看下家副将',
init:false,
intro:'若开启此选项,所有的玩家将在挑选武将后,分发起始手牌之前,分别观看自己下家的副将。',
}, },
connect_zhulian:{ connect_zhulian:{
name:'珠联璧合', name:'珠联璧合',
init:true, init:true,
// frequent:true, // frequent:true,
intro:'主将和副将都明置后,若为特定组合,可摸两张牌或回复一点体力' intro:'主将和副将都明置后,若为特定组合,可获得【珠联璧合】标记'
}, },
connect_guozhanpile:{ connect_guozhanpile:{
name:'使用国战牌堆', name:'使用国战牌堆',
@ -4563,22 +4572,44 @@
restart:true, restart:true,
}, },
initshow_draw:{ initshow_draw:{
name:'首亮摸牌', name:'首亮奖励',
item:{ item:{
'0':'关闭', 'off':'关闭',
'1':'一张', 'draw':'摸牌',
'2':'两张', 'mark':'标记',
'3':'三张',
}, },
init:'2', init:'mark',
frequent:true, frequent:true,
intro:'第一个明置身份牌的角色可获得摸牌奖励' intro:'第一个明置身份牌的角色可获得摸牌奖励'
}, },
aozhan:{
name:'鏖战模式',
init:true,
intro:'若开启此选项,则将在游戏中引入“鏖战模式”的规则:<br>当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。<br>◇在鏖战模式下,【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。<br>注:进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。',
},
viewnext:{
name:'观看下家副将',
init:false,
intro:'若开启此选项,所有的玩家将在挑选武将后,分发起始手牌之前,分别观看自己下家的副将。',
},
aozhan_bgm:{
name:'鏖战背景音乐',
item:{
disabled:'不启用',
online:'Online',
chaoming:'潮鸣',
},
init:'chaoming',
onclick:function(item){
game.saveConfig('aozhan_bgm',item,this._link.config.mode);
if(_status._aozhan==true) game.playBackgroundMusic();
},
},
zhulian:{ zhulian:{
name:'珠联璧合', name:'珠联璧合',
init:true, init:true,
// frequent:true, // frequent:true,
intro:'主将和副将都明置后,若为特定组合,可摸两张牌或回复一点体力' intro:'主将和副将都明置后,若为特定组合,可获得【珠联璧合】标记'
}, },
guozhanpile:{ guozhanpile:{
name:'使用国战牌堆', name:'使用国战牌堆',
@ -4593,6 +4624,13 @@
restart:true, restart:true,
intro:'开启武将技能将替换为国战版本并禁用非国战武将' intro:'开启武将技能将替换为国战版本并禁用非国战武将'
}, },
guozhanSkin:{
name:'使用国战皮肤',
init:true,
frequent:true,
restart:true,
intro:'开启此选项后,将会把有国战专属皮肤的武将替换为国战皮肤'
},
junzhu:{ junzhu:{
name:'替换君主', name:'替换君主',
init:true, init:true,
@ -6013,7 +6051,7 @@
if(name.indexOf('gz_shibing')==0){ if(name.indexOf('gz_shibing')==0){
name=name.slice(3,11); name=name.slice(3,11);
} }
else{ else if(!get.config('guozhanSkin')||!lib.character[name]||!lib.character[name][4].contains('gzskin')){
name=name.slice(3); name=name.slice(3);
} }
} }
@ -24677,6 +24715,10 @@
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&&get.config('aozhan_bgm')!='disabled'){
var aozhan=get.config('aozhan_bgm');
ui.backgroundMusic.src=lib.assetURL+'audio/background/aozhan_'+aozhan+'.mp3';
}
else{ else{
var music=lib.config.background_music; var music=lib.config.background_music;
if(music=='music_random'){ if(music=='music_random'){
@ -43083,8 +43125,11 @@
}).setBackground(name,'character'); }).setBackground(name,'character');
var changeskinfunc=null; var changeskinfunc=null;
var nameskin=name; var nameskin=name;
var nameskin2=name;
var gzbool=false;
if(nameskin.indexOf('gz_')==0){ if(nameskin.indexOf('gz_')==0){
nameskin=nameskin.slice(3); nameskin=nameskin.slice(3);
gzbool=true;
} }
var changeskin=function(){ var changeskin=function(){
var node=ui.create.div('.changeskin','可换肤',playerbg); var node=ui.create.div('.changeskin','可换肤',playerbg);
@ -43115,9 +43160,16 @@
} }
else{ else{
delete lib.config.skin[nameskin]; delete lib.config.skin[nameskin];
bg.setBackground(nameskin,'character'); if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')){
if(sourcenode) sourcenode.setBackground(nameskin,'character'); bg.setBackground(nameskin2,'character');
if(avatar) avatar.setBackground(nameskin,'character'); if(sourcenode) sourcenode.setBackground(nameskin2,'character');
if(avatar) avatar.setBackground(nameskin2,'character');
}
else{
bg.setBackground(nameskin,'character');
if(sourcenode) sourcenode.setBackground(nameskin,'character');
if(avatar) avatar.setBackground(nameskin,'character');
}
game.saveConfig('skin',lib.config.skin); game.saveConfig('skin',lib.config.skin);
} }
}); });
@ -43126,7 +43178,8 @@
button.setBackgroundImage('image/skin/'+nameskin+'/'+i+'.jpg'); button.setBackgroundImage('image/skin/'+nameskin+'/'+i+'.jpg');
} }
else{ else{
button.setBackground(nameskin,'character','noskin'); if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')) button.setBackground(nameskin2,'character','noskin');
else button.setBackground(nameskin,'character','noskin');
} }
} }
}; };
@ -46753,8 +46806,11 @@
var buttons=ui.create.div('.buttons.smallzoom.scrollbuttons'); var buttons=ui.create.div('.buttons.smallzoom.scrollbuttons');
lib.setMousewheel(buttons); lib.setMousewheel(buttons);
var nameskin=(avatar2?node.name2:node.name); var nameskin=(avatar2?node.name2:node.name);
var nameskin2=nameskin;
var gzbool=false;
if(nameskin.indexOf('gz_')==0){ if(nameskin.indexOf('gz_')==0){
nameskin=nameskin.slice(3); nameskin=nameskin.slice(3);
gzbool=true;
} }
for(var i=0;i<=num;i++){ for(var i=0;i<=num;i++){
var button=ui.create.div('.button.character.pointerdiv',buttons,function(){ var button=ui.create.div('.button.character.pointerdiv',buttons,function(){
@ -46769,13 +46825,14 @@
} }
} }
else{ else{
delete lib.config.skin[nameskin];
if(avatar2){ if(avatar2){
delete lib.config.skin[nameskin]; if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')) node.node.avatar2.setBackground(nameskin2,'character');
node.node.avatar2.setBackground(nameskin,'character'); else node.node.avatar2.setBackground(nameskin,'character');
} }
else{ else{
delete lib.config.skin[nameskin]; if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')) node.node.avatar.setBackground(nameskin2,'character');
node.node.avatar.setBackground(nameskin,'character'); else node.node.avatar.setBackground(nameskin,'character');
} }
} }
game.saveConfig('skin',lib.config.skin); game.saveConfig('skin',lib.config.skin);
@ -46785,7 +46842,8 @@
button.setBackgroundImage('image/skin/'+nameskin+'/'+i+'.jpg'); button.setBackgroundImage('image/skin/'+nameskin+'/'+i+'.jpg');
} }
else{ else{
button.setBackground(nameskin,'character','noskin'); if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')) button.setBackground(nameskin2,'character','noskin');
else button.setBackground(nameskin,'character','noskin');
} }
} }
uiintro.add(buttons); uiintro.add(buttons);
@ -46809,8 +46867,11 @@
} }
} }
var nameskin=(avatar2?node.name2:node.name); var nameskin=(avatar2?node.name2:node.name);
var nameskin2=nameskin;
var gzbool=false;
if(nameskin.indexOf('gz_')==0){ if(nameskin.indexOf('gz_')==0){
nameskin=nameskin.slice(3); nameskin=nameskin.slice(3);
gzbool=true;
} }
img.src=lib.assetURL+'image/skin/'+nameskin+'/'+num+'.jpg'; img.src=lib.assetURL+'image/skin/'+nameskin+'/'+num+'.jpg';
} }
@ -47238,8 +47299,11 @@
var num=1; var num=1;
var introadded=false; var introadded=false;
var nameskin=node.link; var nameskin=node.link;
var nameskin2=nameskin;
var gzbool=false;
if(nameskin.indexOf('gz_')==0){ if(nameskin.indexOf('gz_')==0){
nameskin=nameskin.slice(3); nameskin=nameskin.slice(3);
gzbool=true;
} }
var createButtons=function(num){ var createButtons=function(num){
if(!num) return; if(!num) return;
@ -47258,7 +47322,8 @@
} }
else{ else{
delete lib.config.skin[nameskin]; delete lib.config.skin[nameskin];
node.setBackground(nameskin,'character'); if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')) node.setBackground(nameskin2,'character');
else node.setBackground(nameskin,'character');
game.saveConfig('skin',lib.config.skin); game.saveConfig('skin',lib.config.skin);
} }
}); });
@ -47267,7 +47332,8 @@
button.setBackgroundImage('image/skin/'+nameskin+'/'+i+'.jpg'); button.setBackgroundImage('image/skin/'+nameskin+'/'+i+'.jpg');
} }
else{ else{
button.setBackground(nameskin,'character','noskin'); if(gzbool&&lib.character[nameskin2][4].contains('gzskin')&&get.config('guozhanSkin')) button.setBackground(nameskin2,'character','noskin');
else button.setBackground(nameskin,'character','noskin');
} }
} }
uiintro.add(buttons); uiintro.add(buttons);

View File

@ -1,18 +1,14 @@
window.noname_update={ window.noname_update={
version:'1.9.88.4', version:'1.9.89',
update:'1.9.88.3', update:'1.9.88.4',
changeLog:[ changeLog:[
'修复BUG', '神武将开放联机使用',
'昆特牌,古剑奇谭部分技能调整', '国战武将独立皮肤',
'新国战(请在更新后关闭相关扩展,避免产生冲突)',
], ],
files:[ files:[
'character/gujian.js', 'character/extra.js',
'character/gwent.js', 'mode/guozhan.js',
'character/shenhua.js',
'character/sp.js',
//'character/standard.js',
'character/xinghuoliaoyuan.js',
'character/yijiang.js',
//'game/asset.js', //'game/asset.js',
'game/game.js', 'game/game.js',
//'game/package.js' //'game/package.js'