-
-
Notifications
You must be signed in to change notification settings - Fork 158
More precise crystal waypoints when clicking or killing NPCs (Odawa, … #1605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…Corleone, etc.). Not working with Khazad-dûm (Bal), Fairy Grotto, Dragon's Lair, or Goblin Queen's Den. Maybe figure out how to handle these later.
| private final String name; | ||
| private final String linkedMessage; | ||
| private final @Nullable String name; | ||
| private final String npcName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this field isn't only used for NPC names
| BlockPos pos = CLIENT.player.getBlockPos(); | ||
| placeVerifiedWaypoint(waypointLocation, pos); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would using the npc's position be better?
|
@viciscat Yes, you're right, I think I'll just call it linkedText. About the position too, for some reason I didn't think about it. |
kevinthegreat1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll mark this as changes requested until commits are pushed addressing review issues.
Most locations are detected by listening for NPC interactions (clicks). We also check that an existing waypoint isn't already nearby (I manually tuned the optimal searchRadius).
For Khazad-dûm, Goblin Queen’s Den, and Mines of Divan, we still rely on chat messages that announce obtaining the Crystal (same as before).
I profiled it and didn’t notice any impact on performance.