-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package emu.lunarcore.data.excel; | ||
|
||
import emu.lunarcore.data.GameData; | ||
import emu.lunarcore.data.GameResource; | ||
import emu.lunarcore.data.ResourceType; | ||
import emu.lunarcore.data.ResourceType.LoadPriority; | ||
import emu.lunarcore.game.rogue.RogueBuffData; | ||
import lombok.Getter; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Getter | ||
@ResourceType(name = {"RogueBuffGroup.json"}, loadPriority = LoadPriority.LOW) | ||
public class RogueBuffGroupExcel extends GameResource { | ||
private int JHOKDPADHFM; // RogueBuffGroupID | ||
private List<Integer> ADJICNNJFEM; // RogueBuffTagList or RogueBuffGroupList | ||
|
||
private List<RogueBuffData> rogueBuffList = new ArrayList<>(); | ||
|
||
@Override | ||
public int getId() { | ||
return JHOKDPADHFM; | ||
} | ||
|
||
@Override | ||
public void onLoad() { | ||
for (int rogueTagId : ADJICNNJFEM) { | ||
if (rogueTagId >= 1000000 && rogueTagId <= 9999999) { | ||
var rogueBuff = GameData.getRogueBuffTagExcelMap().get(rogueTagId); | ||
if (rogueBuff != null) rogueBuffList.add(new RogueBuffData(rogueBuff.getMazeBuffID(), rogueBuff.getMazeBuffLevel())); | ||
} else { | ||
// RogueBuffGroup | ||
var rogueBuffGroup = GameData.getRogueBuffGroupExcelMap().get(rogueTagId); | ||
if (rogueBuffGroup != null) rogueBuffList.addAll(rogueBuffGroup.getRogueBuffList()); | ||
} | ||
} | ||
|
||
GameData.getRogueBuffGroupExcelMap().put(JHOKDPADHFM, this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters