extra add
parent
c20d6e97c5
commit
5d79d6ac4d
|
|
@ -40,19 +40,17 @@ public class SDifferDemonsComonpentsConfig implements BaseConfig {
|
||||||
extraAddMapTmp.put(comonpentsId,new HashMap<>());
|
extraAddMapTmp.put(comonpentsId,new HashMap<>());
|
||||||
}
|
}
|
||||||
int[][] extraAdd = sDifferDemonsComonpentsConfig.getExtraAdd();
|
int[][] extraAdd = sDifferDemonsComonpentsConfig.getExtraAdd();
|
||||||
if(extraAdd!=null&&extraAdd.length>0){
|
Map<Integer, Map<Integer, Integer>> extraMapTmpInfo = extraAddMapTmp.get(comonpentsId);
|
||||||
Map<Integer, Map<Integer, Integer>> extraMapTmpInfo = extraAddMapTmp.get(comonpentsId);
|
for(int [] extraItem : extraAdd){
|
||||||
for(int [] extraItem : extraAdd){
|
int profession = extraItem[0];
|
||||||
int profession = extraItem[0];
|
int propertyId = extraItem[1];
|
||||||
int propertyId = extraItem[1];
|
int propertyValue = extraItem[2];
|
||||||
int propertyValue = extraItem[2];
|
if(!extraMapTmpInfo.containsKey(profession)){
|
||||||
if(!extraMapTmpInfo.containsKey(profession)){
|
extraMapTmpInfo.put(profession,new HashMap<>());
|
||||||
extraMapTmpInfo.put(profession,new HashMap<>());
|
|
||||||
}
|
|
||||||
extraMapTmpInfo.get(profession).put(propertyId,propertyValue);
|
|
||||||
}
|
}
|
||||||
sDifferDemonsComonpentsConfig.setExtraAddMap(new HashMap<>(extraMapTmpInfo));
|
extraMapTmpInfo.get(profession).put(propertyId,propertyValue);
|
||||||
}
|
}
|
||||||
|
sDifferDemonsComonpentsConfig.setExtraAddMap(new HashMap<>(extraMapTmpInfo));
|
||||||
sDifferDemonsComonpentsConfigTmp.get(comonpentsId).put(stage,sDifferDemonsComonpentsConfig);
|
sDifferDemonsComonpentsConfigTmp.get(comonpentsId).put(stage,sDifferDemonsComonpentsConfig);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue