aboutsummaryrefslogtreecommitdiff
path: root/src/tool.cpp
AgeCommit message (Collapse)Author
2021-10-31Fix number of tool uses being off by 1..32767 (#11110)Wuzzy
2021-03-20Serialize tool capabilities JSON without whitespacesfan5
fixes #11087
2020-10-01(se)SerializeString: Include max length in the nameSmallJoker
This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2019-09-22Punchwear (improved) (#8959)sfan5
2019-08-07Unify wield item handling (#8677)SmallJoker
This moves the wield item functions to Player and the tool utils for range calculation Also 'local_inventory' was removed due to redundancy in Client
2019-07-31Allow toolcaps to override the built-in times for dig_immediatesfan5
2019-01-03Proselytize the network. Use IEEE F32 (#8030)SmallJoker
* Proselytize the network. Use IEEE F32 * Remove unused V2F1000 functions
2018-01-03Tool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead codeHybrid Dog
2018-01-03Tool getDigParams: Fix selecting the best fitting timeHybrid Dog
Previously, time was compared with result_time before dividing it by the level difference.
2017-10-29Allow overriding tool capabilities through itemstack metadataraymoo
This makes it possible to modify the tool capabilities of individual itemstacks by calling a method on itemstack metadata references.
2017-08-29Bump minimal protocol version to 36 (#6319)SmallJoker
* Bump minimal protocol version to 36 Item/Node/TileDef, NodeBox, TileAnimation: Remove old compat code * Accept future serialisation versions
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-06-04C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)Loïc Blot
2017-04-28Fix click-digging torches (#5652)you
Torches are dug instantly again. When the digging time is 0, a delay of 0.15 seconds is added between digging nodes. If the left mouse button is released, the delay is set to 0, thus click-digging.
2017-04-19Tools: Fix tool digging speed limitHybrid Dog
2017-03-19Update server min protocol version to v24 (#5411)Loïc Blot
* Update server min protocol version to v24 It's based on @sfan5 stats. See https://kitsunemimi.pw/tmp/serverlist_stats_2017-03-17.txt v24 was bumped 25/08/14 and 0.4.11 was released 25/12/14 * Drop protocol v23 and lesser code
2016-10-05Make some maps unordered to improve performanceLoic Blot
* This permit to improve performance on C++11 builds * use some existing typedefs in tools maps * minor code style changes
2015-08-25Change i++ to ++iDavid Jones
2014-07-02Fix inversion of full_punch_intervalNovatux
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-03-29New damage system, add damageGroups to ToolCapabilities, bump protocol versionPilzAdam
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-03-29Rework tool_capabilities a bit (maxwear->uses, scale dig time according to ↵Perttu Ahola
leveldiff)
2012-03-24Digging and placing soundsPerttu Ahola
2012-03-10dig_immediate=2 -> 0.5 seconds digging timePerttu Ahola
2012-03-10dig_immediate=3 instead of 1 means 0 secondsPerttu Ahola
2012-03-10Damage groups WIPPerttu Ahola
2012-03-10Small fix in getHitParamsPerttu Ahola
2012-03-10itemgroup.h and ItemGroupList typedefPerttu Ahola
2012-03-10Tune group digging time stuff a bitPerttu Ahola
2012-03-10Digging time groups WIPPerttu Ahola
2011-11-29GameDef compilesPerttu Ahola
2011-11-29Create framework for getting rid of global definitions of ↵Perttu Ahola
node/tool/item/whatever types
2011-11-29Move tool stuff to tool.{h,cpp}Perttu Ahola