热更公会bug

master_ob2
PC-202302260912\Administrator 2023-08-25 11:23:41 +08:00
parent ec1d89d998
commit 3ded8132e3
3 changed files with 7 additions and 5 deletions

View File

@ -2,6 +2,8 @@
"version":"6",
"classes":[
{"name":"GuildLogic.class","fullName":"com.ljsd.jieling.logic.family.GuildLogic"},
{"name":"GuilidManager.class","fullName":"com.ljsd.jieling.logic.dao.GuilidManager"}
{"name":"GuilidManager.class","fullName":"com.ljsd.jieling.logic.dao.GuilidManager"},
{"name":"PlayerLogic.class","fullName":"com.ljsd.jieling.logic.player.PlayerLogic"},
{"name":"HeroLogic.class","fullName":"com.ljsd.jieling.logic.hero.HeroLogic"}
]
}

View File

@ -3402,7 +3402,7 @@ public class HeroLogic {
public int calForce(Map<Integer, Long> heroAllAttribute) {
float forceNum = 0;//基础值
float forceAdd = 0;//加成值
LOGGER.info("战力基础属性=================={}",heroAllAttribute);
// LOGGER.info("战力基础属性=================={}",heroAllAttribute);
//战力计算
for(Map.Entry<Integer, Long> item : heroAllAttribute.entrySet()){
Integer propertyId = item.getKey();
@ -3417,7 +3417,7 @@ public class HeroLogic {
}
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
forceAdd += propertyValue * sPropertyConfig.getScore() / 10000;
LOGGER.info("战力加成值 ================> {},{}" , propertyId, propertyValue * sPropertyConfig.getScore() / 10000);
// LOGGER.info("战力加成值 ================> {},{}" , propertyId, propertyValue * sPropertyConfig.getScore() / 10000);
}else{
forceNum += propertyValue * sPropertyConfig.getScore();
}
@ -3425,7 +3425,7 @@ public class HeroLogic {
// BigDecimal bg = new BigDecimal(forceAdd).setScale(4, RoundingMode.UP);
// float v = bg.floatValue();
float result = (forceAdd + 1) * forceNum;
LOGGER.info("战力总结果==============={}{}{}",forceNum,forceAdd,result);
// LOGGER.info("战力总结果==============={}{}{}",forceNum,forceAdd,result);
return (int)result;
}

View File

@ -1805,7 +1805,7 @@ public class PlayerLogic {
}
// JSONObject jsonObject = JSONObject.parseObject(userStr);
// jsonObject.remove("activityManager");
LOGGER.info("callback=> rPCClient is =>{}",userStr);
// LOGGER.info("callback=> rPCClient is =>{}",userStr);
return gson.fromJson(userStr, User.class);
}