small bugfix

This commit is contained in:
mengxinzxz 2023-12-14 15:07:51 +08:00
parent 5f341f10e0
commit dd0dcc1fab
1 changed files with 36 additions and 36 deletions

View File

@ -37694,24 +37694,24 @@ new Promise(resolve=>{
else if(player.tempname){ else if(player.tempname){
const name=player.tempname.find(i=>info.audioname2[i]); const name=player.tempname.find(i=>info.audioname2[i]);
if(name) audioInfo=info.audioname2[name]; if(name) audioInfo=info.audioname2[name];
} else if(player.name&&get.character(player.name)&&get.character(player.name)[4]&&get.character(player.name)[4].some(tag=>tag.startsWith('tempname:'))){
else if(player.name&&get.character(player.name)&&get.character(player.name)[4]&&get.character(player.name)[4].some(tag=>tag.startsWith('tempname:'))){ const list=get.character(player.name)[4].find(tag=>tag.startsWith('tempname:'));
const list=get.character(player.name)[4].find(tag=>tag.startsWith('tempname:')); list=list.split(':').slice(1);
list=list.split(':').slice(1); const name=list.find(i=>info.audioname2[i]);
const name=list.find(i=>info.audioname2[i]); if(name) audioInfo=info.audioname2[name];
if(name) audioInfo=info.audioname2[name]; else if(player.name1&&get.character(player.name1)&&get.character(player.name1)[4]&&get.character(player.name1)[4].some(tag=>tag.startsWith('tempname:'))){
} const list=get.character(player.name1)[4].find(tag=>tag.startsWith('tempname:'));
else if(player.name1&&get.character(player.name1)&&get.character(player.name1)[4]&&get.character(player.name1)[4].some(tag=>tag.startsWith('tempname:'))){ list=list.split(':').slice(1);
const list=get.character(player.name1)[4].find(tag=>tag.startsWith('tempname:')); const name=list.find(i=>info.audioname2[i]);
list=list.split(':').slice(1); if(name) audioInfo=info.audioname2[name];
const name=list.find(i=>info.audioname2[i]); else if(player.name2&&get.character(player.name2)&&get.character(player.name2)[4]&&get.character(player.name2)[4].some(tag=>tag.startsWith('tempname:'))){
if(name) audioInfo=info.audioname2[name]; const list=get.character(player.name2)[4].find(tag=>tag.startsWith('tempname:'));
} list=list.split(':').slice(1);
else if(player.name2&&get.character(player.name2)&&get.character(player.name2)[4]&&get.character(player.name2)[4].some(tag=>tag.startsWith('tempname:'))){ const name=list.find(i=>info.audioname2[i]);
const list=get.character(player.name2)[4].find(tag=>tag.startsWith('tempname:')); if(name) audioInfo=info.audioname2[name];
list=list.split(':').slice(1); }
const name=list.find(i=>info.audioname2[i]); }
if(name) audioInfo=info.audioname2[name]; }
} }
} }
if(typeof audioInfo=='function') audioInfo=audioInfo(player); if(typeof audioInfo=='function') audioInfo=audioInfo(player);
@ -37760,24 +37760,24 @@ new Promise(resolve=>{
else if(player.tempname){ else if(player.tempname){
const name=player.tempname.find(i=>audioname.includes(i)); const name=player.tempname.find(i=>audioname.includes(i));
if(name) _audioname=`_${name}`; if(name) _audioname=`_${name}`;
} else if(player.name&&get.character(player.name)&&get.character(player.name)[4]&&get.character(player.name)[4].some(tag=>tag.startsWith('tempname:'))){
else if(player.name&&get.character(player.name)&&get.character(player.name)[4]&&get.character(player.name)[4].some(tag=>tag.startsWith('tempname:'))){ const list=get.character(player.name)[4].find(tag=>tag.startsWith('tempname:'));
const list=get.character(player.name)[4].find(tag=>tag.startsWith('tempname:')); list=list.split(':').slice(1);
list=list.split(':').slice(1); const name=list.find(i=>audioname.includes(i));
const name=list.find(i=>audioname.includes(i)); if(name) _audioname=`_${name}`;
if(name) _audioname=`_${name}`; else if(player.name1&&get.character(player.name1)&&get.character(player.name1)[4]&&get.character(player.name1)[4].some(tag=>tag.startsWith('tempname:'))){
} const list=get.character(player.name1)[4].find(tag=>tag.startsWith('tempname:'));
else if(player.name1&&get.character(player.name1)&&get.character(player.name1)[4]&&get.character(player.name1)[4].some(tag=>tag.startsWith('tempname:'))){ list=list.split(':').slice(1);
const list=get.character(player.name1)[4].find(tag=>tag.startsWith('tempname:')); const name=list.find(i=>audioname.includes(i));
list=list.split(':').slice(1); if(name) _audioname=`_${name}`;
const name=list.find(i=>audioname.includes(i)); else if(player.name2&&get.character(player.name2)&&get.character(player.name2)[4]&&get.character(player.name2)[4].some(tag=>tag.startsWith('tempname:'))){
if(name) _audioname=`_${name}`; const list=get.character(player.name2)[4].find(tag=>tag.startsWith('tempname:'));
} list=list.split(':').slice(1);
else if(player.name2&&get.character(player.name2)&&get.character(player.name2)[4]&&get.character(player.name2)[4].some(tag=>tag.startsWith('tempname:'))){ const name=list.find(i=>audioname.includes(i));
const list=get.character(player.name2)[4].find(tag=>tag.startsWith('tempname:')); if(name) _audioname=`_${name}`;
list=list.split(':').slice(1); }
const name=list.find(i=>audioname.includes(i)); }
if(name) _audioname=`_${name}`; }
} }
list=list.slice(1);//[路径,number/true,格式] list=list.slice(1);//[路径,number/true,格式]