mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Implement monolith vita plans
This commit is contained in:
1 parent
fbbfb20656
commit
9271c3431f
18 files changed
+636
-10
No files matched your search
@@ -10,6 +10,7 @@ import emu.nebula.Nebula;
|
||||
import emu.nebula.data.GameData;
|
||||
import emu.nebula.data.resources.InfinityTowerLevelDef;
|
||||
import emu.nebula.database.GameDatabaseObject;
|
||||
import emu.nebula.game.tower.StarTowerVitaData;
|
||||
import emu.nebula.game.tutorial.TutorialLevelLog;
|
||||
import emu.nebula.game.vampire.VampireSurvivorLog;
|
||||
import emu.nebula.proto.PlayerData.PlayerInfo;
|
||||
@@ -36,6 +37,7 @@ public class PlayerProgress extends PlayerManager implements GameDatabaseObject
|
||||
private IntSet starTowerLog;
|
||||
private int[] starTowerGrowth;
|
||||
private int towerTickets;
|
||||
private StarTowerVitaData towerVitaData;
|
||||
|
||||
// Instances
|
||||
private Int2IntMap dailyInstanceLog;
|
||||
@@ -91,6 +93,9 @@ public class PlayerProgress extends PlayerManager implements GameDatabaseObject
|
||||
// Tutorials
|
||||
this.tutorialLog = new HashMap<>();
|
||||
|
||||
// Star Tower Vita
|
||||
this.towerVitaData = new StarTowerVitaData(this);
|
||||
|
||||
// Save to database
|
||||
this.save();
|
||||
}
|
||||
@@ -328,6 +333,14 @@ public class PlayerProgress extends PlayerManager implements GameDatabaseObject
|
||||
shouldSave = true;
|
||||
}
|
||||
|
||||
// Set star tower vita data
|
||||
if (this.towerVitaData == null) {
|
||||
this.towerVitaData = new StarTowerVitaData(this);
|
||||
shouldSave = true;
|
||||
} else {
|
||||
this.towerVitaData.setPlayerProgress(this);
|
||||
}
|
||||
|
||||
// Carry over infinity tower progress
|
||||
if (this.infinityArenaLog != null) {
|
||||
for (int levelId : this.infinityArenaLog.values()) {
|
||||
|
||||
Reference in new issue
Block a user