Commit Graph

358 Commits

Author SHA1 Message Date
Adam
c7a155d09c loot tracker: cleanup clue scroll stacking and test
Most of this test was superfluous and continiously retesting the same
logic
2020-05-04 23:20:57 -04:00
Tomas Slusny
c2d855de65 Merge pull request #11420 from while-loop/loottracker-clue-scroll
loot-tracker: make clue scroll drops stackable
2020-05-03 10:24:26 +02:00
Jordan Atwood
7bea9f9f3b timers: Remove color matching for teleblock messages
When playing using the resizable viewport and the transparent chatbox,
teleblock messages are sent using a different color than when using the
standard chatbox. This commit removes that color matching entirely from
messages indicating that a teleblock timer has been applied or removed.
2020-05-02 13:14:23 -04:00
Anthony Alves
e5a7f9af73 loot-tracker: make clue scroll drops stackable 2020-05-02 13:04:48 -04:00
Adam
f60d818558 chat notifier: fix highlight own name matching player names with spaces
We internally rewrite nbsp to space in Player.getName(), but the in-game
drop messages which include players names still have nbsp. Modify the
generated username matcher pattern to match either nbsp or space.
2020-04-30 15:07:27 -04:00
Adam
e930283176 timers: add divine bastion and battlemage potions 2020-04-30 11:23:29 -04:00
Adam
6f0a2c9069 client: update itemcontainer api usage
Use new api methods if appropriate
2020-04-21 18:39:41 -04:00
Dennis
059b28989e ge plugin: fix fuzzy search highlighting 2020-04-16 17:56:01 -04:00
Adam
3ede5ebb56 Revert "Mock ConfigManager in ItemStatOverlayTest to inject TooltipManager"
This reverts commit 75b29026f9.
2020-04-16 16:57:34 -04:00
Tomas Slusny
75b29026f9 Mock ConfigManager in ItemStatOverlayTest to inject TooltipManager
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2020-04-08 15:17:38 +02:00
Deon Zhao
65d63cd754 loottracker: Track herbiboar loot with an open herb sack
When looting the herbiboar with an open herb sack, instead of receiving
the herbs to your inventory, the herbs are deposited to the sack
directly and the player receives chat messages indicating the herbs they
received. This commit adds support for reading those chat messages when
looting the herbiboar.

This change incidentally fixes an issue which arose when the open herb
sack was introduced to the game where any inventory change after looting
the herbiboar would be tracked as herbiboar loot, such as drinking a
stamina potion.

Closes #10655
Fixes #10718
2020-03-30 18:43:34 -04:00
Adam
844a85392b speccounter: fix some bugs and edge cases
1) fix plugin to correctly identify blocked hits as a spec being used

2) fix when hitsplats appear on the same tick as uninteracting with the
target npc

3) fix when hitsplats appear in between the spec and its hitsplat on
other targets

4) fix specs not registering when not having to path to monsters due to
the spec varbit changing prior to the interact event firing
2020-03-27 17:40:44 -04:00
Max Weber
1f09833022 grounditems: manually match item thresholds
The regex used was explosive and wouldn't complete with large inputs
that can appear when the user has a mildly corrupted config
2020-03-26 11:21:06 -06:00
Adam
91ae43dd2d api: make IterableHashTable generic 2020-03-24 14:04:13 -04:00
Adam
046c20fb5b client: block extra mouse keys
The key remapping plugin has no way to operate being on and also not
blocking chat input, due to the other features of the plugin all doing
key remaps and thus are required to know whether or not you are trying
to type, or using a remapped key.

This moves the blocking to the core, which we think won't affect many
users anyway, and those that it does can just remap their mouse keys.
2020-03-22 17:59:41 -04:00
Adam
5da84178e7 chatcommands: fix showing -1 experience/rank in lvl 2020-03-22 14:24:52 -04:00
Adam
0ee189cf9d keyremapping: add test for typing mode change 2020-03-22 12:15:20 -04:00
Adam
203ecce4db keyremapping: add option to block extra mouse buttons 2020-03-22 12:15:20 -04:00
Tomas Slusny
c7bbb3bb3a Merge pull request #10912 from dekvall/ground-count
ground items: add support for quantity thresholds
2020-03-17 21:29:51 +01:00
Adam
c1d5e3ae16 hiscore panel: autocomplete recent search history
Co-authored-by: Daniel <serpa88@hotmail.ca>
2020-03-17 10:26:34 -04:00
Jordan
a0ba612219 Merge pull request #10974 from Nightfirecat/center-more-hot-cold-clues
HotColdLocation: Center some location spots
2020-03-13 15:33:48 -07:00
Jordan Atwood
af7647e204 HotColdLocation: Center some location spots
Center some hot-cold locations as reported and verified from the mega
issue.

Note: Because this commit makes adjustments to some locations relied
upon in the hot-cold solver class test, some tests must be adjusted in
order to keep passing.

Ref: #9601
2020-03-12 10:00:38 -07:00
dekvall
982b1749ce ground items: add support for quantity thresholds
Adds the ability to use `<` and `>` when configuring highlighted or hidden drops.
2020-03-10 18:22:34 +01:00
Daniel
a34d9d30d6 Reset Discord status after a while of being in menu (#9116)
Closes #667
2020-03-08 23:01:23 +01:00
Trevor
43123e46a3 client: fix default sessionfile/config args 2020-03-06 14:08:50 -05:00
Trevor
d19e125998 client: add session and config file arguments 2020-03-06 11:47:58 -05:00
ThatGamerBlue
dc6942197e chatfilter: add filtering by username 2020-03-05 15:28:05 -05:00
Adam
7c3ff105fb api: update for tinted block and damage hitsplats 2020-03-05 07:17:07 -05:00
Jordan Atwood
bb0e693aea itemstats: Add tooltip string method tests
This commit adds tests to ensure proper formatting of the tooltip string
so as to prevent bugs like the one fixed by 7ca4a929.
2020-03-04 16:05:13 -08:00
Jordan Atwood
0451944522 itemstats: Fix unarmed attack speed
Since the writing of this plugin, the wiki has changed the format for
weapon attack speeds[1] and now displays weapon attack speeds in length
of game ticks. Hence, since unarmed attacks are at the rate of once
every 4 game ticks, this commit updates our definition of the unarmed
attack accordingly.

[1] https://oldschool.runescape.wiki/w/Unarmed?diff=8467472&oldid=7810087
2020-03-04 16:04:34 -08:00
JZomerlei
f5a80b6c91 Change to use github link instead of email (#10934) 2020-03-02 23:09:49 -08:00
Alexsuperfly
c7d89860ab chat commands: Add PB reading from POH adventurer's log 2020-03-01 10:39:24 -05:00
Alexsuperfly
78597125da chat commands: Refactor repeated test code into setup method
This commit moves each test's client `getUsername()` mock returning
"Adam" to a `before()` method.
2020-03-01 10:39:24 -05:00
Hydrox6
afe85fa6e6 slayer: fix boss task parsing to support Konar
Fixes runelite/runelite#8009
2020-02-23 12:04:55 -05:00
Adam
01ebf340e3 Merge pull request #10777 from Nightfirecat/clear-clue-scroll-on-empty-dev-command
Clear clue scroll on empty dev command
2020-02-20 17:04:57 -05:00
Jordan Atwood
9e560d91e3 cluescroll plugin: Clear stale location clue hint arrows
Location clue scrolls added a hint arrow when the player was nearby one
of the clue's locations. It did not, however clear that arrow if the
locations were changed and the previously-set hint arrow location was no
longer marked. This commit updates this behavior to clear the active
hint arrow each game tick before re-adding any location hint arrows.
(and if no NPC hint arrows are set)

Fixes runelite/runelite#10370
2020-02-20 15:23:00 -05:00
Ron Young
e8454a367c banktags: add tests 2020-02-20 09:25:59 -05:00
Jordan Atwood
967fadf59d Revert "timers plugin: Improve imbued heart detection"
This reverts commit 45c5df3379.
2020-02-14 09:01:44 -08:00
Adam
99e885cb0a loottracker: fix tracking first clue opens 2020-02-13 12:51:36 -05:00
Max Weber
7e8bebc083 gpu: run glslangValidator on shaders during tests 2020-02-11 18:54:00 -05:00
Max Weber
cf9f7fc9fb gpu: refactor shader compilation 2020-02-11 18:53:59 -05:00
Jordan Atwood
5b28f343ca clues: Don't return clue instances for empty text
This commit ensures that all clues providing a static `forText()` method
return null when given an empty string as clue text.
2020-02-11 14:05:42 -08:00
Adam
4d5857214e loot tracker: add pickpocket events
Co-authored-by: Daniel Cimento <daniel.cimento@mail.mcgill.ca>
2020-02-10 18:27:01 -05:00
Max Weber
9a5337db3c runelite-client: typecheck configs extend Config 2020-02-09 04:14:57 -07:00
Jordan Atwood
45c5df3379 timers plugin: Improve imbued heart detection
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.

Fixes runelite/runelite#3516

Co-authored-by: Lucas <lws.ned1260@gmail.com>
2020-02-08 18:57:22 -05:00
Adam
5bbd3fa30c Merge pull request #10717 from Nightfirecat/fix-hot-cold-same-temperature-narrowing
HotColdSolver: Add same-temperature solution narrowing
2020-02-08 18:11:03 -05:00
Jordan Atwood
73d37c061b HotColdSolver: Add same-temperature solution narrowing
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.
2020-02-02 15:46:50 -08:00
Alexsuperfly
ecbfd9caa9 Raids: Enable screenshotting of scouting overlay 2020-02-02 17:06:38 -05:00
Alexsuperfly
3f1120d23a idle notifier: prevent double notifications for anim and interact 2020-02-02 13:19:47 -05:00
Zach Waller
8708788004 menu swapper: add bank deposit/withdraw shift click
Co-authored-by: Adam <Adam@sigterm.info>
2020-01-27 19:51:54 -05:00