Skip to content

Commit

Permalink
Egglocator logic change
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArthurCole committed Oct 26, 2024
1 parent 1804501 commit 42cadf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ public class HoppityEventSummaryLiveDisplayConfig {
@Expose
@ConfigOption(name = "Show Holding Egglocator", desc = "Always show the card when holding an Egglocator.")
@ConfigEditorBoolean
public boolean showHoldingEgglocator = true;
public boolean showHoldingEgglocator = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ object HoppityEventSummary {
private val storage get() = ProfileStorageData.profileSpecific
private val liveDisplayConfig get() = config.eventSummary.liveDisplay
private val updateCfConfig get() = config.eventSummary.cfReminder
private val EGGLOCATOR_ITEM = "EGG_LOCATOR".asInternalName()

private var displayCardRenderables = listOf<Renderable>()
private var lastKnownStatHash = 0
Expand All @@ -82,7 +81,7 @@ object HoppityEventSummary {
if (this.isUninitialized()) null else this

private fun isEggLocatorOverridden(): Boolean =
liveDisplayConfig.showHoldingEgglocator && InventoryUtils.itemInHandId == EGGLOCATOR_ITEM
liveDisplayConfig.showHoldingEgglocator && InventoryUtils.itemInHandId.equals("EGG_LOCATOR")

private fun liveDisplayEnabled(): Boolean {
val storage = storage ?: return false
Expand Down

0 comments on commit 42cadf0

Please sign in to comment.