Skip to content

Commit

Permalink
small fix for lower experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
ILike2WatchMemes committed Jul 5, 2024
1 parent c5a7952 commit b4d6f4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,23 @@ public static class ExperimentsDryStreakConfig {
public boolean ultraRareBookAlert = false;

public enum Experiments {
NONE("", 0),
BEGINNER("Beginner", 14),
HIGH("High", 20),
GRAND("Grand", 20),
SUPREME("Supreme", 28),
TRANSCENDENT("Transcendent", 28),
METAPHYSICAL("Metaphysical", 28),
NONE("", 0, 0),
BEGINNER("Beginner", 14, 18),
HIGH("High", 20, 9),
GRAND("Grand", 20, 9),
SUPREME("Supreme", 28, 9),
TRANSCENDENT("Transcendent", 28, 9),
METAPHYSICAL("Metaphysical", 28, 9),
;

public final String name;
public final int gridSize;
public final int startSlot;

Experiments(String name, int gridSize) {
Experiments(String name, int gridSize, int startSlot) {
this.name = name;
this.gridSize = gridSize;
this.startSlot = startSlot;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ object ExperimentsDisplay {
private val config get() = SkyHanniMod.feature.inventory.experimentationTable

private var display = emptyList<String>()
private val startSlot = 9

private var uncoveredAt = 0
private var uncoveredItems = mutableListOf<Pair<Int, String>>()
Expand Down Expand Up @@ -55,6 +54,7 @@ object ExperimentsDisplay {

@SubscribeEvent
fun onInventoryClose(event: InventoryCloseEvent) {
println(listOf(uncoveredAt, uncoveredItems, foundNormals, foundMatches, foundPairs, foundPowerUps, toCheck, lastClicked))
display = emptyList()

uncoveredAt = 0
Expand Down Expand Up @@ -261,7 +261,7 @@ object ExperimentsDisplay {
}

private fun isOutOfBounds(slot: Int, experiment: Experiments) =
slot <= startSlot || slot >= startSlot + experiment.gridSize + 7 || listOf(17, 18, 26, 27, 35, 36).contains(slot)
slot <= experiment.startSlot || slot >= experiment.startSlot + experiment.gridSize + 7 || listOf(17, 18, 26, 27, 35, 36).contains(slot)

Check failure on line 264 in src/main/java/at/hannibal2/skyhanni/features/inventory/experimentationtable/ExperimentsDisplay.kt

View workflow job for this annotation

GitHub Actions / Check Style

[ktlint] reported by reviewdog 🐶 Line is exceeding max line length. Break line after '||' in binary expression Raw Output: src/main/java/at/hannibal2/skyhanni/features/inventory/experimentationtable/ExperimentsDisplay.kt:264:98: error: Line is exceeding max line length. Break line after '||' in binary expression (standard:binary-expression-wrapping)

Check failure on line 264 in src/main/java/at/hannibal2/skyhanni/features/inventory/experimentationtable/ExperimentsDisplay.kt

View workflow job for this annotation

GitHub Actions / Check Style

[ktlint] reported by reviewdog 🐶 Exceeded max line length (140) Raw Output: src/main/java/at/hannibal2/skyhanni/features/inventory/experimentationtable/ExperimentsDisplay.kt:264:141: error: Exceeded max line length (140) (standard:max-line-length)

private fun isEnabled() =
config.experimentationTableDisplay && LorenzUtils.inSkyBlock && InventoryUtils.openInventoryName().startsWith("Superpairs (")
Expand Down

0 comments on commit b4d6f4c

Please sign in to comment.