mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 01:15:52 +01:00
[BREAKING] Item Usage Overhaul
-De-hardcode elemental orb values -De-hardcode exp items -Change ShopChest format (temporary, drop system overhaul will replace it entirely) -Food healing actually uses Ability data for real HP amounts
This commit is contained in:
@@ -653,7 +653,8 @@ public class Player {
|
||||
return (int) ((theLastDay.getTime() - now.getTime()) / (24 * 60 * 60 * 1000)); // By copilot
|
||||
}
|
||||
|
||||
public void rechargeMoonCard() {
|
||||
public boolean rechargeMoonCard() {
|
||||
if (this.moonCardDuration > 150) return false; // Can only stack up to 180 days
|
||||
inventory.addItem(new GameItem(203, 300));
|
||||
if (!moonCard) {
|
||||
moonCard = true;
|
||||
@@ -666,6 +667,7 @@ public class Player {
|
||||
if (!moonCardGetTimes.contains(moonCardStartTime)) {
|
||||
moonCardGetTimes.add(moonCardStartTime);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void getTodayMoonCard() {
|
||||
|
||||
Reference in New Issue
Block a user