The current way of invoking it on the executor would let the client have
a start and a stop for a plugin sitting in the executor's queue, making
it toggle endlessly. This only was because we were using invokeAndWait
in startPlugin, which can't be invoked on the EDT because it would
deadlock with itself.
As is the case with other graphics-based timers, the imbued heart timer
will not fire if enough other graphics animations are triggered (such as
those created when fighting the Dagannoth Kings). To add this timer more
reliably, this commit will add the timer when a Magic stat boost occurs
which is large enough that it can only be triggered by the heart.
Because the heart's boost scales with the player's level, it gives an
equal boost to the Magic essence and Magic potion boosts, depending on
the base magic level. To account for this, it will only be applied if
the user's base magic level is high enough to assuredly identify that a
potion was not used to trigger the boost.
Fixesrunelite/runelite#3516
Co-authored-by: Lucas <lws.ned1260@gmail.com>
This commit adds a warning message to the clue scroll overlay when a
player has a clue requiring a light source and does not have a light
source equipped or in their inventory. It adds logic to check for the
status of fire pits in areas which would remain permanently lit that
way.
Closesrunelite/runelite#9626
Co-authored-by: David <Davidlomath@hotmail.co.uk>
Co-authored-by: Jordan Atwood <jordan.atwood423@gmail.com>
Co-authored-by: Adam <Adam@sigterm.info>
This commit adds a number of related tags to the RuneLite configuration
in order to make it more easily discoverable as many users are not able
to find the settings it contains via search.
Closesrunelite/runelite#8491
The hot-cold solver previously was unable to perform narrowing if given
a temperature change of "SAME", leading to less-than-optimal results
when a number of otherwise-possible solutions could be removed from the
possible results by inferring that since they would have yielded a
"COLDER" or "WARMER" temperature change. This commit removes possible
solutions which are absolutely closer or farther from the previous
tested location.
One pre-exisitng test needed to be updated to pass with this change, as
it expected results to be narrowed more slowly than they now are. In
addition, a minimal test case with only two starting locations has been
added to demonstrate this change is working correctly.
Extracts the logic for caturing/saving/uploading
images from the screenshot plugin to a separate
utility named ImageCapture.
The Imgur class were made inner classes of ImageCapture
since the only location they see use is there.
ImageUploadStyle and TransferableBufferedImage were
also moved to ulities to allow ImageCapture and other
plugins to use them.