表字段添加
parent
d1544c7cee
commit
5e3b41c2df
|
@ -21,8 +21,16 @@ public class SArenaRobotConfig implements BaseConfig {
|
|||
|
||||
private int[] roleId;
|
||||
|
||||
private int[] roleId2;
|
||||
|
||||
private int[] roleId3;
|
||||
|
||||
private List<Integer> heroList;
|
||||
|
||||
private List<Integer> heroList2;
|
||||
|
||||
private List<Integer> heroList3;
|
||||
|
||||
private int roleLv;
|
||||
|
||||
private int[] differDemonsId;
|
||||
|
@ -33,6 +41,8 @@ public class SArenaRobotConfig implements BaseConfig {
|
|||
|
||||
private int totalForce;
|
||||
|
||||
private int yxldTotalForce;
|
||||
|
||||
private int breakId;
|
||||
|
||||
private int starBreakId;
|
||||
|
@ -41,10 +51,16 @@ public class SArenaRobotConfig implements BaseConfig {
|
|||
|
||||
private Map<Integer, CommonProto.Hero> heroMapList;
|
||||
|
||||
private Map<Integer, CommonProto.Hero> heroMapList2;
|
||||
private Map<Integer, CommonProto.Hero> heroMapList3;
|
||||
|
||||
private static Map<Integer, List<SArenaRobotConfig>> sArenaRobotConfigByPoolMap;
|
||||
|
||||
private static Map<Integer, SArenaRobotConfig> sArenaRobotConfigMap;
|
||||
|
||||
private int msScroe;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
@ -60,7 +76,21 @@ public class SArenaRobotConfig implements BaseConfig {
|
|||
for(int heroId : roleId){
|
||||
heroListTmp.add(heroId);
|
||||
}
|
||||
//玉虚论道第二个队伍
|
||||
int[] roleId2 = sArenaRobotConfig.getRoleId2();
|
||||
List<Integer> heroListTmp2 = new ArrayList<>(roleId.length);
|
||||
for(int heroId : roleId2){
|
||||
heroListTmp2.add(heroId);
|
||||
}
|
||||
//第三个队伍
|
||||
int[] roleId3 = sArenaRobotConfig.getRoleId2();
|
||||
List<Integer> heroListTmp3 = new ArrayList<>(roleId.length);
|
||||
for(int heroId : roleId3){
|
||||
heroListTmp3.add(heroId);
|
||||
}
|
||||
sArenaRobotConfig.setHeroList(heroListTmp);
|
||||
sArenaRobotConfig.setHeroList2(heroListTmp2);
|
||||
sArenaRobotConfig.setHeroList3(heroListTmp3);
|
||||
result.get(poolId).add(sArenaRobotConfig);
|
||||
}
|
||||
sArenaRobotConfigByPoolMap = result;
|
||||
|
@ -96,7 +126,15 @@ public class SArenaRobotConfig implements BaseConfig {
|
|||
return roleId;
|
||||
}
|
||||
|
||||
public int getRoleLv() {
|
||||
public int[] getRoleId2() {
|
||||
return roleId2;
|
||||
}
|
||||
|
||||
public int[] getRoleId3() {
|
||||
return roleId3;
|
||||
}
|
||||
|
||||
public int getRoleLv() {
|
||||
return roleLv;
|
||||
}
|
||||
|
||||
|
@ -139,4 +177,48 @@ public class SArenaRobotConfig implements BaseConfig {
|
|||
public void setHeroMapList(Map<Integer, CommonProto.Hero> heroMapList) {
|
||||
this.heroMapList = heroMapList;
|
||||
}
|
||||
|
||||
public Map<Integer, CommonProto.Hero> getHeroMapList2() {
|
||||
return heroMapList2;
|
||||
}
|
||||
|
||||
public void setHeroMapList2(Map<Integer, CommonProto.Hero> heroMapList2) {
|
||||
this.heroMapList2 = heroMapList2;
|
||||
}
|
||||
|
||||
public Map<Integer, CommonProto.Hero> getHeroMapList3() {
|
||||
return heroMapList3;
|
||||
}
|
||||
|
||||
public void setHeroMapList3(Map<Integer, CommonProto.Hero> heroMapList3) {
|
||||
this.heroMapList3 = heroMapList3;
|
||||
}
|
||||
|
||||
public List<Integer> getHeroList2() {
|
||||
return heroList2;
|
||||
}
|
||||
|
||||
public void setHeroList2(List<Integer> heroList2) {
|
||||
this.heroList2 = heroList2;
|
||||
}
|
||||
|
||||
public List<Integer> getHeroList3() {
|
||||
return heroList3;
|
||||
}
|
||||
|
||||
public void setHeroList3(List<Integer> heroList3) {
|
||||
this.heroList3 = heroList3;
|
||||
}
|
||||
|
||||
public int getMsScroe() {
|
||||
return msScroe;
|
||||
}
|
||||
|
||||
public int getYxldTotalForce() {
|
||||
return yxldTotalForce;
|
||||
}
|
||||
|
||||
public void setYxldTotalForce(int yxldTotalForce) {
|
||||
this.yxldTotalForce = yxldTotalForce;
|
||||
}
|
||||
}
|
|
@ -44,6 +44,8 @@ public class SMServerArenaSetting implements BaseConfig {
|
|||
|
||||
private int worldLevLimit;
|
||||
|
||||
private int[] privId;
|
||||
private int treasureOpen;
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
@ -122,4 +124,12 @@ public class SMServerArenaSetting implements BaseConfig {
|
|||
public int getWorldLevLimit() {
|
||||
return worldLevLimit;
|
||||
}
|
||||
|
||||
public int[] getPrivId() {
|
||||
return privId;
|
||||
}
|
||||
|
||||
public int getTreasureOpen() {
|
||||
return treasureOpen;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue