牛气冲天活动

master_otnew
grimm 2024-01-25 18:17:27 +08:00
parent 6ab029cff4
commit 37eca15b46
2 changed files with 2 additions and 3 deletions

View File

@ -169,7 +169,6 @@ public class UserManager {
user.getUserMissionManager().onGameEvent(user, GameEvent.BEGINNER);
user.getUserMissionManager().onGameEvent(user, GameEvent.VIP_LEVLUP, MissionType.VIP_LEVEL,0);
Poster.getPoster().dispatchEvent(new NewWelfareEvent(user, NewWelfareTypeEnum.LOGIN_TIMES.getType(),1));
ReportUtil.onReportEvent(user, ReportEventEnum.CREATE_ROLE.getType());//先发送注册事件
ActivityLogic.getInstance().newPlayerOpenActivityMission(user);
ItemUtil.drop(user,gameSetting.getBornItem(), BIReason.USER_BORN_REWARD);
HeroManager heroManager = user.getHeroManager();
@ -182,7 +181,7 @@ public class UserManager {
playerManager.setMaxForce(force);
user.getExpeditionManager().setExpeditionLeve(1);
CrossServiceLogic.getInstance().saveBasicPlayerToRedis(user);//初始化角色
KtEventUtils.onKtEvent(user, ParamEventBean.UserRegister);
ReportUtil.onReportEvent(user, ReportEventEnum.CREATE_ROLE.getType());//先发送注册事件
}
public static User getUser(int uid,boolean canNull) throws Exception {

View File

@ -6376,7 +6376,7 @@ public class HeroLogic {
}
// 避免zero异常
if (count == 0) {
throw new ErrorCodeException(ErrorCode.SYS_ERROR_CODE);
count = averageNum;
}
return count / averageNum;
}