summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-0/+1
| | | | | | | | | 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
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-1/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Added anvil enchantment handling. (#3857)Lane Kolbly2017-07-281-25/+183
| | | + Added anvil enchantment handling.
* FastRandom rewrite (#3754)peterbell102017-06-131-3/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Use container-based infrastructure for TravisTiger Wang2015-08-201-2/+2
|
* Make -Werror disabling file onlytycho2015-05-191-5/+5
| | | | Ad fix a load of warnings
* Added Depth Strider enchantmentJonathan Fabian2014-12-221-0/+15
|
* Fixed a possible division by zero.Mattes D2014-12-211-3/+11
|
* Moved all Noise-related files into a separate folder.Mattes D2014-11-181-1/+1
|
* Using C++11 loopsSTRWarrior2014-10-151-5/+5
|
* IntNoise1DInt result gets devided by 7 firstSTRWarrior2014-10-151-1/+1
| | | | suggestion by xoft
* Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to beforeSTRWarrior2014-10-151-4/+28
| | | | Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
* Enchanted books generate in MineShafts chestsSTRWarrior2014-10-151-1/+5
|
* Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner2014-05-061-1/+1
|
* Change int to size_t return.Howaner2014-05-051-2/+2
|
* Add anvil window and slot area.Howaner2014-05-051-0/+9
|
* Added enchantment combining into cEnchantments.madmaxoft2014-04-211-0/+12
|
* Fixed Codedaniel09162014-04-191-141/+141
|
* Fixed Codedaniel09162014-04-191-327/+315
|
* Fixed Errorsdaniel09162014-04-181-1/+19
|
* Modified many thingsdaniel09162014-04-171-0/+769
|
* Fixed enchantment parsing.madmaxoft2014-04-101-12/+17
| | | | Fixes #880. Enchantment parsing now reports in detail which value failed to parse
* Spilt Writing of Enchantments to seperate classTycho2014-01-191-79/+0
| | | | | | | Created a new class cEnchantmentSerializer to serilize Enchantments to NBT. This breaks a dependecy chain between cChunkGenerator and cWorld. cEnchantmentSerializer is seperate from NBTWriter as it needs to access private members of cEnchantments so having it seperate reduces the spread of the frein modifier
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+299