Implement gaining melodies in monoliths

This commit is contained in:
Melledy
2025-11-03 05:40:19 -08:00
parent 56b9998ed7
commit 5b5a72b4dc
6 changed files with 225 additions and 52 deletions

View File

@@ -9,6 +9,7 @@ import emu.nebula.GameConstants;
import emu.nebula.Nebula;
import emu.nebula.data.GameData;
import emu.nebula.data.resources.DiscDef;
import emu.nebula.data.resources.SubNoteSkillPromoteGroupDef;
import emu.nebula.database.GameDatabaseObject;
import emu.nebula.game.inventory.ItemParamMap;
import emu.nebula.game.player.Player;
@@ -66,6 +67,11 @@ public class GameDisc implements GameDatabaseObject {
}
}
public SubNoteSkillPromoteGroupDef getSubNoteSkillDef() {
int id = (this.getData().getSubNoteSkillGroupId() * 100) + this.getPhase();
return GameData.getSubNoteSkillPromoteGroupDataTable().get(id);
}
public int getMaxGainableExp() {
if (this.getLevel() >= this.getMaxLevel()) {
return 0;