extra add

back_recharge
wangyuan 2019-08-10 10:35:07 +08:00
parent c20d6e97c5
commit 5d79d6ac4d
1 changed files with 9 additions and 11 deletions

View File

@ -40,19 +40,17 @@ public class SDifferDemonsComonpentsConfig implements BaseConfig {
extraAddMapTmp.put(comonpentsId,new HashMap<>());
}
int[][] extraAdd = sDifferDemonsComonpentsConfig.getExtraAdd();
if(extraAdd!=null&&extraAdd.length>0){
Map<Integer, Map<Integer, Integer>> extraMapTmpInfo = extraAddMapTmp.get(comonpentsId);
for(int [] extraItem : extraAdd){
int profession = extraItem[0];
int propertyId = extraItem[1];
int propertyValue = extraItem[2];
if(!extraMapTmpInfo.containsKey(profession)){
extraMapTmpInfo.put(profession,new HashMap<>());
}
extraMapTmpInfo.get(profession).put(propertyId,propertyValue);
Map<Integer, Map<Integer, Integer>> extraMapTmpInfo = extraAddMapTmp.get(comonpentsId);
for(int [] extraItem : extraAdd){
int profession = extraItem[0];
int propertyId = extraItem[1];
int propertyValue = extraItem[2];
if(!extraMapTmpInfo.containsKey(profession)){
extraMapTmpInfo.put(profession,new HashMap<>());
}
sDifferDemonsComonpentsConfig.setExtraAddMap(new HashMap<>(extraMapTmpInfo));
extraMapTmpInfo.get(profession).put(propertyId,propertyValue);
}
sDifferDemonsComonpentsConfig.setExtraAddMap(new HashMap<>(extraMapTmpInfo));
sDifferDemonsComonpentsConfigTmp.get(comonpentsId).put(stage,sDifferDemonsComonpentsConfig);
}