mission open
parent
eb81581ee1
commit
c8b8961ac4
|
@ -1895,7 +1895,7 @@ public class MapLogic {
|
|||
rechargeInfo.setLevelBagMap(levelBagMap);
|
||||
BuyGoodsLogic.sendGiftGooodsIndication(user.getId());
|
||||
}
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.USER_LEVELUP,playerInfoManager.getLevel());
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.USER_LEVELUP,oldLevel+1,playerInfoManager.getLevel());
|
||||
}
|
||||
if (itemNum > 0) {
|
||||
String reward = Global.STAMINA + "#" + itemNum;
|
||||
|
|
|
@ -97,7 +97,7 @@ public class UserManager {
|
|||
playerManager.setMaxForce(force);
|
||||
PlayerLogic.getInstance().vipflushEveryDay(user,null);
|
||||
ActivityLogic.getInstance().newPlayerOpenActivityMission(user);
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.USER_LEVELUP,1);
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.USER_LEVELUP,0,1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -50,6 +50,12 @@ public class UserMissionManager extends MongoBase {
|
|||
dailyCumulationData.reset();
|
||||
updateString("dailyCumulationData",dailyCumulationData);
|
||||
}
|
||||
for(Integer missionId : missionIds){
|
||||
MissionStateChangeInfo doingInfo = new MissionStateChangeInfo(missionId,
|
||||
MissionState.DOING, null);
|
||||
missionTypeEnumListMap.get(GameMisionType.VIPMISSION).add(doingInfo);
|
||||
}
|
||||
updateString("dailyCumulationData",dailyCumulationData);
|
||||
dailyMissionIdsType.getDoingMissionIds().addAll(missionIds);
|
||||
updateString("dailyMissionIdsType",dailyMissionIdsType);
|
||||
break;
|
||||
|
|
|
@ -1055,7 +1055,7 @@ public class HeroLogic {
|
|||
propertyValue = propertyValue / 10000;
|
||||
}
|
||||
float score = sPropertyConfig.getScore();
|
||||
LOGGER.info("the value is ={},propertyValue={},score={}",propertyValue*score,propertyValue,score);
|
||||
// LOGGER.info("the value is ={},propertyValue={},score={}",propertyValue*score,propertyValue,score);
|
||||
result += propertyValue*score;
|
||||
}
|
||||
return (int)result;
|
||||
|
|
|
@ -15,8 +15,14 @@ public class UserLevelEventProcessor implements BaseGameEventProcessor{
|
|||
public void onGameEvent(User user, Map<GameMisionType, List<MissionStateChangeInfo>> misionTypeListMap, GameEvent event, Object... parm) throws Exception {
|
||||
int openRule = SGlobalSystemConfig.getsGlobalSystemConfigByFunctionId(FunctionIdEnum.DailyTasks).getOpenRules()[1];
|
||||
int level= (int)parm[0];
|
||||
if(level==openRule){
|
||||
user.getUserMissionManager().onGameEvent(user,GameEvent.DAILY_REFRESH,1);
|
||||
int upToLevel= (int)parm[1];
|
||||
if(level>=openRule){
|
||||
for(;level<=upToLevel;level++){
|
||||
if(level==openRule){
|
||||
user.getUserMissionManager().onGameEvent(user,GameEvent.DAILY_REFRESH,1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue