Task【ID1005747】【猎妖之路优化】猎妖之路优化内容 去掉每日战力快照 取最大战力
parent
f3fca07cf2
commit
f41cf48f3b
|
@ -110,7 +110,7 @@ public class UserManager {
|
|||
teamPosManager.addTeamOfInitPlayer(teamHeros);
|
||||
int force = HeroLogic.getInstance().calTeamTotalForce(user, 1, true);
|
||||
playerManager.setMaxForce(force);
|
||||
user.getExpeditionManager().setForceSnap(force);
|
||||
// user.getExpeditionManager().setForceSnap(force);
|
||||
KtEventUtils.onKtEvent(user, ParamEventBean.UserRegister);
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,6 @@ public class ExpeditionLogic {
|
|||
//每日重置
|
||||
public void flushUserdataEveryDay(User user) throws Exception {
|
||||
ExpeditionManager manager = user.getExpeditionManager();
|
||||
manager.setForceSnap(user.getPlayerInfoManager().getMaxForce());
|
||||
takeAllReward(user);
|
||||
manager.clearExpeditionNodeInfos();
|
||||
manager.setLay(1);
|
||||
|
@ -215,7 +214,7 @@ public class ExpeditionLogic {
|
|||
}
|
||||
int minFoce = sExpeditionSetting.getMatchForce()[0];
|
||||
int manFoce = sExpeditionSetting.getMatchForce()[1];
|
||||
int standerFoce = (int) (user.getExpeditionManager().getForceSnap() * (minFoce / 10000f) + nodeInfo.getLay() / size * (manFoce - minFoce));
|
||||
int standerFoce = (int) (user.getPlayerInfoManager().getMaxForce() * (minFoce / 10000f) + nodeInfo.getLay() / size * (manFoce - minFoce));
|
||||
float randomForce = (standerFoce * ((sExpeditionSetting.getMatchForceRange()[0] + (int) (Math.random() * (sExpeditionSetting.getMatchForceRange()[1] - sExpeditionSetting.getMatchForceRange()[0]))) / 10000f));
|
||||
|
||||
if(nodeInfo.getType()==NODETYPE_ADVANCE){
|
||||
|
|
Loading…
Reference in New Issue