This commit is contained in:
libccy 2017-02-02 16:08:29 +08:00
parent ce1f3bd23f
commit 123c4ea4de
1 changed files with 8 additions and 12 deletions

View File

@ -25729,21 +25729,20 @@
var skipcharacter=[],skipcard=[]; var skipcharacter=[],skipcard=[];
if(!lib.config.asset_full){ if(!lib.config.asset_full){
for(var i=0;i<lib.config.all.diycharacter.length;i++){ for(var i=0;i<lib.config.all.characters.length;i++){
var pack=lib.characterPack[lib.config.all.diycharacter[i]]; if(lib.config.diycharacter.contains(lib.config.all.characters)[i]) continue;
var pack=lib.characterPack[lib.config.all.characters[i]];
for(var j in pack){ for(var j in pack){
skipcharacter.add(j); skipcharacter.add(j);
} }
} }
for(var i=0;i<lib.config.all.diycard.length;i++){ for(var i=0;i<lib.config.all.cards.length;i++){
var pack=lib.cardPack[lib.config.all.diycard[i]]; if(lib.config.diycard.contains(lib.config.all.cards)[i]) continue;
var pack=lib.cardPack[lib.config.all.cards[i]];
if(pack){ if(pack){
skipcard=skipcard.concat(pack); skipcard=skipcard.concat(pack);
} }
} }
if(lib.cardPack.mode_derivation){
skipcard=skipcard.concat(lib.cardPack.mode_derivation);
}
} }
for(var i=0;i<updates.length;i++){ for(var i=0;i<updates.length;i++){
switch(updates[i].slice(0,5)){ switch(updates[i].slice(0,5)){
@ -25753,15 +25752,12 @@
} }
else if(!lib.config.asset_full){ else if(!lib.config.asset_full){
if(updates[i].indexOf('image/character')==0){ if(updates[i].indexOf('image/character')==0){
var skipname=updates[i].slice(16,updates[i].lastIndexOf('.')); if(!skipcharacter.contains(updates[i].slice(16,updates[i].lastIndexOf('.')))){
if(skipcharacter.contains(skipname)||skipname.indexOf('pal_')==0||skipname.indexOf('swd_')==0||
skipname.indexOf('ow_')==0||skipname.indexOf('gjqt_')==0||skipname.indexOf('hs_')==0||skipname.indexOf('diy_')==0){
updates.splice(i--,1); updates.splice(i--,1);
} }
} }
else if(updates[i].indexOf('image/card')==0){ else if(updates[i].indexOf('image/card')==0){
var skipname=updates[i].slice(11,updates[i].lastIndexOf('.')); if(!skipcard.contains(updates[i].slice(11,updates[i].lastIndexOf('.')))){
if(skipcard.contains(skipname)||skipname.indexOf('hs')==0||skipname.indexOf('tuteng')==0){
updates.splice(i--,1); updates.splice(i--,1);
} }
} }