Implement monolith settle

This commit is contained in:
Melledy
2025-11-03 15:26:40 -08:00
parent f478105e58
commit 466eab9401
4 changed files with 56 additions and 20 deletions

View File

@@ -77,19 +77,19 @@ public class StarTowerManager extends PlayerManager implements GameDatabaseObjec
return this.game;
}
public StarTowerGame giveUp() {
public StarTowerGame endGame() {
// Cache instance
var instance = this.game;
var game = this.game;
if (instance != null) {
if (game != null) {
// Set last build
this.lastBuild = instance.getBuild();
this.lastBuild = game.getBuild();
// Clear instance
this.game = null;
}
return instance;
return game;
}
public boolean saveBuild(boolean delete, String name, boolean lock) {