diff --git a/audio/die/jsp_guanyu.mp3 b/audio/die/jsp_guanyu.mp3 new file mode 100644 index 000000000..6e3917063 Binary files /dev/null and b/audio/die/jsp_guanyu.mp3 differ diff --git a/audio/die/lingcao.mp3 b/audio/die/lingcao.mp3 new file mode 100644 index 000000000..60d213f56 Binary files /dev/null and b/audio/die/lingcao.mp3 differ diff --git a/audio/die/liuzan.mp3 b/audio/die/liuzan.mp3 new file mode 100644 index 000000000..9f39ee310 Binary files /dev/null and b/audio/die/liuzan.mp3 differ diff --git a/audio/skill/danji1.mp3 b/audio/skill/danji1.mp3 new file mode 100644 index 000000000..b4c6c1a65 Binary files /dev/null and b/audio/skill/danji1.mp3 differ diff --git a/audio/skill/danji2.mp3 b/audio/skill/danji2.mp3 new file mode 100644 index 000000000..8e5cedd9f Binary files /dev/null and b/audio/skill/danji2.mp3 differ diff --git a/audio/skill/dujin1.mp3 b/audio/skill/dujin1.mp3 new file mode 100644 index 000000000..bd9b3ed61 Binary files /dev/null and b/audio/skill/dujin1.mp3 differ diff --git a/audio/skill/dujin2.mp3 b/audio/skill/dujin2.mp3 new file mode 100644 index 000000000..e74626b00 Binary files /dev/null and b/audio/skill/dujin2.mp3 differ diff --git a/audio/skill/fenyin1.mp3 b/audio/skill/fenyin1.mp3 new file mode 100644 index 000000000..3384b3e36 Binary files /dev/null and b/audio/skill/fenyin1.mp3 differ diff --git a/audio/skill/fenyin2.mp3 b/audio/skill/fenyin2.mp3 new file mode 100644 index 000000000..f1f52e84d Binary files /dev/null and b/audio/skill/fenyin2.mp3 differ diff --git a/audio/skill/xinwusheng1.mp3 b/audio/skill/xinwusheng1.mp3 new file mode 100644 index 000000000..abe5945c7 Binary files /dev/null and b/audio/skill/xinwusheng1.mp3 differ diff --git a/audio/skill/xinwusheng2.mp3 b/audio/skill/xinwusheng2.mp3 new file mode 100644 index 000000000..b39b12432 Binary files /dev/null and b/audio/skill/xinwusheng2.mp3 differ diff --git a/character/swd.js b/character/swd.js index d1123a428..a5ba23e2e 100755 --- a/character/swd.js +++ b/character/swd.js @@ -3526,43 +3526,6 @@ character.swd={ if(true){ return player.storage.kunlunjing3; } - var table,str,st,tr,td; - for(var i=0;iname.indexOf('|')){ + lib.translate[name]=name.slice(name.indexOf('|')+1,name.lastIndexOf('|')); + } + else{ + lib.translate[name]=name.slice(name.indexOf('|')+1); + } } }, checkCharacterName:function(name){ @@ -2946,6 +2953,23 @@ str+='}'; return str; }, + stringifySkill:function(obj){ + var str=''; + for(var i in obj){ + str+=i+':' + if(Object.prototype.toString.call(obj[i])=='[object Object]'){ + str+='{\n'+lib.init.stringifySkill(obj[i])+'}'; + } + else if(typeof obj[i]=='function'){ + str+=obj[i].toString().replace(/\t/g,''); + } + else{ + str+=JSON.stringify(obj[i]); + } + str+=',\n' + } + return str; + } }, translate:{ 'default':"默认", @@ -4061,11 +4085,19 @@ event._skill=event.skill; if(lib.config.background_speak&& (!lib.skill.global.contains(event.skill)||lib.skill[event.skill].forceaudio)){ - if(typeof info.audio=='number'){ - game.playAudio('skill',event.skill+Math.ceil(info.audio*Math.random())); + var audioname=event.skill; + var audioinfo=info.audio; + if(audioname.indexOf('|')',newCharacter); var list=[]; for(var i in lib.character){ - if(!lib.customCharacters.contains(i)&&lib.character[i][3].length); + if(!lib.customCharacters.contains(i)&&lib.character[i][3].length) list.push([i,lib.translate[i]]); } list.sort(function(a,b){ @@ -14496,6 +14539,9 @@ } }; var skillopt=ui.create.selectlist(list2,list2[0],addSkill); + var editSkillButton=document.createElement('button'); + editSkillButton.innerHTML='编辑'; + addSkill.appendChild(editSkillButton); var addSkillButton=document.createElement('button'); addSkillButton.innerHTML='添加'; addSkill.appendChild(addSkillButton); @@ -14513,7 +14559,20 @@ createSkill.lastChild.querySelector('.skilldescription').value=info.description; createSkill.lastChild.querySelector('textarea').value=info.content; } - } + }; + editSkillButton.onclick=function(){ + var name=skillopt.value; + var info=lib.skill[name]; + if(info){ + createSkill.lastChild.classList.remove('hidden'); + createSkill.firstChild.innerHTML='创建技能'; + skillList.style.top='435px'; + + createSkill.lastChild.querySelector('.skillname').value='skill|'+lib.translate[name]+'|'+name; + createSkill.lastChild.querySelector('.skilldescription').value=lib.translate[name+'_info']; + createSkill.lastChild.querySelector('textarea').value=lib.init.stringifySkill(info); + } + }; addSkillButton.onclick=function(){ for(var i=0;i创建技能...
',newCharacter); createSkill.firstChild.listen(function(){ @@ -14567,7 +14626,12 @@ node.skill=name; var name2=name; if(name.indexOf('|')!=-1){ - name2=name2.slice(name2.indexOf('|')+1); + if(name2.lastIndexOf('|')>name2.indexOf('|')){ + name2=name2.slice(name2.indexOf('|')+1,name2.lastIndexOf('|')); + } + else{ + name2=name2.slice(name2.indexOf('|')+1); + } } ui.create.div('',name2,node,editnode); ui.create.div('','×',node,deletenode); @@ -16230,6 +16294,7 @@ }, leavehoverpopped:function(){ if(_status.dragged) return; + if(this.classList.contains('noleave')) return; this.delete(); var button=this._poppedorigin; diff --git a/image/character/gjqt_fanglansheng.jpg b/image/character/gjqt_fanglansheng.jpg index c77bc88c0..753705f6d 100644 Binary files a/image/character/gjqt_fanglansheng.jpg and b/image/character/gjqt_fanglansheng.jpg differ diff --git a/image/character/gjqt_xiangling.jpg b/image/character/gjqt_xiangling.jpg index d6edd0487..bbff12d0c 100644 Binary files a/image/character/gjqt_xiangling.jpg and b/image/character/gjqt_xiangling.jpg differ diff --git a/image/character/gjqt_xiayize.jpg b/image/character/gjqt_xiayize.jpg index 11b16adec..9f39fd9dc 100644 Binary files a/image/character/gjqt_xiayize.jpg and b/image/character/gjqt_xiayize.jpg differ diff --git a/image/character/gjqt_yinqianshang.jpg b/image/character/gjqt_yinqianshang.jpg index 4eedbd6de..dc0a264a3 100644 Binary files a/image/character/gjqt_yinqianshang.jpg and b/image/character/gjqt_yinqianshang.jpg differ diff --git a/image/character/gjqt_yuewuyi.jpg b/image/character/gjqt_yuewuyi.jpg index cd6beab2d..1169f843f 100644 Binary files a/image/character/gjqt_yuewuyi.jpg and b/image/character/gjqt_yuewuyi.jpg differ diff --git a/image/character/jsp_guanyu.jpg b/image/character/jsp_guanyu.jpg new file mode 100644 index 000000000..671e3c64a Binary files /dev/null and b/image/character/jsp_guanyu.jpg differ diff --git a/image/character/lingcao.jpg b/image/character/lingcao.jpg new file mode 100644 index 000000000..dca0a2a4a Binary files /dev/null and b/image/character/lingcao.jpg differ diff --git a/image/character/liuzan.jpg b/image/character/liuzan.jpg new file mode 100644 index 000000000..d834c8fec Binary files /dev/null and b/image/character/liuzan.jpg differ