Skip to content
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

Implement RegionShape.POLYGON and RegionShape.CYLINDER #2348

Merged
merged 1 commit into from
Sep 9, 2023
Merged

Implement RegionShape.POLYGON and RegionShape.CYLINDER #2348

merged 1 commit into from
Sep 9, 2023

Conversation

scooterboo
Copy link
Contributor

Description

Kinda surprised this didn't happen sooner, but CYLINDER and POLYGON are valid region types that were never implemented.

I implemented them and took the opportunity to sort them in order and use multiplication instead of pow. (slight speed up)

Issues fixed by this PR

POLYGON is used in one quest near the chasm, and CYLINDER is used on all those dungeon waypoints that wouldn't move when you got near them.

Type of changes

  • Bug fix
  • New feature
  • Enhancement
  • Documentation

Checklist:

  • My code follows the style guidelines of this project
  • My pull request is unique and no other pull requests have been opened for these changes
  • I have read the Contributing note and Code of conduct
  • I am responsible for any copyright issues with my code if it occurs in the future.

Also took the opportunity to sort them in order and use multiplication instead of pow.
Copy link
Member

@KingRainbow44 KingRainbow44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nazrin back at it again with more math

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.

2 participants