summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-18Warnings improvementsTiger Wang1-1/+1
* 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
2020-10-10Anvil fixes (#4976)KingCol131-1/+1
* Rewrite to use wiki target/sacrifice terminology. * Fix negative damages. * Prevent repairing if output matches target. * Make target and sacrifice const. * Pre-PR tidy-up * Keep m_MaximumCost updated.
2020-10-01Enchanting table shows detail on hover. Enchanting is deterministic. (#4937)KingCol131-3/+4
* Use lapis for enchanting, subtract correct number of levels, ClientHandle now selects from pregenerated list. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-17Add some const qualifiers to functions (#4874)12xx121-1/+1
* add some const qualifiers to functions * added changes suggested by @tigerw Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-1/+1
* 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
2017-08-24Minor changes (#3909)mathiascode1-1/+1
2017-07-28Added anvil enchantment handling. (#3857)Lane Kolbly1-1/+19
+ Added anvil enchantment handling.
2016-12-19Updated links and docs (#3488)mathiascode1-1/+1
2016-07-18Updated API documentation.Mattes D1-1/+1
2016-02-05Bulk clearing of whitespaceLogicParrot1-17/+17
2015-05-19Make -Werror disabling file onlytycho1-4/+4
Ad fix a load of warnings
2015-05-09CheckBasicStyle: checks spaces around * and &.Mattes D1-2/+2
2015-05-09More style checking.Mattes D1-1/+1
Spaces around some operators are checked.
2014-12-22Added Depth Strider enchantmentJonathan Fabian1-0/+1
2014-12-21Fixed a possible division by zero.Mattes D1-2/+4
2014-10-15Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to beforeSTRWarrior1-1/+4
Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
2014-10-15Enchanted books generate in MineShafts chestsSTRWarrior1-1/+1
2014-08-11Gave names to unnamed enumsarchshift1-1/+1
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-1/+1
2014-05-06Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner1-1/+1
2014-05-05Change int to size_t return.Howaner1-1/+1
2014-05-05Add anvil window and slot area.Howaner1-0/+3
2014-04-23Updated docs for StringToEnchantmentID.madmaxoft1-1/+1
Ref.: mc-server/Core#67
2014-04-21Added enchantment combining into cEnchantments.madmaxoft1-16/+21
2014-04-19Fixed Codedaniel09161-4/+7
2014-04-19Fixed Codedaniel09161-4/+4
2014-04-18Fixed Errorsdaniel09161-0/+1
2014-04-18Removed old includedaniel09161-1/+0
2014-04-17Fixed some Errors (not all)daniel09161-5/+8
2014-04-17Modified many thingsdaniel09161-2/+28
2014-04-12Added complete Enchanting Systemdaniel09161-2/+2
http://minecraft.gamepedia.com/Enchantment_mechanics
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper1-1/+0
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper1-1/+0
2014-02-23Finally corrected the Enchantment constants.TheJumper1-33/+0
2014-02-22Changed formatting, encapsuled armor drop, introduced better static Enchantment IDsTheJumper1-0/+32
2014-01-31Some updates for enchanting (2)daniel09161-1/+4
2014-01-19Switched EnchantmentSerilizer to namespaceTycho1-3/+8
2014-01-19Spilt Writing of Enchantments to seperate classTycho1-5/+2
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-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-13Update Enchantments.hnesco1-2/+2
2013-11-12Added the new enchantments of Minecraft 1.7nesco1-1/+2
Added the following enchantments : Luck of the Sea : ID = 61 Lure : ID = 62
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-114/+114
2013-06-04Removed cLadder, cSign, cStairs, cTorch and cVine classes, moved their functionality into the appropriate BlockHandlers / ItemHandlersmadmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1555 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-04Fixed cItem::IsStackableWith()madmaxoft@gmail.com1-0/+3
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/+3
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-2/+5
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/+105
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1539 0a769ca7-a7f5-676a-18bf-c427514a06d6