Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Croesus Limit #1908

Merged
merged 4 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ public class DungeonChestConfig {
@ConfigEditorBoolean
@FeatureToggle
public boolean kismetStackSize = true;

@Expose
@ConfigOption(name = "Croesus Limit Warning", desc = "Gives a warning when you are close to being past Croesus limit.")
@ConfigEditorBoolean
@FeatureToggle
public boolean croesusLimit = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ class CroesusChestTracker {
if ((croesusChests?.size ?: 0) > maxChests) {
croesusChests?.dropLast(1)
}

if (config.croesusLimit && getLastActiveChest() >= 55) {
ChatUtils.chat("You are close to the Croesus Limit. Please open your chests!")
}
}

private fun Int.getRun() = getRun0(this)
Expand Down
Loading