神印套装技能完善
parent
21890400b7
commit
1b0bfdd9be
|
@ -29,6 +29,7 @@ import com.ljsd.jieling.logic.activity.eventhandler.SaveHeroForceEventHandler;
|
|||
import com.ljsd.jieling.logic.activity.fourChallenge.FourChallengeLogic;
|
||||
import com.ljsd.jieling.logic.dao.*;
|
||||
import com.ljsd.jieling.logic.dao.cross.CSPlayer;
|
||||
import com.ljsd.jieling.logic.dao.root.GuildLog;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.dao.vo.HeroVo;
|
||||
import com.ljsd.jieling.logic.expedition.ExpeditionLogic;
|
||||
|
@ -2091,14 +2092,15 @@ public class HeroLogic {
|
|||
// 添加到套装list
|
||||
godSealSuiteNumList.add(sEquipConfig);
|
||||
}
|
||||
Collections.sort(godSealSuiteNumList);
|
||||
// 记录当前长度(位置)
|
||||
int godSealNum = godSealSuiteNumList.size();
|
||||
if (!godSealSuiteNumList.isEmpty()) {
|
||||
if (godSealNum > 0) {
|
||||
// 根据品质正序排序
|
||||
godSealSuiteNumList.sort(Comparator.comparingInt(SEquipConfig::getQuality));
|
||||
// 遍历套装list
|
||||
for (SEquipConfig item : godSealSuiteNumList) {
|
||||
//根据星级读取配置表,为空表示不是套装
|
||||
SEquipSuiteConfig sEquipSuiteConfig = SEquipSuiteConfig.config.get(item.getStar());
|
||||
SEquipSuiteConfig sEquipSuiteConfig = SEquipSuiteConfig.config.get(item.getSuiteID1());
|
||||
if (null != sEquipSuiteConfig) {
|
||||
// 根据套装数量读表,为空标是套装数量不足
|
||||
Integer integer = sEquipSuiteConfig.getSuiteSkills().get(godSealNum);
|
||||
|
|
|
@ -15,11 +15,10 @@ public class SEquipSuiteConfig implements BaseConfig {
|
|||
|
||||
private int[][] suiteSkill;
|
||||
|
||||
private Map<Integer, Integer> suiteSkills;
|
||||
|
||||
private Map<Integer,Map<Integer,Long>> suiteMap;
|
||||
public static Map<Integer, SEquipSuiteConfig> config;
|
||||
private Map<Integer, Integer> suiteSkills = new HashMap<>();
|
||||
private Map<Integer,Map<Integer,Long>> suiteMap = new HashMap<>();
|
||||
|
||||
public static Map<Integer, SEquipSuiteConfig> config = new HashMap<>();
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue