明忠模式适配新主公技写法

This commit is contained in:
mengxinzxz 2023-09-08 17:55:15 +08:00 committed by GitHub
parent b48ae29434
commit 76b0ab8b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -2347,6 +2347,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.zhu.ai.shown=1; game.zhu.ai.shown=1;
game.zhu.setIdentity(); game.zhu.setIdentity();
game.zhu.isZhu=true; game.zhu.isZhu=true;
var skills=player.getStockSkills(true,true).filter(skill=>{
if(player.hasSkill(skill)) return false;
var info=get.info(skill);
return info&&info.zhuSkill;
});
if(skills.length){
for(var i of skills) player.addSkillLog(i);
}
game.zhu.node.identity.classList.remove('guessing'); game.zhu.node.identity.classList.remove('guessing');
if(lib.config.animation&&!lib.config.low_performance) game.zhu.$legend(); if(lib.config.animation&&!lib.config.low_performance) game.zhu.$legend();
delete game.zhong; delete game.zhong;