Add tree reachability (clipping) check to woodcutting logic#666
Open
0x5472616379 wants to merge 2 commits into2006-Scape:masterfrom
Open
Add tree reachability (clipping) check to woodcutting logic#6660x5472616379 wants to merge 2 commits into2006-Scape:masterfrom
0x5472616379 wants to merge 2 commits into2006-Scape:masterfrom
Conversation
Implemented a `canReachTree` method to ensure players can access trees before starting woodcutting. This includes adding clipping checks and an object retrieval method in `Region` to handle object positioning and validation.
Eliminated unnecessary debug messages related to clipping and reaching the tree. This cleanup improves code readability and prevents unintended message spamming during gameplay.
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.
Description
This pull request introduces a
canReachTreemethod to the woodcutting logic, ensuring trees are accessible before woodcutting begins. It includes:This update aims to improve gameplay mechanics by preventing unreachable tree interactions.
Checklist
Additional Notes
N/A