Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enable some more clang-tidy linter checks (#4738) | peterbell10 | 2020-05-15 | 1 | -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 D | 2020-04-03 | 1 | -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 D | 2019-10-16 | 1 | -0/+21 |
| | |||||
* | Improved fishing rewards (#4120) | Bond-009 | 2018-01-05 | 1 | -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) | peterbell10 | 2018-01-03 | 1 | -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) | mathiascode | 2017-08-24 | 1 | -1/+1 |
| | |||||
* | Represent cItem::m_Lore as an AStringVector (#3882) | peterbell10 | 2017-08-18 | 1 | -2/+11 |
| | | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings | ||||
* | Added anvil enchantment handling. (#3857) | Lane Kolbly | 2017-07-28 | 1 | -3/+196 |
| | | | + Added anvil enchantment handling. | ||||
* | Added armor durability reduction when player is attacked. | Lane Kolbly | 2017-07-02 | 1 | -0/+20 |
| | |||||
* | FastRandom rewrite (#3754) | peterbell10 | 2017-06-13 | 1 | -14/+12 |
| | |||||
* | change from single followable item to multiple | Gargaj | 2015-11-23 | 1 | -0/+30 |
| | |||||
* | Unified the doxy-comment format. | Mattes D | 2015-07-31 | 1 | -1/+0 |
| | |||||
* | Silenced and fixed many warning messages across multiple files. | Samuel Barney | 2015-07-29 | 1 | -15/+15 |
| | |||||
* | Leather Armor can now be dyed. | Samuel Barney | 2015-07-15 | 1 | -0/+19 |
| | | | | * Created new color class to handle dye-related coloring | ||||
* | En masse NULL -> nullptr replace | Tiger Wang | 2014-10-23 | 1 | -1/+1 |
| | |||||
* | Fixed bad values in the IsEnchantable() method. | Hownaer | 2014-08-28 | 1 | -4/+16 |
| | |||||
* | Fixed crashes and use std::swap. | Hownaer | 2014-08-28 | 1 | -16/+20 |
| | |||||
* | Enchanting table improvements. | Hownaer | 2014-08-28 | 1 | -20/+12 |
| | |||||
* | Fix item durability. | Howaner | 2014-07-23 | 1 | -23/+23 |
| | | | Fixes #1181 | ||||
* | Style: Normalized to no spaces before closing parenthesis. | madmaxoft | 2014-07-21 | 1 | -3/+3 |
| | |||||
* | Normalized comments. | madmaxoft | 2014-07-17 | 1 | -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. | madmaxoft | 2014-07-17 | 1 | -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. | Howaner | 2014-06-24 | 1 | -1/+1 |
| | |||||
* | Change m_RepairCost to int. | Howaner | 2014-05-07 | 1 | -1/+1 |
| | |||||
* | Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs. | Howaner | 2014-05-07 | 1 | -0/+4 |
| | |||||
* | Merge pull request #909 from jfhumann/fixes | Mattes D | 2014-04-22 | 1 | -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 code | jfhumann | 2014-04-18 | 1 | -3/+0 |
| | | |||||
* | | Replaced X.size() with X.empty(), where applicable. | madmaxoft | 2014-04-21 | 1 | -3/+3 |
| | | |||||
* | | Fixed enchanting return values. | Mattes D | 2014-04-21 | 1 | -3/+3 |
| | | | | | | | | | | Items are enchanted in those cases, so return true. Ref.: #914. | ||||
* | | Fixed Code (2) | daniel0916 | 2014-04-19 | 1 | -97/+93 |
| | | |||||
* | | Fixed Code | daniel0916 | 2014-04-19 | 1 | -72/+94 |
| | | |||||
* | | Fixed Errors | daniel0916 | 2014-04-18 | 1 | -4/+3 |
| | | |||||
* | | Fixed some Errors (not all) | daniel0916 | 2014-04-17 | 1 | -7/+2 |
| | | |||||
* | | Modified many things | daniel0916 | 2014-04-17 | 1 | -0/+141 |
| | | |||||
* | | Added complete Enchanting System | daniel0916 | 2014-04-12 | 1 | -106/+0 |
| | | | | | | | | http://minecraft.gamepedia.com/Enchantment_mechanics | ||||
* | | Merge remote-tracking branch 'upstream/master' into Enchanting | daniel0916 | 2014-04-07 | 1 | -5/+25 |
|\| | |||||
| * | Added additional macros to support the MSVC size_t format and changed all formats to use the macros | Tycho | 2014-03-12 | 1 | -4/+4 |
| | | |||||
| * | Fixed a load of format string errors | Tycho | 2014-03-11 | 1 | -4/+4 |
| | | |||||
| * | Implemented ballistic missiles (fireworks) | Tiger Wang | 2014-02-27 | 1 | -1/+21 |
| | | | | | | | | + Added fireworks | ||||
* | | Some updates for enchanting (2) | daniel0916 | 2014-01-31 | 1 | -0/+106 |
|/ | |||||
* | Removed CustomCopy() | Tiger Wang | 2014-01-16 | 1 | -19/+0 |
| | |||||
* | Possibly did what xoft wanted | Tiger Wang | 2014-01-16 | 1 | -0/+19 |
| | |||||
* | Implemented custom names and lore | Tiger Wang | 2014-01-15 | 1 | -22/+10 |
| | | | | | | + Added custom names and lore + Added saving and loading + Added writing and parsing of NBT | ||||
* | Fixed a few MSVC warnings. | madmaxoft | 2014-01-06 | 1 | -1/+1 |
| | |||||
* | Fixed VC2008 compilation, normalized include paths. | madmaxoft | 2013-11-27 | 1 | -1/+1 |
| | |||||
* | Another | Alexander Harkness | 2013-11-26 | 1 | -1/+1 |
| | |||||
* | Attempt to fix compilation | Tiger Wang | 2013-11-24 | 1 | -1/+1 |
| | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+261 |