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

ITEM.CanPickup controls use behaviour #466

Closed
VortixDev opened this issue Mar 14, 2019 · 1 comment
Closed

ITEM.CanPickup controls use behaviour #466

VortixDev opened this issue Mar 14, 2019 · 1 comment

Comments

@VortixDev
Copy link
Member

@VortixDev VortixDev commented Mar 14, 2019

The ITEM.CanPickup function also determines whether or not an entity can be used (whilst the item is spawned as an entity, i.e. not in the player's inventory). The function should either have its name updated to correctly represent what it does, or, ideally, its control behaviour should be split up into ITEM.CanPickup and ITEM.CanQuickUse (or similar) functions.

@VortixDev

This comment has been minimized.

Copy link
Member Author

@VortixDev VortixDev commented Mar 14, 2019

I am closing this issue as "Pickup" determination is consistent throughout the function: picking ups due to usage are also considered by this function, and the quickUse parameter is provided to allow developers to distinguish between the cases.

@VortixDev VortixDev closed this Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.