鸿蒙阵英雄魂印问题处理

back_recharge
duhui 2021-09-16 16:41:57 +08:00
parent 9e964a10f1
commit dfc615ae0a
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,8 @@
package com.ljsd.jieling.logic.fight.passiveSkillCal;
import com.ljsd.jieling.core.GlobalsDef;
import com.ljsd.jieling.logic.dao.UserManager;
import com.ljsd.jieling.logic.dao.root.User;
import config.SCHero;
import config.SPropertyConfig;
@ -52,10 +54,15 @@ public enum PassiveskillCalEnum {
heroSkillAdMap.put(sPropertyConfig.getPropertyId(),heroSkillAdMap.getOrDefault(sPropertyConfig.getPropertyId(), Long.valueOf(0))+extraValue);
}),
HEROAFTER100ADD(171,(config,hero,heroSkillAdMap)->{
int uid = Integer.parseInt(hero.getId().substring(0, 8));
User user = UserManager.getUserInMem(uid);
if (user == null){
return;
}
float[] value = config.getValue();
int battlePropertyId = (int) value[0];
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByBattlePID(battlePropertyId);
int level = hero.getOriginalLevel();
int level = hero.getLevel(user.getHeroManager());
int times=level-100;
if(times<=0){
return;