mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-29 03:30:21 +08:00
* Basic resin usage/refresh. * Honor resin config, move some logic to logon. * Add resin usage to DungeonChallenge * Make fragile and transient resin usable. * Get resin cost from dungeon excel. * Add ability to unlock combine diagrams. * Refactor CombineManager to use Inventory.payItems, enabling crafting of condensed resin. * Refactor ForgingManager to use Inventory.payItems, to prepare for eventually forging Mystic Enhancement Ores using resin. * Remove comment * Check resin usage in addResin
54 lines
1.1 KiB
Java
54 lines
1.1 KiB
Java
package emu.grasscutter.data.excels;
|
|
|
|
import emu.grasscutter.data.GameData;
|
|
import emu.grasscutter.data.GameResource;
|
|
import emu.grasscutter.data.ResourceType;
|
|
|
|
import emu.grasscutter.game.props.SceneType;
|
|
|
|
@ResourceType(name = "DungeonExcelConfigData.json")
|
|
public class DungeonData extends GameResource {
|
|
private int id;
|
|
private int sceneId;
|
|
private int showLevel;
|
|
private int passRewardPreviewID;
|
|
private String involveType; // TODO enum
|
|
|
|
private RewardPreviewData previewData;
|
|
|
|
private int statueCostID;
|
|
private int statueCostCount;
|
|
|
|
@Override
|
|
public int getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public int getSceneId() {
|
|
return sceneId;
|
|
}
|
|
|
|
public int getShowLevel() {
|
|
return showLevel;
|
|
}
|
|
|
|
public RewardPreviewData getRewardPreview() {
|
|
return previewData;
|
|
}
|
|
|
|
public int getStatueCostID() {
|
|
return statueCostID;
|
|
}
|
|
|
|
public int getStatueCostCount() {
|
|
return statueCostCount;
|
|
}
|
|
|
|
@Override
|
|
public void onLoad() {
|
|
if (this.passRewardPreviewID > 0) {
|
|
this.previewData = GameData.getRewardPreviewDataMap().get(this.passRewardPreviewID);
|
|
}
|
|
}
|
|
}
|