summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_item.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix return values (rob).Jude Brown2010-01-091-1/+1
|
* Lua item pluses wrapper.Jude Brown2010-01-081-0/+19
| | | | | Will only report pluses in instances where pluses are actually known to the player.
* Ignore obscured items in the UIStefan O'Rear2009-12-301-1/+1
| | | | I probably missed a few spots.
* Item quantity adjustment wrappers for dLua.Jude Brown2009-12-281-0/+49
|
* Replace uses of item_cursed with item_def::cursed.Vsevolod Kozlov2009-12-271-1/+1
|
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+2
|
* A nasty hack to allow access to the item library in vaults.Jude Brown2009-11-211-0/+1
| | | | | | | | | | | | | | As the item library is aptly named "item", and the function for specifying item slots in a vault is likewise named "item", there's no way for vaults to access any of the functionality in the item library (it just returns errors about accessing a function value). I'm not sure what changing the name of the item library will do, however, so I've left it the same and simply added a second copy using the library name of "items". It seems to function correctly, and hopefully will not cause any issues. Perhaps the current "item" library could actually be renamed, but this may have impact on user-defined scripts.
* Item destruction wrapper for (d)Lua.Jude Brown2009-11-191-0/+19
| | | | | | Will (hopefully, properly) destroy an item. Example use: item.destroy(dgn.items_at(point)[1]). Will return a false value if it didn't get a valid item, true otherwise.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-1/+0
| | | | Also add a few previously indirect includes.
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-10/+10
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Move utility functions from clua.cc to cluautil.cc.Robert Vollmert2009-10-211-1/+1
| | | | | | | | cluautil.cc should eventually contain all of the functions for passing objects from and to lua, at least the shared ones. Also cut down on clua.cc include list.
* cosmetic: strip trailing whitespaceSteven Noonan2009-10-201-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Move library "item" from clua.cc to l_item.cc.Robert Vollmert2009-10-201-0/+706