Skip to content

Commit

Permalink
lua-k at me!
Browse files Browse the repository at this point in the history
I'm indenting!
  • Loading branch information
techno-sam committed May 29, 2023
1 parent 54b3ead commit 1bef033
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions games/devtest/mods/basetools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -422,20 +422,22 @@ minetest.register_tool("basetools:dagger_steel", {

-- Test tool uses, punch_attack_uses, and wear bar coloring
local uses = { 1, 2, 3, 5, 10, 50, 100, 1000, 10000, 65535 }
local wear_colors = { nil, nil, nil, "#5865f2", "slateblue", {blend=true, default="#ff00ff", [0.0]="red", [0.5]="yellow", [1.0]="blue"}, {
{
color="#ff00ff",
min_durability=0.2, -- minimum durability is inclusive
max_durability=0.3 -- maximum durability is exclusive
},
{
color="#c0ffee",
min_durability=0.45,
max_durability=0.6
},
default="#ffff00", -- color to use if no other ranges match the durability
blend=false
}, nil, nil, nil }
local wear_colors = { nil, nil, nil, "#5865f2", "slateblue",
{blend=true, default="#ff00ff", [0.0]="red", [0.5]="yellow", [1.0]="blue"},
{
{
color="#ff00ff",
min_durability=0.2, -- minimum durability is inclusive
max_durability=0.3 -- maximum durability is exclusive
},
{
color="#c0ffee",
min_durability=0.45,
max_durability=0.6
},
default="#ffff00", -- color to use if no other ranges match the durability
blend=false
}, nil, nil, nil }
local wear_color_desc = { nil, nil, nil, "Solid color: #5865f2", "Solid color: slateblue", "Ranges from blue to yellow to red", "Random blocks", nil, nil, nil }
for i=1, #uses do
local u = uses[i]
Expand Down

0 comments on commit 1bef033

Please sign in to comment.