summaryrefslogtreecommitdiffstats
path: root/src/Item.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Migrate off CircleCI to Jenkins (#5230)Alexander Harkness2021-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Add Jenkinsfile * cd src * Escape wildcards * Refactor stages * Remove CircleCI junk * Make clang-tidy do something * updated regex to include only the files in the base src directory * fixed errors displayed by new clang tidy version * adjust clang core count to actual count * Update README with new Jenkins build Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
* Basic elytra flight (#5124)Damián Imrich2021-04-031-0/+1
| | | | | | * Basic elytra flight Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Warnings improvementsTiger Wang2020-12-181-69/+67
| | | | | | | | | * Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
* Enchanting table shows detail on hover. Enchanting is deterministic. (#4937)KingCol132020-10-011-11/+10
| | | | | * Use lapis for enchanting, subtract correct number of levels, ClientHandle now selects from pregenerated list. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cItems::AddItemGrid adding empty itemsTiger Wang2020-09-251-3/+6
|
* 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