世界等级 物品掉落 宝物战力修改

lvxinran 2020-09-10 17:46:14 +08:00
parent 77098ce6a1
commit f0f28b8fa6
4 changed files with 20 additions and 14 deletions

View File

@ -142,7 +142,8 @@ public class GetPlayerInfoHandler extends BaseHandler{
int equipPool = user.getEquipManager().getSoulEquipPool();
CommonProto.EndlessInfo.Builder endless = CommonProto.EndlessInfo.newBuilder();
endless.setMapId(MapLogic.getEndlessMapId());
endless.setWorldLevel(1);
ServerConfig config = MongoUtil.getInstence().getMyMongoTemplate().findById(1, ServerConfig.class);
endless.setWorldLevel(config.getWorldLevel());
endless.setBloodScore(RedisUtil.getInstence().getZSetScore(RedisKey.BLOODY_RANK,Integer.toString(1), Integer.toString(userId)).intValue());
List<CommonProto.GiftGoodsInfo> goodsBagInfo = new ArrayList<>(SRechargeCommodityConfig.rechargeCommodityConfigMap.size());
BuyGoodsLogic.getGoodsBagInfo(userId,goodsBagInfo,true);

View File

@ -250,7 +250,7 @@ public class EndlessMap extends AbstractMap{
SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(groupId);
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sMonsterGroup.getRewardgroup(), 1, 1, BIReason.MAP_FAST_FIGHT_REWARD);
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sMonsterGroup.getRewardgroup(), 1, 0, BIReason.MAP_FAST_FIGHT_REWARD);
// if (mapManager.getMonsterId() > 0) {
// BaseBehavior baseBehavior = baseBehaviorMap.get(1);

View File

@ -597,7 +597,7 @@ public class TowerMap extends AbstractMap {
Cell cell = callChief(user);
LOGGER.info("怪物数量:{}",mosterAmount);
int[] bombReward = rewardResult.stream().mapToInt(Integer::valueOf).toArray();
CommonProto.Drop.Builder drop = ItemUtil.drop(user, bombReward, 1,1,BIReason.BOMB_REWARD);
CommonProto.Drop.Builder drop = ItemUtil.drop(user, bombReward, 1,0,BIReason.BOMB_REWARD);
mapManager.updateBombUseCount(mapManager.getTrialInfo().getBombUseTimes()+1);

View File

@ -1468,10 +1468,10 @@ public class HeroLogic{
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;
}
Map<Integer, Map<Integer, SJewelRankupConfig>> rankPoolMap = SJewelRankupConfig.rankupMap.get(config.getRankupPool());
Map<Integer, Map<Integer, SJewelRankupConfig>> levelPoolMap = SJewelRankupConfig.rankupMap.get(config.getLevelupPool());
if(flashing){
if(minLevel==-1){
minLevel = j.getLevel();
@ -1484,10 +1484,15 @@ public class HeroLogic{
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);
int[][] property;
if(levelPoolMap!=null){
property = levelPoolMap.get(1).get(j.getLevel()).getProperty();
combinedAttribute(property,heroAllAttribute);
}
if(rankPoolMap!=null){
property = rankPoolMap.get(2).get(j.getBuildLevel()).getProperty();
combinedAttribute(property,heroAllAttribute);
}
}
//宝器共鸣
if(flashing){
@ -1771,7 +1776,7 @@ public class HeroLogic{
Integer propertyId = item.getKey();
float propertyValue = item.getValue();
if(propertyId == HeroAttributeEnum.EquipForce.getPropertyId()){
// LOGGER.info("the equipScore={}",propertyValue);
LOGGER.info("the equipScore={}",propertyValue);
continue;
}
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByPID(propertyId);
@ -1781,9 +1786,9 @@ public class HeroLogic{
float score = sPropertyConfig.getScore();
result += propertyValue*score;
// LOGGER.info("the propertyId={} the value is ={},propertyValue={},score={}result ={},the value={}",propertyId,propertyValue*score,propertyValue,score,result,propertyValue*score);
LOGGER.info("the propertyId={} the value is ={},propertyValue={},score={}result ={},the value={}",propertyId,propertyValue*score,propertyValue,score,result,propertyValue*score);
}
// System.out.println(result);
System.out.println(result);
return (int)result;
}