热更 技能暂时用的悟空的报错log
parent
ca3ddc523c
commit
23061000a0
|
@ -30,6 +30,7 @@ import config.SRaceTowerConfig;
|
||||||
import config.SSpecialConfig;
|
import config.SSpecialConfig;
|
||||||
import manager.STableManager;
|
import manager.STableManager;
|
||||||
import org.luaj.vm2.LuaValue;
|
import org.luaj.vm2.LuaValue;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import rpc.protocols.CommonProto;
|
import rpc.protocols.CommonProto;
|
||||||
import rpc.protocols.MapInfoProto;
|
import rpc.protocols.MapInfoProto;
|
||||||
import rpc.protocols.MessageTypeProto;
|
import rpc.protocols.MessageTypeProto;
|
||||||
|
@ -39,6 +40,7 @@ import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author lvxinran
|
* @author lvxinran
|
||||||
|
@ -50,6 +52,7 @@ public class SituationLogic {
|
||||||
public static SituationLogic getInstance() {
|
public static SituationLogic getInstance() {
|
||||||
return SituationLogic.Instance.instance;
|
return SituationLogic.Instance.instance;
|
||||||
}
|
}
|
||||||
|
private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(SituationLogic.class);
|
||||||
|
|
||||||
public static class Instance {
|
public static class Instance {
|
||||||
public final static SituationLogic instance = new SituationLogic();
|
public final static SituationLogic instance = new SituationLogic();
|
||||||
|
@ -230,6 +233,10 @@ public class SituationLogic {
|
||||||
int[] heroType = new int[6];
|
int[] heroType = new int[6];
|
||||||
teamPosHeroInfos.forEach(hero->{
|
teamPosHeroInfos.forEach(hero->{
|
||||||
Hero _hero = user.getHeroManager().getHero(hero.getHeroId());
|
Hero _hero = user.getHeroManager().getHero(hero.getHeroId());
|
||||||
|
//技能暂时用的悟空的 报错log TODO
|
||||||
|
if(("10095".equals(_hero.getId()))){
|
||||||
|
LOGGER.info("temp sun wu kong propertyId =>{}",_hero.getPropertyId());
|
||||||
|
}
|
||||||
int profession = _hero.getPropertyId();
|
int profession = _hero.getPropertyId();
|
||||||
heroType[profession] = heroType[profession]+1;
|
heroType[profession] = heroType[profession]+1;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue