山河设计图怪物技能修改
parent
d86d08821b
commit
146c649a3c
|
@ -128,7 +128,7 @@ public class MonsterUtil {
|
||||||
int[] monsterIds = groupIds[i];
|
int[] monsterIds = groupIds[i];
|
||||||
List<CommonProto.FightUnitInfo> monsterList = new ArrayList<>();
|
List<CommonProto.FightUnitInfo> monsterList = new ArrayList<>();
|
||||||
int position=1;
|
int position=1;
|
||||||
/* for (int monsterId : monsterIds) {
|
for (int monsterId : monsterIds) {
|
||||||
if(monsterId!=0){
|
if(monsterId!=0){
|
||||||
SMonsterConfig sMonsterConfig = STableManager.getConfig(SMonsterConfig.class).get(monsterId);
|
SMonsterConfig sMonsterConfig = STableManager.getConfig(SMonsterConfig.class).get(monsterId);
|
||||||
monsterList.add( CBean2Proto.getMonster(sMonsterConfig, nodeConfig).setPosition(position++).build());
|
monsterList.add( CBean2Proto.getMonster(sMonsterConfig, nodeConfig).setPosition(position++).build());
|
||||||
|
@ -136,15 +136,15 @@ public class MonsterUtil {
|
||||||
position++;
|
position++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}*/
|
|
||||||
for (int monsterId : monsterIds) {
|
|
||||||
if(monsterId!=0){
|
|
||||||
monsterList.add(monsterMap.get(monsterId).setPosition(position++).build());
|
|
||||||
}else{
|
|
||||||
position++;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// for (int monsterId : monsterIds) {
|
||||||
|
// if(monsterId!=0){
|
||||||
|
// monsterList.add(monsterMap.get(monsterId).setPosition(position++).build());
|
||||||
|
// }else{
|
||||||
|
// position++;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
map.put(i,monsterList);
|
map.put(i,monsterList);
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
|
Loading…
Reference in New Issue