Page MenuHomeFeedback Tracker

Depleted food container is not deleted from inventory/game array
New, WishlistPublic

Description

When eating last portion of food from container, if player tries to eat from another food source while eating is already in progress the empty container is not deleted from inventory. It shows as having 0% food left and you can drop it on the ground, i.e. it is not deleted from the game array and stays an object.

Details

Legacy ID
268460123
Severity
None
Resolution
Open
Reproducibility
Always
Category
Inventory
Steps To Reproduce
  1. Get a food source to be really low. 25% or less.
  2. Select "eat" action from inventory.
  3. While eating animation is playing select "eat" action from a different source.

Result: you will get message that player is already using something however when eating animation stops the container from 1. will stay in inventory with 0% food available.

Additional Information

The problem could come from the error handler that processes the attempt to do additional action while an action is performed. The code probably does not return to execution of original action after error handler popping up message "you are currently using something else (or somesuch)" resulting in delete object action not being performed (i imagine it is in the end of eat function)

Note: I have not seen a single line of the code so speaking purely from general programming experience.

Event Timeline

Padla321 edited Steps To Reproduce. (Show Details)Jan 7 2014, 2:57 AM
Padla321 edited Additional Information. (Show Details)
Padla321 set Category to Inventory.
Padla321 set Reproducibility to Always.
Padla321 set Severity to None.
Padla321 set Resolution to Open.
Padla321 set Legacy ID to 268460123.May 8 2016, 4:09 PM