战斗属性打印日志

back_recharge
lvxinran 2021-06-15 15:47:47 +08:00
parent be62050c52
commit ed1d5a1dd0
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,8 @@ import com.ljsd.jieling.util.MonsterUtil;
import config.*;
import manager.STableManager;
import org.luaj.vm2.LuaValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rpc.protocols.CommonProto;
import util.TimeUtils;
@ -366,6 +368,9 @@ public class FightUtil {
continue;
}
Map<Integer, Long> heroAttributeMap = SEndlessHeroProp.propsMap.get(hero.getTemplateId());
for(Map.Entry<Integer,Long> entry:heroAttributeMap.entrySet()){
System.out.println("表拿到属性k:"+entry.getKey()+"-----v:"+entry.getValue());
}
//士气额外加成
for(Map.Entry<Integer,Integer> entry:moraleMap.entrySet()){
heroAttributeMap.put(entry.getKey(),heroAttributeMap.getOrDefault(entry.getKey(),0L)+entry.getValue());
@ -377,6 +382,9 @@ public class FightUtil {
StringBuilder propertySb = new StringBuilder();
String heroSkill = HeroLogic.getInstance().getHeroSkills(user,hero,skillSb).toString();
heroSkill = heroSkill+moraleSkillBuilder.toString();
for(Map.Entry<Integer,Long> entry:heroAttributeMap.entrySet()){
System.out.println("属性k:"+entry.getKey()+"-----v:"+entry.getValue());
}
String property = HeroLogic.getInstance().getHeroPropertyBuilder(propertySb, hero.getTemplateId(),hero.getLevel(user.getHeroManager()), heroAttributeMap).toString();
CommonProto.FightUnitInfo heroFightInfo = CommonProto.FightUnitInfo
.newBuilder()