战斗位置

back_recharge
zhangshanxue 2020-05-18 13:44:38 +08:00
parent cfb504dfe8
commit bc0d2c5f6e
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,7 @@ public class BloodLogic {
}
public CommonProto.FightTeamInfo fightDataMakeUp(Map<String ,String> heroSkills ,Map<String, FamilyHeroInfo> heroInfo,String pokmanSkill,String passiveSkill,Map<String,Double> remainHp){
List<CommonProto.FightUnitInfo> heroDefendFightInfos = new ArrayList<>();
int index=0;
for (Map.Entry<String, FamilyHeroInfo> entry : heroInfo.entrySet()) {
StringBuilder propertySb = new StringBuilder();
String heroSkill = heroSkills.get(entry.getKey());
@ -116,6 +117,7 @@ public class BloodLogic {
.setUnitId(Integer.toString(entry.getValue().getTempleteId()))
.setUnitSkillIds(heroSkill)//.substring(0, heroSkill.length() - 1)
.setProperty(property.substring(0, property.length() - 1))
.setPosition(++index)
.build();
heroDefendFightInfos.add(heroFightInfo);
}