Skip to content

Commit 986d70c

Browse files
DonBatmanparamat
authored andcommittedAug 14, 2016
Lua_api.txt: Change 'maxwear' to 'uses' in 'tool_capabilities'
'maxwear' has been deprecated for over 3 years Add spaces around '=' nearby
1 parent f21dae6 commit 986d70c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed
 

‎doc/lua_api.txt

+10-11
Original file line numberDiff line numberDiff line change
@@ -3472,27 +3472,26 @@ Definition tables
34723472

34733473
{
34743474
description = "Steel Axe",
3475-
groups = {}, -- key=name, value=rating; rating=1..3.
3475+
groups = {}, -- key = name, value = rating; rating = 1..3.
34763476
if rating not applicable, use 1.
3477-
e.g. {wool=1, fluffy=3}
3478-
{soil=2, outerspace=1, crumbly=1}
3479-
{bendy=2, snappy=1},
3480-
{hard=1, metal=1, spikes=1}
3477+
e.g. {wool = 1, fluffy = 3}
3478+
{soil = 2, outerspace = 1, crumbly = 1}
3479+
{bendy = 2, snappy = 1},
3480+
{hard = 1, metal = 1, spikes = 1}
34813481
inventory_image = "default_tool_steelaxe.png",
34823482
wield_image = "",
3483-
wield_scale = {x=1,y=1,z=1},
3483+
wield_scale = {x = 1, y = 1, z = 1},
34843484
stack_max = 99,
34853485
range = 4.0,
34863486
liquids_pointable = false,
34873487
tool_capabilities = {
34883488
full_punch_interval = 1.0,
3489-
max_drop_level=0,
3490-
groupcaps={
3489+
max_drop_level = 0,
3490+
groupcaps = {
34913491
-- For example:
3492-
snappy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
3493-
choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
3492+
choppy = {times = {[1] = 2.50, [2] = 1.40, [3] = 1.00}, uses = 20, maxlevel = 2},
34943493
},
3495-
damage_groups = {groupname=damage},
3494+
damage_groups = {groupname = damage},
34963495
},
34973496
node_placement_prediction = nil,
34983497
--[[

0 commit comments

Comments
 (0)
Please sign in to comment.