From 5e3b41c2df841f74926fd0bc44b7a2d457b36753 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Fri, 10 Sep 2021 14:39:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=AD=97=E6=AE=B5=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/config/SArenaRobotConfig.java | 84 ++++++++++++++++++- .../java/config/SMServerArenaSetting.java | 10 +++ 2 files changed, 93 insertions(+), 1 deletion(-) diff --git a/tablemanager/src/main/java/config/SArenaRobotConfig.java b/tablemanager/src/main/java/config/SArenaRobotConfig.java index a72e0ec2c..3b5abe2aa 100644 --- a/tablemanager/src/main/java/config/SArenaRobotConfig.java +++ b/tablemanager/src/main/java/config/SArenaRobotConfig.java @@ -21,8 +21,16 @@ public class SArenaRobotConfig implements BaseConfig { private int[] roleId; + private int[] roleId2; + + private int[] roleId3; + private List heroList; + private List heroList2; + + private List 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 heroMapList; + private Map heroMapList2; + private Map heroMapList3; + private static Map> sArenaRobotConfigByPoolMap; private static Map 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 heroListTmp2 = new ArrayList<>(roleId.length); + for(int heroId : roleId2){ + heroListTmp2.add(heroId); + } + //第三个队伍 + int[] roleId3 = sArenaRobotConfig.getRoleId2(); + List 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 heroMapList) { this.heroMapList = heroMapList; } + + public Map getHeroMapList2() { + return heroMapList2; + } + + public void setHeroMapList2(Map heroMapList2) { + this.heroMapList2 = heroMapList2; + } + + public Map getHeroMapList3() { + return heroMapList3; + } + + public void setHeroMapList3(Map heroMapList3) { + this.heroMapList3 = heroMapList3; + } + + public List getHeroList2() { + return heroList2; + } + + public void setHeroList2(List heroList2) { + this.heroList2 = heroList2; + } + + public List getHeroList3() { + return heroList3; + } + + public void setHeroList3(List heroList3) { + this.heroList3 = heroList3; + } + + public int getMsScroe() { + return msScroe; + } + + public int getYxldTotalForce() { + return yxldTotalForce; + } + + public void setYxldTotalForce(int yxldTotalForce) { + this.yxldTotalForce = yxldTotalForce; + } } \ No newline at end of file diff --git a/tablemanager/src/main/java/config/SMServerArenaSetting.java b/tablemanager/src/main/java/config/SMServerArenaSetting.java index aad0f7d1d..72705738c 100644 --- a/tablemanager/src/main/java/config/SMServerArenaSetting.java +++ b/tablemanager/src/main/java/config/SMServerArenaSetting.java @@ -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; + } } \ No newline at end of file