back_recharge
parent
a5f6bf571d
commit
b0fe7b66e2
|
@ -50,6 +50,10 @@ public class CombatLogic {
|
||||||
if(hasAdventure){
|
if(hasAdventure){
|
||||||
offLineTime = (int)((System.currentTimeMillis() -playerInfoManager.getOffLineTime())/1000);
|
offLineTime = (int)((System.currentTimeMillis() -playerInfoManager.getOffLineTime())/1000);
|
||||||
}
|
}
|
||||||
|
if(offLineTime == 0){
|
||||||
|
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.GET_ADVENTURE_INFO_RESPONSE_VALUE,null,true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
FightInfoProto.GetAdventureStateInfoResponse response = FightInfoProto.GetAdventureStateInfoResponse.newBuilder().addAllAdventureStateInfoList(result).setDrop(dropBuilder.build()).setOutTime(offLineTime).
|
FightInfoProto.GetAdventureStateInfoResponse response = FightInfoProto.GetAdventureStateInfoResponse.newBuilder().addAllAdventureStateInfoList(result).setDrop(dropBuilder.build()).setOutTime(offLineTime).
|
||||||
build();
|
build();
|
||||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.GET_ADVENTURE_INFO_RESPONSE_VALUE,response,true);
|
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.GET_ADVENTURE_INFO_RESPONSE_VALUE,response,true);
|
||||||
|
@ -141,7 +145,7 @@ public class CombatLogic {
|
||||||
Map<Integer, AdventureStateInfo> adventureStateInfoMap = adventureManager.getAdventureStateInfoMap();
|
Map<Integer, AdventureStateInfo> adventureStateInfoMap = adventureManager.getAdventureStateInfoMap();
|
||||||
int now = (int)(System.currentTimeMillis()/1000);
|
int now = (int)(System.currentTimeMillis()/1000);
|
||||||
int adventureRefresh = SGameSetting.getGameSetting().getAdventureRefresh();
|
int adventureRefresh = SGameSetting.getGameSetting().getAdventureRefresh();
|
||||||
int offLineTime = (int)(user.getPlayerInfoManager().getOffLineTime());
|
int offLineTime = (int)(user.getPlayerInfoManager().getOffLineTime()/1000);
|
||||||
for(AdventureStateInfo adventureStateInfoTmp:adventureStateInfoMap.values()){
|
for(AdventureStateInfo adventureStateInfoTmp:adventureStateInfoMap.values()){
|
||||||
int positionTmp = adventureStateInfoTmp.getPosition();
|
int positionTmp = adventureStateInfoTmp.getPosition();
|
||||||
if(position!=0 && positionTmp!=position){
|
if(position!=0 && positionTmp!=position){
|
||||||
|
|
Loading…
Reference in New Issue