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