feat: Add hunter (maniacal monkeys) support#43
Open
kelltom wants to merge 2 commits intoCar-Role:masterfrom
Open
feat: Add hunter (maniacal monkeys) support#43kelltom wants to merge 2 commits intoCar-Role:masterfrom
kelltom wants to merge 2 commits intoCar-Role:masterfrom
Conversation
Author
|
I should mention that I considered an event-driven approach, where we watch for object spawns to track traps, but the overhead of subscribing to those events isn't really worth it, considering you can only do this activity in one tiny region of the game. Easier to just check a few adjacent tiles each tick. |
eb9facb to
8062971
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for detecting maniacal monkey hunting in Kruk's Dungeon.
This change involves looking at Game Objects instead of animations, since this hunting activity involves the player being idle most of the time.
The plugin checks the four tiles two spaces away from the player (N/S/E/W) for active monkey trap objects. If found, the activity is treated as maniacal monkey hunting and the distraction overlay is enabled.
Because this detection relies on scene objects, the overlay could theoretically trigger if the player stands next to another player’s trap. In practice this should not occur, since traps cannot be shared between players.
The check is limited to the Kruk's Dungeon region, so performance impact is negligible.
Demo:
java_xiiqABravr.mp4