This commit is contained in:
libccy 2016-05-20 20:30:12 +08:00
parent a2fc70e81c
commit 4dac84d13b
4 changed files with 85 additions and 10 deletions

View File

@ -2064,7 +2064,7 @@ character.sp={
player.setIdentity(); player.setIdentity();
} }
target.identity=identity; target.identity=identity;
},player,trigger.player,target.identityShown); },player,trigger.player,trigger.player.identityShown);
player.line(trigger.player,'green'); player.line(trigger.player,'green');
player.storage.fenxin=true; player.storage.fenxin=true;
player.unmarkSkill('fenxin'); player.unmarkSkill('fenxin');

View File

@ -15680,6 +15680,41 @@
lib.characterPack[packname][name]=character; lib.characterPack[packname][name]=character;
lib.translate[packname+'_character_config']=extname; lib.translate[packname+'_character_config']=extname;
}, },
addCharacterPack:function(pack,packagename){
var extname=_status.extension||'扩展';
packagename=packagename||extname;
for(var i in pack){
if(i=='mode'||i=='forbid') continue;
for(var j in pack[i]){
if(i=='character'){
if(!pack[i][j][4]){
pack[i][j][4]=[];
}
var imgsrc;
if(_status.evaluatingExtension){
imgsrc='db:extension-'+extname+':'+j+'.jpg';
}
else{
imgsrc='ext:'+extname+'/'+j+'.jpg';
}
pack[i][j][4].push(imgsrc);
if(pack[i][j][4].contains('boss')||
pack[i][j][4].contains('hiddenboss')){
lib.config.forbidai.add(j);
}
for(var l=0;l<pack[i][j][3].length;l++){
lib.skilllist.add(pack[i][j][3][l]);
}
}
if(lib[i][j]==undefined){
lib[i][j]=lib.init.eval(pack[i][j]);
}
}
}
var packname='mode_extension_'+extname;
lib.characterPack[packname]=pack.character;
lib.translate[packname+'_character_config']=packagename;
},
addCard:function(name,info,info2){ addCard:function(name,info,info2){
var extname=(_status.extension||info2.extension); var extname=(_status.extension||info2.extension);
if(info.fullskin){ if(info.fullskin){
@ -15720,6 +15755,44 @@
} }
lib.cardPack[packname].push(name); lib.cardPack[packname].push(name);
}, },
addCardPack:function(pack,packagename){
var extname=_status.extension||'扩展';
packagename=packagename||extname;
var packname='mode_extension_'+extname;
lib.cardPack[packname]=[];
lib.translate[packname+'_card_config']=packagename;
for(var i in pack){
if(i=='mode'||i=='forbid') continue;
if(i=='list'){
for(var j=0;j<pack[i].length;j++){
lib.card.list.push(pack[i][j]);
}
continue;
}
for(var j in pack[i]){
if(i=='card'){
if(pack[i][j].fullskin){
if(_status.evaluatingExtension){
pack[i][j].image='db:extension-'+extname+':'+j+'.png';
}
else{
pack[i][j].image='ext:'+extname+'/'+j+'.png';
}
}
else if(pack[i][j].fullimage){
if(_status.evaluatingExtension){
pack[i][j].image='db:extension-'+extname+':'+j+'.jpg';
}
else{
pack[i][j].image='ext:'+extname+'/'+j+'.jpg';
}
}
lib.cardPack[packname].push(j);
}
if(lib[i][j]==undefined) lib[i][j]=lib.init.eval(pack[i][j]);
}
}
},
addSkill:function(name,info,translate,description){ addSkill:function(name,info,translate,description){
if(lib.skill[name]){ if(lib.skill[name]){
return false; return false;
@ -19380,7 +19453,7 @@
_status.clicked=false; _status.clicked=false;
return; return;
} }
if(mode.indexOf('mode_')==0){ if(mode.indexOf('mode_')==0&&mode.indexOf('mode_extension_')!=0){
return; return;
} }
this.classList.toggle('unselectable'); this.classList.toggle('unselectable');
@ -20251,7 +20324,7 @@
_status.clicked=false; _status.clicked=false;
return; return;
} }
if(mode.indexOf('mode_')==0){ if(mode.indexOf('mode_')==0&&mode.indexOf('mode_extension_')!=0){
return; return;
} }
this.classList.toggle('unselectable'); this.classList.toggle('unselectable');
@ -20864,7 +20937,6 @@
var download=ui.create.div('.menubutton.text.active','下载扩展',node.firstChild,downloadExtension); var download=ui.create.div('.menubutton.text.active','下载扩展',node.firstChild,downloadExtension);
if(lib.config.extensions.contains(list[i].name)){ if(lib.config.extensions.contains(list[i].name)){
download.classList.remove('active'); download.classList.remove('active');
console.log(lib.config['extension_'+list[i].name+'_version'],list[i].version);
if(lib.config['extension_'+list[i].name+'_version']!=list[i].version){ if(lib.config['extension_'+list[i].name+'_version']!=list[i].version){
download.innerHTML='更新扩展'; download.innerHTML='更新扩展';
download.classList.add('highlight'); download.classList.add('highlight');

View File

@ -1,11 +1,11 @@
window.noname_update={ window.noname_update={
version:'1.8.10.3', version:'1.8.10.4',
changeLog:[ changeLog:[
'扩展更新', '修bug',
'修复明置bug'
], ],
files:{ files:{
global:['game/game.js','mode/guozhan.js'], global:['game/game.js','character/sp.js','layout/default/layout.js'],
'1.8.10.2':[], '1.8.10.2':['mode/guozhan.js'],
'1.8.10.3':[],
} }
} }

View File

@ -1325,7 +1325,6 @@ span[data-nature='firem']{
rgba(232, 53, 53,1) 0 0 5px,black 0 0 1px; rgba(232, 53, 53,1) 0 0 5px,black 0 0 1px;
} }
.player .identity[data-color="zhong"], .player .identity[data-color="zhong"],
.player .identity[data-color="mingzhong"],
.player .identity[data-color="qun"], .player .identity[data-color="qun"],
.player .identity[data-color="neutral"], .player .identity[data-color="neutral"],
.player .identity[data-color="friend2"], .player .identity[data-color="friend2"],
@ -1334,6 +1333,10 @@ span[data-nature='metal']{
text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 10px, text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 10px,
rgba(255, 203, 0,1) 0 0 10px rgba(255, 203, 0,1) 0 0 10px
} }
.player .identity[data-color="mingzhong"]{
text-shadow: black 0 0 1px,rgba(255, 120, 0,1) 0 0 2px,rgba(255, 120, 0,1) 0 0 5px,rgba(255, 120, 0,1) 0 0 10px,
rgba(255, 120, 0,1) 0 0 10px
}
div[data-nature='metalm'], div[data-nature='metalm'],
span[data-nature='metalm']{ span[data-nature='metalm']{
text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 5px, text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 5px,