Due to some problems that we were having when obtaining the items, and seeing that in some situations we were obtaining more items than expected, some changes were made, and this problem was corrected. However, we are going through the list of common items, not the quests, therefore, these items were eliminated, without doing anything about it.
Although this modification is not perfect, for the moment, it solves the problem, and also allows us to control the issue that in some circumstances, more items are awarded than necessary (it causes frost cloths, for example). However, the code is not perfect, and surely improvements can continue to be made. Such as the fact of detecting that the player has already completed the quest, eliminating the inventory items that are left over when delivering it or controlling, that no more items are given than the quest requires.
Take a quest, which requires collecting some item from a dead npc.
Check the nearby bodies, counting the items and seeing that you obtain the amount that would be obtained, if the module were not used and the item was obtained, body by body.
Changes Proposed:
Issues Addressed:
SOURCE:
Tests Performed:
How to Test the Changes: