礼物装备
parent
89c41eec78
commit
10f915d00c
|
@ -3,9 +3,9 @@ package com.ljsd.jieling.handler.pokemon;
|
||||||
import com.ljsd.jieling.handler.BaseHandler;
|
import com.ljsd.jieling.handler.BaseHandler;
|
||||||
import com.ljsd.jieling.logic.hero.HeroLogic;
|
import com.ljsd.jieling.logic.hero.HeroLogic;
|
||||||
import com.ljsd.jieling.network.session.ISession;
|
import com.ljsd.jieling.network.session.ISession;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
import rpc.protocols.HeroInfoProto;
|
import rpc.protocols.HeroInfoProto;
|
||||||
import rpc.protocols.MessageTypeProto;
|
import rpc.protocols.MessageTypeProto;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,7 @@ public class ExplorerMapLogic {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Map<Integer, ExplorerInfo> explorer = user.getPlayerInfoManager().getExplorer();
|
Map<Integer, ExplorerInfo> explorer = user.getPlayerInfoManager().getExplorer();
|
||||||
if (explorer == null || explorer.size() == 0) {
|
if (explorer == null || explorer.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
List<Integer> delayId = new ArrayList<>();
|
List<Integer> delayId = new ArrayList<>();
|
||||||
|
@ -339,7 +339,7 @@ public class ExplorerMapLogic {
|
||||||
String teamName = TeamEnum.getEnumByteamId(id).getRemarks();
|
String teamName = TeamEnum.getEnumByteamId(id).getRemarks();
|
||||||
String mapName = exploreConfig.getName();
|
String mapName = exploreConfig.getName();
|
||||||
int hour = explorer.get(id).getSendTime() / 3600;
|
int hour = explorer.get(id).getSendTime() / 3600;
|
||||||
if (explorer.get(id).getDropMap().size() == 0 || explorer.get(id).getDropMap() == null) {
|
if (explorer.get(id).getDropMap().isEmpty() || explorer.get(id).getDropMap() == null) {
|
||||||
LOGGER.info("到期啥都没得到发邮件:" + uid);
|
LOGGER.info("到期啥都没得到发邮件:" + uid);
|
||||||
String title = SErrorCodeEerverConfig.getI18NMessage("explorefail_mail_title");
|
String title = SErrorCodeEerverConfig.getI18NMessage("explorefail_mail_title");
|
||||||
String content = SErrorCodeEerverConfig.getFormatMessage("explorefail_mail_txt", new Object[]{teamName, mapName, hour});
|
String content = SErrorCodeEerverConfig.getFormatMessage("explorefail_mail_txt", new Object[]{teamName, mapName, hour});
|
||||||
|
@ -365,7 +365,7 @@ public class ExplorerMapLogic {
|
||||||
MessageUtil.sendIndicationMessage(sess, 1, MessageTypeProto.MessageType.ExplorerMapIndicationResponse_VALUE, indication.build(), true);
|
MessageUtil.sendIndicationMessage(sess, 1, MessageTypeProto.MessageType.ExplorerMapIndicationResponse_VALUE, indication.build(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (delayId.size() > 0) {
|
if (!delayId.isEmpty()) {
|
||||||
user.getPlayerInfoManager().setExplorer(explorer);
|
user.getPlayerInfoManager().setExplorer(explorer);
|
||||||
}
|
}
|
||||||
//探索有消耗 整点刷出随机事件
|
//探索有消耗 整点刷出随机事件
|
||||||
|
|
|
@ -499,7 +499,7 @@ public class FightDataUtil {
|
||||||
return skill;
|
return skill;
|
||||||
}
|
}
|
||||||
SSkillLogicVo sSkillLogicVo = SSkillLogicConfig.getsSkillLogicVo(Integer.parseInt(skillId));
|
SSkillLogicVo sSkillLogicVo = SSkillLogicConfig.getsSkillLogicVo(Integer.parseInt(skillId));
|
||||||
if (sSkillLogicVo != null && sSkillLogicVo.getSkillTargetVoList().size()>0) {
|
if (sSkillLogicVo != null && !sSkillLogicVo.getSkillTargetVoList().isEmpty()) {
|
||||||
// float cd = sSkillLogicVo.getCd();
|
// float cd = sSkillLogicVo.getCd();
|
||||||
// if(args!=null&&args.length>0){
|
// if(args!=null&&args.length>0){
|
||||||
// cd+=Integer.parseInt(args[0]);
|
// cd+=Integer.parseInt(args[0]);
|
||||||
|
|
Loading…
Reference in New Issue