Wuzzy
b81948a14c
Fix damage wraparound if very high damage ( #11872 )
2022-01-06 21:16:35 +01:00
Wuzzy
6910c8d920
Fix number of tool uses being off by 1..32767 ( #11110 )
2021-10-31 22:33:33 +00:00
sfan5
70f9e1aafa
Punchwear (improved) ( #8959 )
2019-09-22 22:12:21 +02:00
SmallJoker
e462a9a5ef
Unify wield item handling ( #8677 )
...
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-08-07 19:16:31 +02:00
Hybrid Dog
345e1041a2
Tool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead code
2018-01-03 04:01:15 +00:00
raymoo
a637107a4e
Allow overriding tool capabilities through itemstack metadata
...
This makes it possible to modify the tool capabilities of individual
itemstacks by calling a method on itemstack metadata references.
2017-10-29 11:57:38 +00:00
Loïc Blot
1c1c97cbd1
Modernize source code: last part ( #6285 )
...
* 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-08-20 13:30:50 +02:00
Loïc Blot
921151d97a
C++ modernize: Pragma once ( #6264 )
...
* Migrate cpp headers to pragma once
2017-08-17 22:19:39 +02:00
Loïc Blot
1425c6def1
Cpp11 initializers: last src root changeset ( #6022 )
...
* Cpp11 initializers: last src root changeset
Finish to migrate all src root folder files to C++11 constructor initializers
2017-06-21 11:51:29 +02:00
Loïc Blot
a98baef5e4
C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h ( #5821 )
2017-06-04 21:00:04 +02:00
Loïc Blot
f3fe62a0bf
Fix various copy instead of const ref reported by cppcheck ( #5615 )
...
* Also remove InventoryList::peekItem unused function
* Fix some post increment to preincrement reported by cppcheck
2017-04-19 23:02:07 +02:00
Loic Blot
5f084cd98d
Make some maps unordered to improve performance
...
* This permit to improve performance on C++11 builds
* use some existing typedefs in tools maps
* minor code style changes
2016-10-05 07:30:32 +02:00
PilzAdam
7d9329ecfe
New damage system, add damageGroups to ToolCapabilities, bump protocol version
2013-03-29 20:14:09 +01:00
Sfan5
6d0ea26c2d
Update Copyright Years
2013-02-24 20:15:24 +01:00
PilzAdam
497ff1ecd6
Change Minetest-c55 to Minetest
2013-02-24 18:49:03 +01:00
Perttu Ahola
9f031a6759
Optimize headers
2012-06-17 04:03:39 +03:00
Perttu Ahola
037b259197
Switch the license to be LGPLv2/later, with small parts still remaining as GPLv2/later, by agreement of major contributors
2012-06-05 18:54:07 +03:00
Perttu Ahola
440e9cdbef
Rework tool_capabilities a bit (maxwear->uses, scale dig time according to leveldiff)
2012-03-29 13:35:20 +03:00
Perttu Ahola
77120a021d
Digging and placing sounds
2012-03-24 04:24:26 +02:00
Perttu Ahola
9dd78a8a45
Seriously WTF, LLVM/clang?
2012-03-23 00:45:18 +02:00
Perttu Ahola
989aba1966
Fix and tune things, add tool "recharge" animation, add dummyball
2012-03-10 11:28:14 +02:00
Perttu Ahola
501b8fe743
Damage groups WIP
2012-03-10 11:28:13 +02:00
Perttu Ahola
07ed57476f
itemgroup.h and ItemGroupList typedef
2012-03-10 11:28:13 +02:00
Perttu Ahola
562ac3bce9
Digging time groups WIP
2012-03-10 11:28:12 +02:00
Perttu Ahola
c6fd2986d4
GameDef compiles
2011-11-29 19:13:42 +02:00
Perttu Ahola
abceeee92f
Create framework for getting rid of global definitions of node/tool/item/whatever types
2011-11-29 19:13:41 +02:00
Perttu Ahola
5fc791ac9a
Move tool stuff to tool.{h,cpp}
2011-11-29 19:13:41 +02:00