summaryrefslogtreecommitdiffstats
path: root/src/common/inventorydata.h
Commit message (Collapse)AuthorAgeFilesLines
* Replaced 'unsigned int' with 'unsigned'Thorbjørn Lindeijer2013-01-091-7/+7
| | | | Same thing, but shorter.
* Used the client base to make a final bugfix on the server code.Yohann Ferreira2011-08-191-1/+1
| | | | | | | | | Made the server handle only one slot type requirement since it's irrelevant to have more anyway. Plus, it simplifies the code for both equipping/unequipping. I also added a dagger to show how equipping/unequipping is working.
* Basically redid equip and unequip functions().Yohann Ferreira2011-08-111-0/+6
| | | | | | | | | | | | | | I made the system handle the fact that equipment item are completely unlinked to the inventory items. Equip items now have a unique itemInstance number permitting to equip the same item type multiple time when the slot capacity is wide enough to do so. I also prepared the functions to welcome in the near tests against scripted equipment. The equip process is known to be working server-side but the unequip process has yet to be reviewed, even if implemented.
* Begun Applying the new equipment slot handling design.Yohann Ferreira2011-07-271-5/+41
| | | | | | | | | | | | | | | | | | now, the equipment slots are independant from the inventory slots according to the inventory and equipment data. This will permit to avoid checking the equipment each time one touches the inventory and vice versa, and make the former delayed mode useless. Also, note that equipped items will be removed from inventory and readded once unequipped. The design will permit the following, even if not implemented yet: - To make equipment items stackable again, if wanted. - Have more than one item with the same id equipped on different slots using the itemInstance field. Note: I didn't add the database structure updates yet, to see whether other changes may later go along with those.
* Small random code format cleanups, and documentation fixes.Yohann Ferreira2011-07-271-1/+1
| | | | This doesn't change anything yet.
* Fix many compiler warnings.Freeyorp2010-12-081-6/+1
| | | | Reviewed-by: Bertram
* Renamed .hpp files into .h for consistency.Yohann Ferreira2010-11-141-0/+61
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.