宝器相关
parent
8847964740
commit
3603493efa
|
@ -103,7 +103,7 @@ public enum ErrorCode implements IErrorCode {
|
|||
HERO_LEVE_WRONG(68,"level wrong"),
|
||||
HERO_LEVE_DOWN(69,"等级不够"),
|
||||
HERO_UN_MATCH(70,"所选英雄不符合"),
|
||||
HERO_OPT_ONE(71,"法宝智能穿戴一个"),
|
||||
HERO_OPT_ONE(71,"法宝只能穿戴一个"),
|
||||
HERO_USE_LEVE(72,"玩家等级不够,无法装备!"),
|
||||
HERO_LEVE_LOW(73,"妖灵师等级不够,无法装备!"),
|
||||
HERO_HERO_MAX(74,"英雄已达上限"),
|
||||
|
|
|
@ -123,6 +123,8 @@ public interface BIReason {
|
|||
|
||||
int REPLACE_SOUL_REWARD = 69;//替换魂印
|
||||
|
||||
int JEWEL_DECOMPOSE = 70;//分解宝器
|
||||
|
||||
|
||||
int ADVENTURE_UPLEVEL_CONSUME = 1000;//秘境升级
|
||||
int SECRETBOX_CONSUME = 1001;//秘盒抽卡
|
||||
|
@ -224,6 +226,7 @@ public interface BIReason {
|
|||
|
||||
int SOUL_EQUIP_MERGE_CONSUME = 1054;// 合成魂印消耗
|
||||
|
||||
int JEWEL_BUILD_OR_UP_CONSUME = 1055;//宝器升级或精炼消耗
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ public class UseAndPriceItemHandler extends BaseHandler<PlayerInfoProto.UseAndPr
|
|||
CommonProto.Drop.Builder baseBuilder =ItemLogic.getInstance().decomposeHero(iSession,heroIdsList,null, MessageTypeProto.MessageType.USER_AND_PRICE_ITEM_RESPONSE_VALUE);
|
||||
ItemLogic.sendUseAndPriceItemMessage(iSession, MessageTypeProto.MessageType.USER_AND_PRICE_ITEM_RESPONSE_VALUE, baseBuilder);
|
||||
}else if(type==4){//分解宝器
|
||||
ItemLogic.getInstance().decomposeJewel(iSession,equipIdsList);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
|
|||
/**
|
||||
* @author lvxinran
|
||||
* @date 2020/4/26
|
||||
* @discribe
|
||||
* @discribe 宝器强化精炼
|
||||
*/
|
||||
@Component
|
||||
public class JewelBuildHandler extends BaseHandler<PlayerInfoProto.JewelBuildRequest> {
|
||||
|
|
|
@ -1340,7 +1340,64 @@ public class HeroLogic{
|
|||
combinedAttribute(equipTali.getProperty(),heroAllAttribute);
|
||||
}
|
||||
|
||||
//魂印加成
|
||||
//宝器加成
|
||||
Set<String> jewelInfo = hero.getJewelInfo();
|
||||
boolean flashing = jewelInfo.size()==2;
|
||||
int minLevel = -1;
|
||||
int minBuildLevel = -1;
|
||||
for (String jewel: jewelInfo) {
|
||||
|
||||
PropertyItem propertyItem = user.getEquipManager().getEquipMap().get(jewel);
|
||||
if(propertyItem==null)
|
||||
continue;
|
||||
Jewel j = (Jewel)propertyItem;
|
||||
SJewelConfig config = STableManager.getConfig(SJewelConfig.class).get(j.getEquipId());
|
||||
Map<Integer, Map<Integer, SJewelRankupConfig>> poolMap = SJewelRankupConfig.rankupMap.get(config.getRankupPool());
|
||||
if(poolMap==null){
|
||||
continue;
|
||||
}
|
||||
if(flashing){
|
||||
if(minLevel==-1){
|
||||
minLevel = j.getLevel();
|
||||
}else{
|
||||
minLevel = Math.min(j.getLevel(),minLevel);
|
||||
}
|
||||
if(minBuildLevel==-1){
|
||||
minBuildLevel = j.getBuildLevel();
|
||||
}else{
|
||||
minBuildLevel = Math.min(j.getBuildLevel(),minBuildLevel);
|
||||
}
|
||||
}
|
||||
int[][] property = poolMap.get(1).get(j.getLevel()).getProperty();
|
||||
combinedAttribute(property,heroAllAttribute);
|
||||
property = poolMap.get(2).get(j.getBuildLevel()).getProperty();
|
||||
combinedAttribute(property,heroAllAttribute);
|
||||
}
|
||||
//宝器共鸣
|
||||
if(flashing){
|
||||
Map<Integer, SJewelResonanceConfig> config = STableManager.getConfig(SJewelResonanceConfig.class);
|
||||
int levelProperty = 0;
|
||||
int buildLevelProperty = 0;
|
||||
for (SJewelResonanceConfig value:config.values()){
|
||||
if(value.getType()==1){
|
||||
levelProperty = value.getLevel()>minLevel?levelProperty:(value.getId()>levelProperty? value.getId():levelProperty);
|
||||
}
|
||||
if(value.getType()==2){
|
||||
buildLevelProperty = value.getLevel()>minBuildLevel?buildLevelProperty:(value.getId()>buildLevelProperty? value.getId():buildLevelProperty);
|
||||
}
|
||||
}
|
||||
if(levelProperty!=0){
|
||||
// System.out.println("宝器强化共鸣"+"......"+propertyToString(config.get(levelProperty).getProperty()));
|
||||
|
||||
combinedAttribute(config.get(levelProperty).getProperty(),heroAllAttribute);
|
||||
}
|
||||
if(buildLevelProperty!=0){
|
||||
// System.out.println("宝器精炼共鸣"+"......"+propertyToString(config.get(buildLevelProperty).getProperty()));
|
||||
|
||||
combinedAttribute(config.get(buildLevelProperty).getProperty(),heroAllAttribute);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//皮肤、称号加成
|
||||
int decoration = user.getPlayerInfoManager().getDecoration();
|
||||
|
@ -1411,7 +1468,13 @@ public class HeroLogic{
|
|||
return heroAllAttribute;
|
||||
}
|
||||
|
||||
|
||||
private String propertyToString(int[][] property){
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for(int[] pro:property){
|
||||
builder.append(pro[0]).append("#").append(pro[1]).append("\n");
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
public Map<Integer,Integer> calRobotHeroAttribute(SCHero scHero,int heroLevel,int heroBrekId,int[] pokemonIds,int pokemonLevel,boolean isForce){
|
||||
|
|
|
@ -99,10 +99,11 @@ public class ItemLogic {
|
|||
}
|
||||
|
||||
public static void sendUseAndPriceItemMessage(ISession iSession, int msgId, CommonProto.Drop.Builder drop) {
|
||||
PlayerInfoProto.UseAndPriceItemResponse useAndPriceItemResponse = PlayerInfoProto.UseAndPriceItemResponse.newBuilder()
|
||||
.setDrop(drop)
|
||||
.build();
|
||||
MessageUtil.sendMessage(iSession, 1,msgId, useAndPriceItemResponse, true);
|
||||
PlayerInfoProto.UseAndPriceItemResponse.Builder useAndPriceItemResponse = PlayerInfoProto.UseAndPriceItemResponse.newBuilder();
|
||||
if(drop!=null){
|
||||
useAndPriceItemResponse.setDrop(drop);
|
||||
}
|
||||
MessageUtil.sendMessage(iSession, 1,msgId, useAndPriceItemResponse.build(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -179,21 +180,68 @@ public class ItemLogic {
|
|||
CommonProto.Drop.Builder drop = ItemUtil.drop(user,StringUtil.parseFiledInt(reward.toString()),1,0,BIReason.DECOMPOS_EQUIP_REWARD);
|
||||
sendUseAndPriceItemMessage(iSession, msgId, drop);
|
||||
}
|
||||
//宝器分解
|
||||
public void decomposeJewel(ISession session,List<String> jewelList) throws Exception {
|
||||
User user = UserManager.getUser(session.getUid());
|
||||
Map<String, PropertyItem> equipMap = user.getEquipManager().getEquipMap();
|
||||
List<int[]> items = new ArrayList<>();
|
||||
StringBuilder reward = new StringBuilder();
|
||||
for (String jewelId : jewelList) {
|
||||
if(!equipMap.containsKey(jewelId))
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_DECOMPOSE_NO_EQUIP);
|
||||
PropertyItem propertyItem = equipMap.get(jewelId);
|
||||
if(!StringUtil.isEmpty(propertyItem.getHeroId()))
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_DECOMPOSE_SOULE_CANT);
|
||||
Jewel jewel = (Jewel)propertyItem;
|
||||
SJewelConfig config = STableManager.getConfig(SJewelConfig.class).get(propertyItem.getEquipId());
|
||||
if(jewel.getLevel()!=0){
|
||||
Map<Integer, SJewelRankupConfig> rankupConfigMap = SJewelRankupConfig.rankupMap.get(config.getLevelupPool()).get(1);
|
||||
for(SJewelRankupConfig value:rankupConfigMap.values()){
|
||||
if(value.getLevel()<propertyItem.getLevel()){
|
||||
items.addAll(Arrays.asList(value.getUpExpend()));
|
||||
if(value.getJewelExpend().length<1){
|
||||
continue;
|
||||
}
|
||||
for(int[] count:value.getJewelExpend()){
|
||||
if(count[0]==1){
|
||||
items.add(new int[]{jewel.getEquipId(),count[1]});
|
||||
}else{
|
||||
items.add(count);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(jewel.getBuildLevel()!=0){
|
||||
Map<Integer, SJewelRankupConfig> buildUpConfigMap = SJewelRankupConfig.rankupMap.get(config.getRankupPool()).get(2);
|
||||
for(SJewelRankupConfig value:buildUpConfigMap.values()){
|
||||
if(value.getLevel()<jewel.getBuildLevel()){
|
||||
items.addAll(Arrays.asList(value.getUpExpend()));
|
||||
if(value.getJewelExpend().length<1){
|
||||
continue;
|
||||
}
|
||||
for(int[] count:value.getJewelExpend()){
|
||||
if(count[0]==1){
|
||||
items.add(new int[]{jewel.getEquipId(),count[1]});
|
||||
}else{
|
||||
items.add(count);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
SItem sItem = SItem.getsItemMap().get(propertyItem.getEquipId());
|
||||
reward = getStringBuilder(reward, 1, sItem.getResolveReward());
|
||||
}
|
||||
for (String jewelId : jewelList) {
|
||||
user.getEquipManager().remove(jewelId);
|
||||
|
||||
/**
|
||||
* 分解法宝
|
||||
* @param iSession
|
||||
* @param equipIdsList
|
||||
* @throws Exception
|
||||
*/
|
||||
private void decomposeEspecialEquip(ISession iSession, List<String> equipIdsList) throws Exception {
|
||||
int msgId = MessageTypeProto.MessageType.USER_AND_PRICE_ITEM_RESPONSE_VALUE;
|
||||
int uid = iSession.getUid();
|
||||
User user = UserManager.getUser(uid);
|
||||
EquipManager equipManager = user.getEquipManager();
|
||||
Map<Integer,Integer> reward = new HashMap<>();
|
||||
CommonProto.Drop.Builder drop = ItemUtil.dropMap(user,reward,BIReason.DECOMPOS_EQUIP_REWARD);
|
||||
sendUseAndPriceItemMessage(iSession, msgId, drop);
|
||||
}
|
||||
|
||||
int[][] dropItems = items.toArray(new int[items.size()][]);
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, StringUtil.parseFiledInt(reward.toString()), 1, 0,BIReason.JEWEL_DECOMPOSE);
|
||||
ItemUtil.drop(user,dropItems,drop,BIReason.JEWEL_DECOMPOSE);
|
||||
sendUseAndPriceItemMessage(session,MessageTypeProto.MessageType.USER_AND_PRICE_ITEM_RESPONSE_VALUE,drop);
|
||||
}
|
||||
|
||||
private ErrorCode checkEquipResolve(List<String> equipIdsList,EquipManager equipManager) {
|
||||
|
@ -433,92 +481,6 @@ public class ItemLogic {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 占星
|
||||
*
|
||||
* @param session session
|
||||
* @param time 次数 50一档
|
||||
* @throws Exception
|
||||
*/
|
||||
public void soulEquipRand(ISession session, int time) throws Exception {
|
||||
int uid = session.getUid();
|
||||
User user = UserManager.getUser(uid);
|
||||
int currentPool = user.getEquipManager().getSoulEquipPool();
|
||||
|
||||
SEquipTalismanaLottery lottery = STableManager.getConfig(SEquipTalismanaLottery.class).get(currentPool);
|
||||
if (null == lottery) {
|
||||
throw new Exception("SEquipTalismanaLottery 配置不存在" + currentPool);
|
||||
}
|
||||
//50cost
|
||||
int[][] tempCost = new int[1][];
|
||||
if (time == 50) {
|
||||
tempCost[0] = lottery.getRepeatedlyCost();
|
||||
}
|
||||
|
||||
//cost and drop
|
||||
Map<Integer, Integer> itemMap = new HashMap<>();
|
||||
ArrayList<Integer> droplist = new ArrayList<>();
|
||||
int realTime = 0;
|
||||
int randTime = time == 1 ? 1 : 50;
|
||||
for (int i = 0; i < randTime; i++) {
|
||||
SEquipTalismanaLottery lotteryIn = STableManager.getConfig(SEquipTalismanaLottery.class).get(currentPool);
|
||||
if (null == lotteryIn) {
|
||||
throw new Exception("SEquipTalismanaLottery 配置不存在" + currentPool);
|
||||
}
|
||||
if (time != 50) {
|
||||
int itemId = lotteryIn.getCostItem()[0];
|
||||
int itemNum = lotteryIn.getCostItem()[1];
|
||||
itemMap.merge(itemId, itemNum, (a, b) -> b + a);
|
||||
boolean result = ItemUtil.checkCost(user, itemMap);
|
||||
if (!result) {
|
||||
itemMap.merge(itemId, itemNum, (a, b) -> a - b);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
currentPool = MathUtils.randomFromWeight(lotteryIn.getProbability());
|
||||
SEquipTalismanaLottery nextLotteryIn = STableManager.getConfig(SEquipTalismanaLottery.class).get(currentPool);
|
||||
if (null == nextLotteryIn) {
|
||||
throw new Exception("SEquipTalismanaLottery 配置不存在" + currentPool);
|
||||
}
|
||||
droplist.add(MathUtils.randomFromWeight(nextLotteryIn.getDrop()));
|
||||
realTime++;
|
||||
}
|
||||
if (time != 50) {
|
||||
tempCost = new int[itemMap.size()][2];
|
||||
int index = 0;
|
||||
for (Map.Entry<Integer, Integer> entry : itemMap.entrySet()) {
|
||||
tempCost[index][0] = entry.getKey();
|
||||
tempCost[index][1] = entry.getValue();
|
||||
index++;
|
||||
}
|
||||
}
|
||||
|
||||
boolean enoughCost = ItemUtil.itemCost(user, tempCost, BIReason.RANDOM_SOULEQUIP_CONSUME, 0);
|
||||
if (!enoughCost) {
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
if (realTime == 0) {
|
||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.SOUL_RAND_EQUIP_RESPONSE_VALUE, HeroInfoProto.SoulRandResponse.newBuilder().setTime(0).build(), true);
|
||||
return;
|
||||
}
|
||||
user.getEquipManager().setSoulEquipPool(currentPool);
|
||||
int[] dropArray = droplist.stream().mapToInt(Integer::valueOf).toArray();
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, dropArray, 1, 0, BIReason.RANDOM_SOULEQUIP);
|
||||
|
||||
HeroInfoProto.SoulRandResponse.Builder builder = HeroInfoProto.SoulRandResponse.newBuilder();
|
||||
builder.setDrop(drop);
|
||||
builder.setPos(currentPool);
|
||||
builder.setTime(realTime);
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.FIND_STAR, time);
|
||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.SOUL_RAND_EQUIP_RESPONSE_VALUE, builder.build(), true);
|
||||
}
|
||||
|
||||
|
||||
public static int getSoulCfgIdByEquipId(int equipId,int leve){
|
||||
return equipId*100+leve;
|
||||
}
|
||||
|
||||
public void addItemLog(ItemLog itemLog){
|
||||
ItemLogUtil.addLogQueue(itemLog);
|
||||
}
|
||||
|
@ -537,10 +499,18 @@ public class ItemLogic {
|
|||
return equiplist;
|
||||
}
|
||||
|
||||
/**
|
||||
* 宝器强化 精炼
|
||||
* @param iSession
|
||||
* @param type
|
||||
* @param jId
|
||||
* @param items
|
||||
* @throws Exception
|
||||
*/
|
||||
public void jewelBuild(ISession iSession,int type,String jId,List<String> items) throws Exception {
|
||||
User user = UserManager.getUser(iSession.getUid());
|
||||
PropertyItem propertyItem = user.getEquipManager().getEquipMap().get(jId);
|
||||
if(propertyItem==null||!(propertyItem instanceof Jewel)){
|
||||
if(!(propertyItem instanceof Jewel)){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
|
||||
|
@ -550,20 +520,67 @@ public class ItemLogic {
|
|||
if(config==null){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
int level;
|
||||
int poolType;
|
||||
if(type==1){//强化
|
||||
if(jewel.getLevel()>=config.getMax()[0]){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
level = jewel.getLevel();
|
||||
poolType = config.getLevelupPool();
|
||||
}else{//精炼
|
||||
if(jewel.getBuildLevel()>=config.getMax()[1]){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
level = jewel.getBuildLevel();
|
||||
poolType = config.getRankupPool();
|
||||
|
||||
}
|
||||
SJewelRankupConfig sJewelRankupConfig = SJewelRankupConfig.rankupMap.get(poolType).get(type).get(level);
|
||||
if(items!=null&&items.size()>0){
|
||||
int[][] jewelExpend = sJewelRankupConfig.getJewelExpend();
|
||||
Map<Integer,Integer> expendMap = new HashMap<>();
|
||||
for(int[] expend:jewelExpend){
|
||||
expendMap.put(expend[0]==1?jewel.getEquipId():expend[0],expend[1]);
|
||||
}
|
||||
for(String item:items){
|
||||
PropertyItem proItem = user.getEquipManager().getEquipMap().get(item);
|
||||
if(proItem==null){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
if(!StringUtil.isEmpty(proItem.getHeroId())){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
Integer count= expendMap.get(proItem.getEquipId());
|
||||
if(count==null) {
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
expendMap.put(proItem.getEquipId(),count-1);
|
||||
}
|
||||
for(Integer values:expendMap.values()){
|
||||
if(values!=0)
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
}else{
|
||||
if (sJewelRankupConfig.getJewelExpend().length>0){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for(String item:items){
|
||||
user.getEquipManager().getEquipMap().remove(item);
|
||||
}
|
||||
boolean itemCost = ItemUtil.itemCost(user, sJewelRankupConfig.getUpExpend(), BIReason.JEWEL_BUILD_OR_UP_CONSUME, 1);
|
||||
if(!itemCost){
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(type==1){//强化
|
||||
jewel.setLevel(jewel.getLevel()+1);
|
||||
}else{//精炼
|
||||
jewel.setBuildLevel(jewel.getBuildLevel()+1);
|
||||
}
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.JEWEL_BUILD_RESPONSE_VALUE,null,true);
|
||||
|
||||
}
|
||||
|
|
|
@ -973,6 +973,7 @@ public class ItemUtil {
|
|||
}
|
||||
StringBuilder reward = new StringBuilder();
|
||||
List<CommonProto.Equip> equipList = new CopyOnWriteArrayList<>();
|
||||
List<CommonProto.Equip> jewelList = new CopyOnWriteArrayList<>();
|
||||
for (Map.Entry<Integer, Integer> entry : equipMap.entrySet()) {
|
||||
int itemType = SItem.getsItemMap().get(entry.getKey()).getItemType();
|
||||
if(!filter.contains(itemType)){
|
||||
|
@ -988,7 +989,7 @@ public class ItemUtil {
|
|||
}
|
||||
continue;
|
||||
}
|
||||
addEquip(user, entry.getKey(), equipList);
|
||||
addEquip(user, entry.getKey(), equipList,jewelList);
|
||||
KtEventUtils.onKtEvent(user, ParamEventBean.UserItemEvent,reason,GlobalsDef.addReason,entry.getKey(),1,-1);
|
||||
}
|
||||
}
|
||||
|
@ -999,6 +1000,7 @@ public class ItemUtil {
|
|||
MessageUtil.nofityBagIsFull(user);
|
||||
}
|
||||
dropBuilder.addAllEquipId(equipList);
|
||||
dropBuilder.addAllSoulEquip(jewelList);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1021,7 +1023,7 @@ public class ItemUtil {
|
|||
return reward.toString();
|
||||
}
|
||||
|
||||
private static void addEquip(User user,int equipId ,List<CommonProto.Equip> equipList) throws Exception {
|
||||
private static void addEquip(User user,int equipId ,List<CommonProto.Equip> equipList,List<CommonProto.Equip> jewelList) throws Exception {
|
||||
EquipManager equipManager = user.getEquipManager();
|
||||
SItem item = SItem.getsItemMap().get(equipId);
|
||||
int itemType = item.getItemType();
|
||||
|
@ -1035,7 +1037,7 @@ public class ItemUtil {
|
|||
if(itemType==GlobalItemType.JEWEL){
|
||||
Jewel equip = new Jewel(user.getId(),equipId);
|
||||
equipManager.addEquip(user,equip);
|
||||
equipList.add(CBean2Proto.getEquipProto(equip));
|
||||
jewelList.add(CBean2Proto.getEquipProto(equip));
|
||||
msgTem="lamp_lottery_equip_content";
|
||||
}
|
||||
if (item.getQuantity() >= SSpecialConfig.getIntegerValue(msgTem+"_parm")) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public class SJewelRankupConfig implements BaseConfig {
|
|||
|
||||
private int[][] upExpend;
|
||||
|
||||
private static Map<Integer,Map<Integer,Map<Integer,SJewelRankupConfig>>> rankupMap = new HashMap<>();
|
||||
public static Map<Integer,Map<Integer,Map<Integer,SJewelRankupConfig>>> rankupMap = new HashMap<>();
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
@ -32,7 +32,6 @@ public class SJewelRankupConfig implements BaseConfig {
|
|||
rankupMap.computeIfAbsent(config.getPoolID(), k -> new HashMap<>());
|
||||
rankupMap.get(config.getPoolID()).computeIfAbsent(config.getType(),k->new HashMap<>());
|
||||
rankupMap.get(config.getPoolID()).get(config.getType()).put(config.getLevel(),config);
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue