主角技能添加性别字段
parent
872dee96f7
commit
c366955468
|
|
@ -2371,7 +2371,7 @@ public class HeroLogic {
|
|||
}
|
||||
|
||||
///获取修行技能数据
|
||||
public void getPracticeSkill(List<CommonProto.FightUnitInfo> infoList, Map<Integer, Integer> practiceSkillMap,long maxForce) {
|
||||
public void getPracticeSkill(List<CommonProto.FightUnitInfo> infoList, Map<Integer, Integer> practiceSkillMap,long maxForce,int sex) {
|
||||
if (practiceSkillMap.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -2392,6 +2392,7 @@ public class HeroLogic {
|
|||
.setPosition(100)
|
||||
.setSkinId(0)
|
||||
.setForceScore(maxForce)
|
||||
.setPlayerSex(sex)
|
||||
.build();
|
||||
infoList.add(skillInfo);
|
||||
}
|
||||
|
|
@ -2431,7 +2432,7 @@ public class HeroLogic {
|
|||
.build();
|
||||
pokemonInfos.add(info);
|
||||
}
|
||||
getPracticeSkill(pokemonInfos, user.getHeroManager().getPracticeSkillMap(),user.getPlayerInfoManager().getMaxForce());
|
||||
getPracticeSkill(pokemonInfos, user.getHeroManager().getPracticeSkillMap(),user.getPlayerInfoManager().getMaxForce(),user.getPlayerInfoManager().getSex());
|
||||
return pokemonInfos;
|
||||
}
|
||||
|
||||
|
|
@ -2487,7 +2488,7 @@ public class HeroLogic {
|
|||
.setUnitId(String.valueOf(pokemon.getTmpId())).setUnitSkillIds(String.valueOf(sSpiritAnimalSkill.getId())).build();
|
||||
pokemonInfos.add(info);
|
||||
}
|
||||
getPracticeSkill(pokemonInfos,crossArenaManager.getPracticeSkillMap(),crossArenaManager.getMaxHistoryForce());
|
||||
getPracticeSkill(pokemonInfos,crossArenaManager.getPracticeSkillMap(),crossArenaManager.getMaxHistoryForce(),0);
|
||||
return pokemonInfos;
|
||||
}
|
||||
|
||||
|
|
@ -2520,7 +2521,7 @@ public class HeroLogic {
|
|||
.setUnitId(String.valueOf(pokemon.getTmpId())).setUnitSkillIds(String.valueOf(sSpiritAnimalSkill.getId())).build();
|
||||
pokemonInfos.add(info);
|
||||
}
|
||||
getPracticeSkill(pokemonInfos,user.getHeroManager().getPracticeSkillMap(),user.getPlayerInfoManager().getMaxForce());
|
||||
getPracticeSkill(pokemonInfos,user.getHeroManager().getPracticeSkillMap(),user.getPlayerInfoManager().getMaxForce(),user.getPlayerInfoManager().getSex());
|
||||
return pokemonInfos;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue