Skip to content

Comments

Add tree reachability (clipping) check to woodcutting logic#666

Open
0x5472616379 wants to merge 2 commits into2006-Scape:masterfrom
0x5472616379:woodcutting-clipping-check
Open

Add tree reachability (clipping) check to woodcutting logic#666
0x5472616379 wants to merge 2 commits into2006-Scape:masterfrom
0x5472616379:woodcutting-clipping-check

Conversation

@0x5472616379
Copy link

@0x5472616379 0x5472616379 commented Mar 7, 2025

Description

This pull request introduces a canReachTree method to the woodcutting logic, ensuring trees are accessible before woodcutting begins. It includes:

  • A new function in Region called "GetObjectAt".
  • A new function in Region called "reachedObject".

This update aims to improve gameplay mechanics by preventing unreachable tree interactions.

Checklist

  • Code compiles without errors.
  • Tested Normal, Oak, Willow, Maple, Yew & Magic trees at various locations.

Additional Notes

N/A

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant