Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upITEM.CanPickup controls use behaviour #466
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.