summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.h
AgeCommit message (Collapse)AuthorFilesLines
2024-03-06General code cleanupsThorbjørn Lindeijer1-13/+7
* Use final for all message handlers, Client, LocalPlayer, Being::getType, Being::setPosition and Being::setMap. (avoids some warnings about virtual dispatch in constructors) * Use auto in more places * Use emplace_back instead of push_back in some places * Use default member initializers * Less else after return * Removed superfluous .c_str() * Removed type aliases that are only used once * Removed more unused includes
2024-03-02General code cleanupsThorbjørn Lindeijer1-1/+1
* Don't needlessly store or return raw pointers in BeingInfo * Less copying, more moving * Less else after return * Make AddDEF a template instead of a macro * Removed some unused includes * Use range-based for loops
2024-02-13General code cleanupsThorbjørn Lindeijer1-2/+3
* Removing unused includes * Use member initialization * Use range-based for loops * Use nullptr * Removed no longer used aliases * Use override * Don't use else after return * Use '= delete' to remove implicit members * Use std::string::empty instead of comparing to ""
2024-02-09C++11: Use default member initializersThorbjørn Lindeijer1-6/+3
This patch is not exhaustive.
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-13/+13
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2013-05-07items.xml can be used from settings.xmlPrzemysław Grzywacz1-16/+18
2012-05-05Fixed compilation errors and warnings with GCC 4.7Thorbjørn Lindeijer1-1/+1
Also, since GCC 4.7 there is a binary compatibility issue when linking with a Guichan that was not compiled in C++11 mode. This commit also allows compiling with GCC 4.7 with C++11 mode turned off. Reviewed-by: Erik Schilling
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-06-07Merged the unknown item definition loadingYohann Ferreira1-1/+6
and added the default hit effects on it. Reviewed-by: Jaxad0127.
2011-06-02Arbitrary code cleanupsThorbjørn Lindeijer1-7/+11
Just some stuff that piles up while "looking" at the code, which eventually gets annoying to ignore while staging real changes. * Replaced a few NULL occurrences with 0 * Rely on default parameter for std::vector::resize. * Replaced a few "" with std::string() * Prefer .empty() to == "" * Removed a few comparisons with NULL * Don't check pointers before deleting them * Removed a bunch of redundant semicolons * Made some global variables static (local to their compilation unit) * Prefer prefix ++/-- operators to postfix versions when possible * Corrected location of a comment
2011-01-24Refactored the item loading in a more extensible and per protocol way.Yohann Ferreira1-21/+131
This will greatly help into upgrading the need of each protocol separately. This is the first step to a new item and equipment system for manaserv. A subclassing of the EquipmentWindow will be done in the next commit, as requested by Thorbjorn. Reviewed-by: Thorbjorn.
2011-01-13Made the client handle better the lack of items.xml file.Yohann Ferreira1-0/+8
Now the client returns to server choice dialog with a warning instead of aborting. I'm kinda certain I'm not the only one getting crazy with such a lazy behaviour. Reviewed-by: Jaxad.
2010-08-26Merged testing branch into master.Yohann Ferreira1-34/+56
2010-04-16Add race support for eAthenaJared Adams1-0/+2
The job/class field is used to select the race. If the given race isn't defined, it falls back on the first race (so servers can use jobs/classes without races). Also rename job to subtype for Being and subclasses, and begin support for changing monster and NPC subtypes on the fly (particle effects still need to be reset when they change). Reviewed-by: Bertram
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2009-05-11Fixed the memory issues with the pointers to item stat modifiersBjørn Lindeijer1-2/+9
It was a list of pointers to Stat instances that had long been popped off the stack and deleted.
2009-04-16Merge branch '0.0.29'Bjørn Lindeijer1-2/+0
2009-04-16Some more cleanupsBjørn Lindeijer1-2/+0
Nothing in particular worth mentioning.
2009-04-16Remove last support #ifdef in the resource codeJared Adams1-0/+8
2009-03-27Fixed include structure in resource/ directoryBjørn Lindeijer1-4/+3
There is also a new rule that trivial constructors and destructors should no longer be trivially "documented", since this just takes up space with no gain.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-1/+1
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-02-07Some more include cleanups.Ira Rice1-0/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer1-2/+2
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-20Added linking to item's just using [Item Name] in chatDavid Athay1-0/+3
2009-01-14Added linking to item's just using [Item Name] in chatDavid Athay1-0/+3
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-4/+2
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-07-18Import of client treeLloyd Bryant1-1/+1
2007-09-20Merged a bunch of small changes from trunk to 0.0 and set svn:eol-style Bjørn Lindeijer1-53/+53
to native for some files that were still missing this property. This is a feeble attempt to reduce the amount of conflicts for future merges.
2007-08-22Fixed an arithmetic exception in ItemShortcutContainer::draw.Bjørn Lindeijer1-1/+1
Changed default sitting key back to 's'. Fixed a problem with all equipment being interpreted as weapon sprite.
2007-08-13Fixed svn properties.Guillaume Melquiond1-53/+53
2007-01-28Some work on documentation.Bjørn Lindeijer1-1/+1
2007-01-04Merged 0.0 changes from revision 2898 to 2988 to trunk.Bjørn Lindeijer1-3/+3
2006-12-23Load the databases at the start of the LOGIN state, after the updates areBjørn Lindeijer1-3/+3
loaded.
2006-12-11Merged 0.0 changes from revision 2825 to 2898 to trunk.Bjørn Lindeijer1-0/+53
2006-11-26Equipment database namespace and support for gender specific equipment spritesPhilipp Sehmisch1-53/+0
2006-11-23Refectored the Itemmanager class to an ItemDB namespace.Philipp Sehmisch1-0/+106