奖池修改

lvxinran 2021-07-02 20:19:33 +08:00
parent 610087bc1d
commit d72acbcea7
1 changed files with 3 additions and 3 deletions

View File

@ -1613,13 +1613,13 @@ public class ActivityLogic implements IEventHandler{
// 根据玩家选取得up奖励id获取详细信息
int[] incs = up.get(upRewardId);
//拿到当前阵营
int camp = incs[3];
int camp = incs[4];
// 排序权重map
Map<Integer, Integer> weight = new TreeMap<>(SWishActivityPool.weight.get(camp));
// 常驻卡池
Map<Integer, SWishActivityPool> poolMap = SWishActivityPool.map;
// up奖励id得权重加入到整个卡池权重中
weight.put(weight.size()+1,incs[2]);
// up奖励id得权重加入到整个卡池权重中
weight.put(-1,incs[2]);
// 计算总权重
int totalWeight = weight.values().stream().mapToInt(Integer::intValue).sum();