mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Implement monolith potential book
This commit is contained in:
1 parent
b7d6278b26
commit
465ccd769e
14 files changed
+403
-3
No files matched your search
@@ -191,6 +191,18 @@ public class PlayerProgress extends PlayerManager implements GameDatabaseObject
|
||||
Nebula.getGameDatabase().update(this, this.getUid(), logName + "." + id, newStar);
|
||||
}
|
||||
|
||||
public boolean isNewPotential(int id) {
|
||||
// Get character that uses this potential
|
||||
var character = this.getPlayer().getCharacters().getCharacterFromPotential(id);
|
||||
|
||||
if (character == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Checks if the character has seen the potential yet or not
|
||||
return !character.hasSeenPotential(id);
|
||||
}
|
||||
|
||||
// Proto
|
||||
|
||||
public void encodePlayerInfo(PlayerInfo proto) {
|
||||
|
||||
Reference in new issue
Block a user