From 4dac84d13bec6ecfb967d98d8a1fc9219559834d Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 20 May 2016 20:30:12 +0800 Subject: [PATCH] f --- character/sp.js | 2 +- game/game.js | 78 +++++++++++++++++++++++++++++++++++++-- game/update.js | 10 ++--- layout/default/layout.css | 5 ++- 4 files changed, 85 insertions(+), 10 deletions(-) diff --git a/character/sp.js b/character/sp.js index e072cb9ce..1d8ef44a2 100755 --- a/character/sp.js +++ b/character/sp.js @@ -2064,7 +2064,7 @@ character.sp={ player.setIdentity(); } target.identity=identity; - },player,trigger.player,target.identityShown); + },player,trigger.player,trigger.player.identityShown); player.line(trigger.player,'green'); player.storage.fenxin=true; player.unmarkSkill('fenxin'); diff --git a/game/game.js b/game/game.js index b9f74a697..be7efeb1e 100755 --- a/game/game.js +++ b/game/game.js @@ -15680,6 +15680,41 @@ lib.characterPack[packname][name]=character; 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