排行榜英雄信息,走鸿蒙阵
parent
af1c2fb537
commit
b879921365
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue