Commit Graph

9352 Commits

Author SHA1 Message Date
Jordan Atwood
a6628564f8 banktags: Don't lose scroll position when hiding separators 2020-09-07 00:40:24 -07:00
Macweese
af733b76b1 import worldtype maybe
ape
2020-09-06 19:49:15 +02:00
Macweese
5166e9921e PlayerManager: High risk world mechanics
Checkstyle
2020-09-06 19:39:30 +02:00
Macweese
f93d7e8847 PlayerManager: High risk world mechanics
Update PlayerManager to work with the latest changes made to high risk worlds.

Protect item prayer is completely disabled on high risk worlds.

Also changed the ternary operator to only apply if the prayer level is less than 25, since players can use the prayer if they are 25 prayer.
2020-09-06 19:30:46 +02:00
Macweese
65d2f45090 WorldLocation: Fields hierarchy
After some testing I found that a niche issue arises from the combination of the alphabetical sorting and the for loop. This aims to band-aid the issue as best possible until proper rework is done.

Renamed fields

Appended main areas (BB) which house other locations with `_ZONE` .

Example
Old → `HOSIDIUS("Hosidius", new Location(1737, 3627, 1789, 3582), 0),`
New → `HOSIDIUS_ZONE("Hosidius", new Location(1737, 3627, 1789, 3582), 0),`

Reason for this is to solve a problem with the `for loop` responsible for iterating over all locations to find which one the player is located in.
Since they are sorted alphabetically, `HOSIDIUS` comes before `HOSIDIUS_BANK` or any other location prefixed with "hosidius".
Disregarding if  `worldArea ∈ BB`.

So, coincidentally, appending BB areas with `_ZONE` is just a lucky "solution" as a result of the alphabetical sorting to push the area down in the hierarchy.

To be clear; This is a hack, not a proper solution.
Ideally, in a perfect world the entire thing would be replaced by a proper R-Tree or other spatial access method.
However, for now, this is as good as it gets seeing as it'd be a pretty big task.
2020-09-05 10:54:21 +02:00
Kyle
03f73e32ab Update WeaponMap.java 2020-09-04 19:52:40 +01:00
Kyle
304b79d7b0 weaponmap: add amys saw
weaponmap: add amys saw
2020-09-04 15:18:49 +01:00
Michael Archer
e388f5a0f7 timers: Update stunned Abyssal Sire ID (#12410)
A recent game update changed the NPC IDs used for sire's stunned state,
causing the stun timer to become applied and removed at the wrong time.
2020-09-04 07:28:59 +00:00
David
0a4cb9bf5a menuentryswapper: Add Island of Stone quick travel (#12422) 2020-09-04 07:23:12 +00:00
Broooklyn
1db0f66a98 clues: Fix Watchtower master emote step coordinates (#12429) 2020-09-04 07:04:02 +00:00
Macweese
49fa4c7f08 WorldLocation: Major expansion
Added over 500 new locations.
Some locations were merged together, or split further into finer segments.
Removed few locations.

Spelling corrections

Renamed and organised fields.
Renamed few field display labels to give a more intuitive description of the intended world point.

Limited margin of "distance to area" to 128 squares(region length*2) to prevent mislabeling areas. Particularly in instances.

Fixed error which caused each world area to be placed on wrong coordinates along y-axis.

Added Math.abs() to get absolute value when calculating polygon dimensions from coordinates.
2020-09-03 21:00:30 +02:00
Matt Davenport
9beec30b3f cluescrolls: add fairy ring codes to emote clues 2020-09-02 17:57:23 -04:00
Max Weber
47f3a965b7 runelite-client: remove removed items 2020-09-02 05:30:51 -06:00
Ganom
e3132599bf plugintype: Rename important to system. (#2794) 2020-08-31 16:13:06 -04:00
Adam
2021b4c1ff grounditems: add test for notify on highlight 2020-08-31 13:19:06 -04:00
Adam
d7cb489eaf grounditems: fix showing Lots! for stack size in notifications
The value cannot be more than MAX_VALUE so the previous condition was
never met. Additionally use MAX_QUANTITY constant instead of abusing
char max value which is completely unrelated.
2020-08-31 13:19:05 -04:00
Matthew C
d8ddbe2cfa grounditems: fix notifications for highlighted drops
Fix notifications for highlighted drops occuring when a non highlighted drop is
assigned a value tier with the same color as highlighted drops. Check the
highlightedItems list directly instead of doing a color comparison.
2020-08-31 13:16:59 -04:00
Kyle
9b2eb98372 Merge pull request #2791 from Dyldozer/master
LootManager: Nightmare Fix
2020-08-31 16:02:04 +01:00
ThatGamerBlue
ae9be07bae pluginmanager: only load jar plugins from the folder 2020-08-31 12:34:39 +01:00
Dozer
392c91cae4 delete tabs 2020-08-30 23:57:07 -05:00
Dozer
dfade0c26c Nightmare loot tracking fix 2020-08-30 23:54:33 -05:00
Hexagon
46b297ce09 zalcano-plugin: Fix lingering graphicsobject highlighting 2020-08-30 20:57:56 -04:00
Adam
45bbf31fe9 gpu: error when shader creation fails 2020-08-30 18:50:19 -04:00
honeyhoney
c79c8f55e0 color picker: resize color slider to fit knob at max rgba values 2020-08-30 15:21:29 -04:00
Adam
8bbd3b9365 itemstats: correct typo in Better (Some capped) description 2020-08-30 15:15:49 -04:00
emiljensen2
b8f6920ebb antidrag: add deposit box for bank drag 2020-08-30 15:14:49 -04:00
Jordan Atwood
d1a765091a screenshot: Fix BA high gamble toggle
Because both level up dialogs and BA high gambles use the same widget
interface, commit 40f032bede caused BA
high gambles and some level up dialogs to trigger screenshots if either
config was enabled in the config, as that would set a flag to capture a
screenshot on the next game tick based on the widget text. This commit
adds config checks to the DIALOG_SPRITE_TEXT branch to ensure the
appropriate config flag must be set for a screenshot to be captured.
2020-08-30 13:14:06 -04:00
Arman Rafian
5316b49d16 grounditems: fix despawn timer for KBD/NMZ instances 2020-08-30 11:48:03 -04:00
Max Weber
431e09588b specify utf8 encoding
this should fix the following known bugs:
 - putting a U+2019 in the config causes it to become corrupted and
   ~double in size every launch
 - scripts become assembled incorrectly and the nbsp after your name in
   the chatbox becomes incorrect
 - the feed panel doesn't show emoji
2020-08-28 21:58:08 -04:00
Hydrox6
ca2416a838 timetracking: add configuration for displaying time in 12 hour format 2020-08-28 21:20:53 -04:00
Owain van Brakel
928a3242bb Merge pull request #2781 from open-osrs/GRADLE-DEPS-UPDATE-7010955
project: Update gradle dependencies
2020-08-28 08:04:00 +02:00
Owain van Brakel
fa6dc721bf jgroups: Update to version 5.0.0 2020-08-28 07:58:11 +02:00
Owain van Brakel
21428e68c0 ItemVariationMapping: Make load public 2020-08-28 07:53:46 +02:00
Owain van Brakel
6d342d7abc Merge remote-tracking branch 'runelite/master' into master 2020-08-28 03:17:10 +02:00
Meeran
29e0b92590 ItemMapping: Fix Ring of Endurance mapping (#12408)
`RING_OF_ENDURANCE_24844` is the ingame item which can actually be
obtained. `RING_OF_ENDURANCE` is the original ring ID for [the ring
which could not be traded on the Grand Exchange on Darkmeyer's day of
release][1]. This commit corrects the mapping to map to the tradeable
ring.

[1]: https://secure.runescape.com/m=news/darkmeyer-day-one-feedback-changes?oldschool=1
2020-08-27 19:04:27 +00:00
mnasra
64bcd9aa34 itemstats: Fix super antiposion potion duration (#12403) 2020-08-26 22:31:28 +00:00
Martin H
22ec9e52b5 blastfurnace: Use border color for clickbox overlay fills (#12379)
Previously, all clickbox overlays had a red tint, even if the border was
green symbolizing a "good" state.
2020-08-26 22:25:49 +00:00
Adam
a918c5955f menu swapper: add amy to npc contact swap 2020-08-26 10:07:17 -04:00
RansomTime
9588076059 task: add Iorweth Warriors to list of targets for elves 2020-08-25 11:03:27 -04:00
Adam
30516b0bc3 Add Leagues hiscores and update icons for Trailblazer League 2020-08-25 10:44:53 -04:00
honeyhoney
76d38333d2 WorldMapOverlay: Adjust tooltip text position to match vanilla tooltips (#12380) 2020-08-25 02:58:02 +00:00
honeyhoney
7efd8d18d1 bank: Fix NPE in PostScriptFired subscriber (#12342)
The bank widget can become null before the bank build script finishes by
holding the bank close key as the bank is opened. This commit adds a
null check to avoid this possible NPE.
2020-08-24 21:05:56 +00:00
Jordan
e1ef747ed9 Merge pull request #12348 from Broooklyn/nightmare-chatcommand
chat commands: add Nightmare abbreviations
2020-08-24 13:54:34 -07:00
honeyhoney
a450df01b6 menuentryswapper: Add Rellekka quick travel NPCs (#12333) 2020-08-24 20:43:03 +00:00
trimbe
7c01e44628 bank tags: invoke only the scrollbar update after removing separators
Invoking the tab separator removal allowed tab separators to be visible
and interactable for a frame. On slower computers, users could click and
navigate to a tab during that period. The removal no longer needs to be
invoked after e4b43d9 so we can just invoke the script run.
2020-08-24 20:35:15 +00:00
Jordan Atwood
fb47850686 ItemIdentification: Fix target teleport definition 2020-08-24 13:11:57 -07:00
Broooklyn
d57f990183 Item identification: add tablets 2020-08-24 15:20:29 -04:00
Adam
2f85f57487 hiscore panel: add names to skill label tooltips
Also change boss tooltips to not show KC: 0 if unranked
2020-08-24 12:53:45 -04:00
Adam
c9859f36b6 hiscore panel: fix lookup to run on edt
It modifies various fields in the ui and should be running on edt.
Additionally add a clear listener to reset the search state when the
input is cleared.

This requires changing the hiscore client to be async so that the
response can be properly applied on the edt
2020-08-23 11:54:36 -04:00
Adam
a89202e230 party service: prioritize user join handler over plugins
The Discord invites requires the party size to be >0 for invites to work.
Previously this was not updating the presence with the 1 (local) member
after joining due to the plugin event handler running prior to the
service adding the member to the party.

This also changes the party id to always be null when not in a party instead of
set to the special local party id. This simplifies the checks in the
plugins trying to differentiate being in your own party vs not being in
a party.
2020-08-23 11:43:08 -04:00