summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Warnings improvementsTiger Wang2020-12-181-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
* Anvil fixes (#4976)KingCol132020-10-101-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.
* Enchanting table shows detail on hover. Enchanting is deterministic. (#4937)KingCol132020-10-011-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>
* Add some const qualifiers to functions (#4874)12xx122020-09-171-1/+1
| | | | | | | * add some const qualifiers to functions * added changes suggested by @tigerw Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-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
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Added anvil enchantment handling. (#3857)Lane Kolbly2017-07-281-1/+19
| | | + Added anvil enchantment handling.
* Updated links and docs (#3488)mathiascode2016-12-191-1/+1
|
* Updated API documentation.Mattes D2016-07-181-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-17/+17
|
* Make -Werror disabling file onlytycho2015-05-191-4/+4
| | | | Ad fix a load of warnings
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-2/+2
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* Added Depth Strider enchantmentJonathan Fabian2014-12-221-0/+1
|
* Fixed a possible division by zero.Mattes D2014-12-211-2/+4
|
* Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to beforeSTRWarrior2014-10-151-1/+4
| | | | Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
* Enchanted books generate in MineShafts chestsSTRWarrior2014-10-151-1/+1
|
* Gave names to unnamed enumsarchshift2014-08-111-1/+1
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner2014-05-061-1/+1
|
* Change int to size_t return.Howaner2014-05-051-1/+1
|
* Add anvil window and slot area.Howaner2014-05-051-0/+3
|
* Updated docs for StringToEnchantmentID.madmaxoft2014-04-231-1/+1
| | | | Ref.: mc-server/Core#67
* Added enchantment combining into cEnchantments.madmaxoft2014-04-211-16/+21
|
* Fixed Codedaniel09162014-04-191-4/+7
|
* Fixed Codedaniel09162014-04-191-4/+4
|
* Fixed Errorsdaniel09162014-04-181-0/+1
|
* Removed old includedaniel09162014-04-181-1/+0
|
* Fixed some Errors (not all)daniel09162014-04-171-5/+8
|
* Modified many thingsdaniel09162014-04-171-2/+28
|
* Added complete Enchanting Systemdaniel09162014-04-121-2/+2
| | | | http://minecraft.gamepedia.com/Enchantment_mechanics
* Merge remote-tracking branch 'upstream/master' into Enchantingdaniel09162014-04-071-1/+0
|\
| * Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper2014-02-231-1/+0
| |
* | Some updates for enchanting (2)daniel09162014-01-311-1/+4
|/
* Switched EnchantmentSerilizer to namespaceTycho2014-01-191-3/+8
|
* Spilt Writing of Enchantments to seperate classTycho2014-01-191-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
* Moved source to srcAlexander Harkness2013-11-241-0/+115