mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix discs surging to max crescendo regardless of materials used
This commit is contained in:
1 parent
c5f339c8be
commit
bf5fe3912f
1 file changed
+4
-2
@@ -245,9 +245,11 @@ public class GameDisc implements GameDatabaseObject {
|
||||
// Remove items
|
||||
var change = this.getPlayer().getInventory().removeItems(materials, null);
|
||||
|
||||
// Add star
|
||||
// Cache old star value
|
||||
int old = this.star;
|
||||
this.star = Math.max(this.star + count, 5);
|
||||
|
||||
// Add star
|
||||
this.star = Math.min(this.star + count, 5);
|
||||
|
||||
// Save to database if star count changed
|
||||
if (this.star != old) {
|
||||
|
||||
Reference in new issue
Block a user