mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-12 20:34:36 +01:00
Fix discs surging to max crescendo regardless of materials used
This commit is contained in:
@@ -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