热更公会bug
parent
ec1d89d998
commit
3ded8132e3
|
@ -2,6 +2,8 @@
|
||||||
"version":"6",
|
"version":"6",
|
||||||
"classes":[
|
"classes":[
|
||||||
{"name":"GuildLogic.class","fullName":"com.ljsd.jieling.logic.family.GuildLogic"},
|
{"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"}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -3402,7 +3402,7 @@ public class HeroLogic {
|
||||||
public int calForce(Map<Integer, Long> heroAllAttribute) {
|
public int calForce(Map<Integer, Long> heroAllAttribute) {
|
||||||
float forceNum = 0;//基础值
|
float forceNum = 0;//基础值
|
||||||
float forceAdd = 0;//加成值
|
float forceAdd = 0;//加成值
|
||||||
LOGGER.info("战力基础属性=================={}",heroAllAttribute);
|
// LOGGER.info("战力基础属性=================={}",heroAllAttribute);
|
||||||
//战力计算
|
//战力计算
|
||||||
for(Map.Entry<Integer, Long> item : heroAllAttribute.entrySet()){
|
for(Map.Entry<Integer, Long> item : heroAllAttribute.entrySet()){
|
||||||
Integer propertyId = item.getKey();
|
Integer propertyId = item.getKey();
|
||||||
|
@ -3417,7 +3417,7 @@ public class HeroLogic {
|
||||||
}
|
}
|
||||||
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
|
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
|
||||||
forceAdd += propertyValue * sPropertyConfig.getScore() / 10000;
|
forceAdd += propertyValue * sPropertyConfig.getScore() / 10000;
|
||||||
LOGGER.info("战力加成值 ================> {},{}" , propertyId, propertyValue * sPropertyConfig.getScore() / 10000);
|
// LOGGER.info("战力加成值 ================> {},{}" , propertyId, propertyValue * sPropertyConfig.getScore() / 10000);
|
||||||
}else{
|
}else{
|
||||||
forceNum += propertyValue * sPropertyConfig.getScore();
|
forceNum += propertyValue * sPropertyConfig.getScore();
|
||||||
}
|
}
|
||||||
|
@ -3425,7 +3425,7 @@ public class HeroLogic {
|
||||||
// BigDecimal bg = new BigDecimal(forceAdd).setScale(4, RoundingMode.UP);
|
// BigDecimal bg = new BigDecimal(forceAdd).setScale(4, RoundingMode.UP);
|
||||||
// float v = bg.floatValue();
|
// float v = bg.floatValue();
|
||||||
float result = (forceAdd + 1) * forceNum;
|
float result = (forceAdd + 1) * forceNum;
|
||||||
LOGGER.info("战力总结果==============={},{},{}",forceNum,forceAdd,result);
|
// LOGGER.info("战力总结果==============={},{},{}",forceNum,forceAdd,result);
|
||||||
return (int)result;
|
return (int)result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1805,7 +1805,7 @@ public class PlayerLogic {
|
||||||
}
|
}
|
||||||
// JSONObject jsonObject = JSONObject.parseObject(userStr);
|
// JSONObject jsonObject = JSONObject.parseObject(userStr);
|
||||||
// jsonObject.remove("activityManager");
|
// jsonObject.remove("activityManager");
|
||||||
LOGGER.info("callback=> rPCClient is =>{}",userStr);
|
// LOGGER.info("callback=> rPCClient is =>{}",userStr);
|
||||||
return gson.fromJson(userStr, User.class);
|
return gson.fromJson(userStr, User.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue