Illarion-eV / Illarion-Server

Server for the online RPG Illarion
http://illarion.org
GNU Affero General Public License v3.0
27 stars 19 forks source link

(Container):increaseAtPos unexpected behaviour #82

Open brightrim opened 2 years ago

brightrim commented 2 years ago

According to the old luadoc, the function is supposed to return an integer of how many the item.number was increased by. Instead it returns as 0.

vilarion commented 2 years ago

This is a documentation bug, all the increaseAtPos variants (Character, Player, Container) return the number of items that could not be created.

We can either fix the documentation or change the behaviour in all variants.