summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-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
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-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
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-1/+0
Add check for number of empty lines between functions and fix the corresponding failures
2017-07-28Added anvil enchantment handling. (#3857)Lane Kolbly1-25/+183
+ Added anvil enchantment handling.
2017-06-13FastRandom rewrite (#3754)peterbell101-3/+1
2016-02-05Bulk clearing of whitespaceLogicParrot1-2/+2
2015-08-20Use container-based infrastructure for TravisTiger Wang1-2/+2
2015-05-19Make -Werror disabling file onlytycho1-5/+5
Ad fix a load of warnings
2014-12-22Added Depth Strider enchantmentJonathan Fabian1-0/+15
2014-12-21Fixed a possible division by zero.Mattes D1-3/+11
2014-11-18Moved all Noise-related files into a separate folder.Mattes D1-1/+1
2014-10-15Using C++11 loopsSTRWarrior1-5/+5
2014-10-15IntNoise1DInt result gets devided by 7 firstSTRWarrior1-1/+1
suggestion by xoft
2014-10-15Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to beforeSTRWarrior1-4/+28
Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
2014-10-15Enchanted books generate in MineShafts chestsSTRWarrior1-1/+5
2014-05-06Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner1-1/+1
2014-05-05Change int to size_t return.Howaner1-2/+2
2014-05-05Add anvil window and slot area.Howaner1-0/+9
2014-04-21Added enchantment combining into cEnchantments.madmaxoft1-0/+12
2014-04-19Fixed Codedaniel09161-141/+141
2014-04-19Fixed Codedaniel09161-327/+315
2014-04-18Fixed Errorsdaniel09161-1/+19
2014-04-17Modified many thingsdaniel09161-0/+769
2014-04-10Fixed enchantment parsing.madmaxoft1-12/+17
Fixes #880. Enchantment parsing now reports in detail which value failed to parse
2014-01-19Spilt Writing of Enchantments to seperate classTycho1-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
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-13Update Enchantments.cppnesco1-2/+2
2013-11-12Corrected the comma errornesco1-2/+2
2013-11-12Update Enchantments.cppnesco1-2/+2
2013-11-12Added the new enchantments of Minecraft 1.7nesco1-1/+2
-Luck of the sea -Lure
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-298/+298
2013-06-04Fixed cItem::IsStackableWith()madmaxoft@gmail.com1-0/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1547 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-04Added cItem copy-constructor to Lua API, made cItem::IsEqual() and IsStackable() enchantment-awaremadmaxoft@gmail.com1-0/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1546 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02Added the possibility to specify enchantments by name in the constructor and AddFromString() functionmadmaxoft@gmail.com1-1/+50
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1542 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02Enchantments are now stored in Anvil world and in player inventorymadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1541 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02Enchantments: API and sending to clientmadmaxoft@gmail.com1-0/+231
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1539 0a769ca7-a7f5-676a-18bf-c427514a06d6