大闹天宫,灵兽问题处理
parent
ce12694f5a
commit
ba269c61b8
|
@ -163,10 +163,23 @@ public class StringUtil {
|
|||
int last = length-1;
|
||||
for(int i=0;i<length;i++){
|
||||
int[] item = source[i];
|
||||
int itemLast = item.length;
|
||||
if(i==last){
|
||||
sb.append(item[0]).append("#").append(item[1]);
|
||||
for (int j = 0; j < itemLast; j++) {
|
||||
if (j == itemLast-1){
|
||||
sb.append(item[j]);
|
||||
}else {
|
||||
sb.append(item[j]).append("#");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
sb.append(item[0]).append("#").append(item[1]).append("|");
|
||||
for (int j = 0; j < itemLast; j++) {
|
||||
if (j == itemLast-1){
|
||||
sb.append(item[j]).append("|");
|
||||
}else {
|
||||
sb.append(item[j]).append("#");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
@ -98,7 +98,7 @@ public class StartExpeditionBattleRequest extends BaseHandler<Expedition.StartEx
|
|||
CommonProto.FightTeamInfo fightTeamInfo = ExpeditionLogic.getFightTeamInfoWithDouble(inMem,teamId,user.getExpeditionManager().getHeroHP());
|
||||
SnapFightInfo deffightInfo = nodeInfo.getSnapFightInfo();
|
||||
CommonProto.FightTeamInfo deffightTeamInfo;
|
||||
if(ExpeditionLogic.isHardNode(nodeInfo.getType())){
|
||||
if(nodeInfo.getType()==ExpeditionLogic.NODETYPE_GREED){
|
||||
int tid = deffightInfo.getUid();
|
||||
deffightTeamInfo= ExpeditionLogic.getGropFightTeamInfoWithDouble(tid,nodeInfo.getBossHP()).get(0);
|
||||
}else {
|
||||
|
|
|
@ -766,6 +766,7 @@ public class ExpeditionLogic {
|
|||
fightInfo.setUid(heroId);
|
||||
Map<String, Double> bossHP = new HashMap<>();
|
||||
Map<String, FamilyHeroInfo> heroAllAttribute = new HashMap<>();
|
||||
String pokemon = "";
|
||||
if(nodeInfo.getType()==ExpeditionLogic.NODETYPE_GREED){
|
||||
//grop config
|
||||
int force = MonsterUtil.getMonsterForce(new int[]{heroId});
|
||||
|
@ -794,11 +795,14 @@ public class ExpeditionLogic {
|
|||
//试炼节点 放到第二个位置上
|
||||
heroAllAttribute.put(Integer.toString(heroId), new FamilyHeroInfo(heroId,level,robot.getStar(),robot.getRobotHeroAttribute(),2));
|
||||
fightInfo.updateHeroSkill(String.valueOf(heroId),skills.substring(0,skills.length()-1));
|
||||
// 获取灵兽信息
|
||||
SRobotProperty property = STableManager.getConfig(SRobotProperty.class).get(level);
|
||||
pokemon = StringUtil.parseArrayToString(property.getAnimal());
|
||||
}
|
||||
fightInfo.setPassiveSkills("");
|
||||
fightInfo.setHeroAttribute(heroAllAttribute);
|
||||
nodeInfo.setBossHP(bossHP);
|
||||
fightInfo.setPokenmonSkills("");
|
||||
fightInfo.setPokenmonSkills(pokemon);
|
||||
nodeInfo.setSnapFightInfo(fightInfo);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue