summaryrefslogtreecommitdiffstats
path: root/src/Item.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-1/+79
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-0/+21
|
* Improved fishing rewards (#4120)Bond-0092018-01-051-1/+3
| | | | | | | * Damage fishing rod after use * Give xp to the player for catching something * Fixed junk drops * Implement Luck of the Sea
* Add the fmt library (#4065)peterbell102018-01-031-4/+4
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Represent cItem::m_Lore as an AStringVector (#3882)peterbell102017-08-181-2/+11
| | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
* Added anvil enchantment handling. (#3857)Lane Kolbly2017-07-281-3/+196
| | | + Added anvil enchantment handling.
* Added armor durability reduction when player is attacked.Lane Kolbly2017-07-021-0/+20
|
* FastRandom rewrite (#3754)peterbell102017-06-131-14/+12
|
* change from single followable item to multipleGargaj2015-11-231-0/+30
|
* Unified the doxy-comment format.Mattes D2015-07-311-1/+0
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-15/+15
|
* Leather Armor can now be dyed.Samuel Barney2015-07-151-0/+19
| | | | * Created new color class to handle dye-related coloring
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Fixed bad values in the IsEnchantable() method.Hownaer2014-08-281-4/+16
|
* Fixed crashes and use std::swap.Hownaer2014-08-281-16/+20
|
* Enchanting table improvements.Hownaer2014-08-281-20/+12
|
* Fix item durability.Howaner2014-07-231-23/+23
| | | Fixes #1181
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-3/+3
|
* Normalized comments.madmaxoft2014-07-171-1/+1
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed basic whitespace problems.madmaxoft2014-07-171-1/+13
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Fix pickup combining over the maximum stack size.Howaner2014-06-241-1/+1
|
* Change m_RepairCost to int.Howaner2014-05-071-1/+1
|
* Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-071-0/+4
|
* Merge pull request #909 from jfhumann/fixesMattes D2014-04-221-3/+0
|\ | | | | | | | | Bug fixes and optimizations. We need to visit the API functions and check that they return only those values expected. `cWorld::CreateProjectile()` seems affected, too, by the same issue of ToLua returning extra values. In the cleanest form, these functions will need moving to ManualBindings.cpp
| * Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-3/+0
| |
* | Replaced X.size() with X.empty(), where applicable.madmaxoft2014-04-211-3/+3
| |
* | Fixed enchanting return values.Mattes D2014-04-211-3/+3
| | | | | | | | | | Items are enchanted in those cases, so return true. Ref.: #914.
* | Fixed Code (2)daniel09162014-04-191-97/+93
| |
* | Fixed Codedaniel09162014-04-191-72/+94
| |
* | Fixed Errorsdaniel09162014-04-181-4/+3
| |
* | Fixed some Errors (not all)daniel09162014-04-171-7/+2
| |
* | Modified many thingsdaniel09162014-04-171-0/+141
| |
* | Added complete Enchanting Systemdaniel09162014-04-121-106/+0
| | | | | | | | http://minecraft.gamepedia.com/Enchantment_mechanics
* | Merge remote-tracking branch 'upstream/master' into Enchantingdaniel09162014-04-071-5/+25
|\|
| * Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-4/+4
| |
| * Fixed a load of format string errorsTycho2014-03-111-4/+4
| |
| * Implemented ballistic missiles (fireworks)Tiger Wang2014-02-271-1/+21
| | | | | | | | + Added fireworks
* | Some updates for enchanting (2)daniel09162014-01-311-0/+106
|/
* Removed CustomCopy()Tiger Wang2014-01-161-19/+0
|
* Possibly did what xoft wantedTiger Wang2014-01-161-0/+19
|
* Implemented custom names and loreTiger Wang2014-01-151-22/+10
| | | | | | + Added custom names and lore + Added saving and loading + Added writing and parsing of NBT
* Fixed a few MSVC warnings.madmaxoft2014-01-061-1/+1
|
* Fixed VC2008 compilation, normalized include paths.madmaxoft2013-11-271-1/+1
|
* AnotherAlexander Harkness2013-11-261-1/+1
|
* Attempt to fix compilationTiger Wang2013-11-241-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+261