From 9801500dce3fa8e548214c0e47539ee16a91d072 Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Sun, 10 Sep 2023 18:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E6=B3=95=E6=94=B9=E8=BF=9B=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/game/game.js b/game/game.js index 305a5a2cf..375fb084b 100644 --- a/game/game.js +++ b/game/game.js @@ -52115,7 +52115,13 @@ } var intro=ui.create.div('.characterintro',get.characterIntro(name),uiintro); if(lib.config.show_characternamepinyin){ - intro.innerHTML=''+get.rawName(name)+''+''+'['+get.pinyin(get.rawName(name))+']'+''+' | '+get.translation(lib.character[name][0])+' | '+get.translation(lib.character[name][1])+' | '+lib.character[name][2]+'
'+get.characterIntro(name); + var charactername=get.rawName(name); + var characterpinyin=get.pinyin(charactername); + var charactersex=get.translation(lib.character[name][0]); + var charactergroup=get.translation(lib.character[name][1]); + var characterhp=lib.character[name][2]; + var characterintroinfo=get.characterIntro(name); + intro.innerHTML=''+charactername+''+''+'['+characterpinyin+']'+''+' | '+charactersex+' | '+charactergroup+' | '+characterhp+'
'+characterintroinfo; } var intro2=ui.create.div('.characterintro.intro2',uiintro); var list=get.character(name,3)||[]; @@ -52135,10 +52141,13 @@ current.classList.remove('active'); } this.classList.add('active'); - if(lib.config.show_skillnamepinyin){ - intro2.innerHTML=''+get.translation(this.link)+''+''+'['+get.pinyin(get.translation(this.link))+']'+''+' '+get.skillInfoTranslation(this.link); + var skillname=get.translation(this.link); + var skilltranslationinfo=get.skillInfoTranslation(this.link); + if(lib.config.show_skillnamepinyin&&skillname!='阵亡'){ + var skillpinyin=get.pinyin(skillname); + intro2.innerHTML=''+skillname+''+''+'['+skillpinyin+']'+''+' '+skilltranslationinfo; }else{ - intro2.innerHTML=''+get.translation(this.link)+''+get.skillInfoTranslation(this.link); + intro2.innerHTML=''+skillname+''+skilltranslationinfo; } var info=get.info(this.link); var skill=this.link; @@ -52150,10 +52159,13 @@ derivation=[derivation]; } for(var i=0;i'+''+'['+get.pinyin(get.translation(derivation[i]))+']'+''+' '+get.skillInfoTranslation(derivation[i]); + var derivationname=get.translation(derivation[i]); + var derivationtranslationinfo=get.skillInfoTranslation(derivation[i]); + if(lib.config.show_skillnamepinyin&&derivationname.length<=5){ + var derivationpinyin=get.pinyin(derivationname); + intro2.innerHTML+='

'+derivationname+''+''+'['+derivationpinyin+']'+''+' '+derivationtranslationinfo; }else{ - intro2.innerHTML+='

'+get.translation(derivation[i])+''+get.skillInfoTranslation(derivation[i]); + intro2.innerHTML+='

'+derivationname+''+derivationtranslationinfo; } } }