试炼币修改
parent
1abfb2e66d
commit
d7e05f0c4d
|
@ -2628,9 +2628,9 @@ public class MapLogic {
|
|||
Set<Integer> destoryCell = new HashSet<>();
|
||||
Map<Integer, MapPointConfig> configMap = MapPointConfig.scMapEventMap;
|
||||
Map<int[],Float> rewardMap = new HashMap<>();
|
||||
List<Integer> rewardRevert = new ArrayList<>();
|
||||
int mosterAmount = 0;
|
||||
Map<Integer, Cell> mapInfo = mapManager.getMapInfo();
|
||||
List<Integer> rewardResult= new ArrayList<>();
|
||||
for(Map.Entry<Integer,Cell> entry:mapInfo.entrySet()){
|
||||
int monsterType = configMap.get(entry.getValue().getPointId()).getStyle();
|
||||
if(monsterType==1||monsterType==11){
|
||||
|
@ -2644,7 +2644,7 @@ public class MapLogic {
|
|||
SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(groupId);
|
||||
if(sMonsterGroup!=null&&sMonsterGroup.getRewardgroup()!=null){
|
||||
for(int i = 0 ; i <sMonsterGroup.getRewardgroup().length;i++){
|
||||
rewardRevert.add(sMonsterGroup.getRewardgroup()[i]);
|
||||
rewardResult.add(sMonsterGroup.getRewardgroup()[i]);
|
||||
}
|
||||
}
|
||||
destoryCell.add(entry.getValue().getPointId());
|
||||
|
@ -2654,13 +2654,10 @@ public class MapLogic {
|
|||
LOGGER.info("几种:{}",mapInfo.size());
|
||||
int[] x = Arrays.stream(destoryCell.toArray(new Integer[destoryCell.size()])).mapToInt(Integer::valueOf).toArray();
|
||||
BehaviorUtil.destoryPoints(user,x);
|
||||
int[] y = new int[rewardRevert.size()];
|
||||
for(int i = 0 ; i <rewardRevert.size();i++){
|
||||
y[i] = rewardRevert.get(i);
|
||||
}
|
||||
rewardMap.put(y,1f);
|
||||
LOGGER.info("怪物数量:{}",mosterAmount);
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, rewardMap, BIReason.BOMB_REWARD);
|
||||
int[] bombReward = rewardResult.stream().mapToInt(Integer::valueOf).toArray();
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, bombReward, 1,1,BIReason.BOMB_REWARD);
|
||||
|
||||
|
||||
mapManager.setEssenceValue(100);
|
||||
|
|
Loading…
Reference in New Issue