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