排行榜英雄信息,走鸿蒙阵

back_recharge
duhui 2021-06-02 11:59:53 +08:00
parent af1c2fb537
commit b879921365
2 changed files with 14 additions and 1 deletions

View File

@ -670,7 +670,7 @@ public class PlayerLogic {
builder.addEquip(CBean2Proto.getEquipProto(equipId));
}
builder.setForce(HeroLogic.getInstance().calForce(heroNotBufferAttribute));
builder.setHero(CBean2Proto.getHero(hero));
builder.setHero(CBean2Proto.getHeroByHongMeng(hero,userInMem.getHeroManager()));
Map<Integer, Integer> guildSkill = userInMem.getGuildMyInfo().getGuildSkill();
int profession = SCHero.getsCHero().get(hero.getTemplateId()).getProfession();
Integer skill = guildSkill.getOrDefault(profession, 0);

View File

@ -237,6 +237,19 @@ public class CBean2Proto {
.build();
}
/***
* 鸿
* @param hero
* @param heroManager
* @return
*/
public static CommonProto.Hero getHeroByHongMeng(Hero hero,HeroManager heroManager){
CommonProto.Hero hero1 = getHero(hero);
CommonProto.Hero.Builder builder = hero1.toBuilder();
builder.setLevel(hero.getLevel(heroManager));
return builder.build();
}
/* public static CommonProto.Hero getRobotHero(SCHero scHero, SArenaRobotConfig sArenaRobotConfig) throws Exception {
return CommonProto.Hero
.newBuilder()