战斗位置
parent
cfb504dfe8
commit
bc0d2c5f6e
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue