命石一键合成bug修改
parent
2fcf50d33e
commit
23b2c9285e
|
@ -145,6 +145,10 @@ public class LifeStoneUpRequestHandler extends BaseHandler<HeroInfoProto.LifeSto
|
|||
if (costItemMap.containsKey(costGoldId)) {
|
||||
costGoldNum = costItemMap.get(costGoldId);
|
||||
}
|
||||
int[]minCostArr=gemConfigMap.get(1).getUpgradeCost();
|
||||
if (itemManager.getItem(minCostArr[0]).getItemNum()-costGoldNum<minCostArr[1]){
|
||||
return false;
|
||||
}
|
||||
for (Map.Entry<Integer, SGemConfig> gemConfigEntry : gemConfigMap.entrySet()) {
|
||||
SGemConfig gemConfig = gemConfigEntry.getValue();
|
||||
///升到满级
|
||||
|
@ -196,7 +200,7 @@ public class LifeStoneUpRequestHandler extends BaseHandler<HeroInfoProto.LifeSto
|
|||
costGoldNum += upNum * costGold[1];
|
||||
//刷新消耗金币数量
|
||||
costItemMap.put(costGold[0], costGoldNum);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
//计算累计消耗金币
|
||||
costGoldNum += needCostGoldNum;
|
||||
|
|
Loading…
Reference in New Issue