diff options
| author | Wuzzy <Wuzzy@disroot.org> | 2022-10-09 14:05:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-09 08:05:22 -0400 |
| commit | c1c68775b25314b566a2aae9a304d1b470f5794d (patch) | |
| tree | 127bdadf77939c194d1ec01696a9a0440f769a7b /games/devtest/mods/testnodes/liquids.lua | |
| parent | 804a31818907e737a1ec727580d5822532ff3e6b (diff) | |
| download | minetest-c1c68775b25314b566a2aae9a304d1b470f5794d.tar.xz | |
DevTest: Explain purpose of most items in tooltips (#12833)
Diffstat (limited to 'games/devtest/mods/testnodes/liquids.lua')
| -rw-r--r-- | games/devtest/mods/testnodes/liquids.lua | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/games/devtest/mods/testnodes/liquids.lua b/games/devtest/mods/testnodes/liquids.lua index be33814af..13b8dd9d7 100644 --- a/games/devtest/mods/testnodes/liquids.lua +++ b/games/devtest/mods/testnodes/liquids.lua @@ -1,8 +1,15 @@ -- Add liquids for ranges and viscosity levels 0-8 for d=0, 8 do + local tt_normal + if d == 0 then + tt_normal = "\n".."Swimmable, renewable liquid" + else + tt_normal = "\n".."Swimmable, spreading, renewable liquid" + end minetest.register_node("testnodes:rliquid_"..d, { - description = "Test Liquid Source, Range "..d, + description = "Test Liquid Source, Range "..d.. + tt_normal, drawtype = "liquid", tiles = {"testnodes_liquidsource_r"..d..".png"}, special_tiles = { @@ -21,7 +28,8 @@ for d=0, 8 do }) minetest.register_node("testnodes:rliquid_flowing_"..d, { - description = "Flowing Test Liquid, Range "..d, + description = "Flowing Test Liquid, Range "..d.. + tt_normal, drawtype = "flowingliquid", tiles = {"testnodes_liquidflowing_r"..d..".png"}, special_tiles = { @@ -42,9 +50,16 @@ for d=0, 8 do if d <= 7 then + local tt_reduced = "" + if d > 0 then + tt_reduced = "\n".."Reduced swimming/spreading speed" + end + local mod = "^[colorize:#000000:127" minetest.register_node("testnodes:vliquid_"..d, { - description = "Test Liquid Source, Viscosity/Resistance "..d, + description = "Test Liquid Source, Viscosity/Resistance "..d.."\n".. + "Swimmable, spreading, renewable liquid".. + tt_reduced, drawtype = "liquid", tiles = {"testnodes_liquidsource_r"..d..".png"..mod}, special_tiles = { @@ -63,7 +78,9 @@ for d=0, 8 do }) minetest.register_node("testnodes:vliquid_flowing_"..d, { - description = "Flowing Test Liquid, Viscosity/Resistance "..d, + description = "Flowing Test Liquid, Viscosity/Resistance "..d.."\n".. + "Swimmable, spreading, renewable liquid".. + tt_reduced, drawtype = "flowingliquid", tiles = {"testnodes_liquidflowing_r"..d..".png"..mod}, special_tiles = { @@ -85,7 +102,9 @@ for d=0, 8 do mod = "^[colorize:#000000:192" local v = 4 minetest.register_node("testnodes:vrliquid_"..d, { - description = "Test Liquid Source, Viscosity "..v..", Resistance "..d, + description = "Test Liquid Source, Viscosity "..v..", Resistance "..d.."\n".. + "Swimmable, spreading, renewable liquid".. + tt_reduced, drawtype = "liquid", tiles = {"testnodes_liquidsource_r"..d..".png"..mod}, special_tiles = { @@ -107,7 +126,9 @@ for d=0, 8 do }) minetest.register_node("testnodes:vrliquid_flowing_"..d, { - description = "Flowing Test Liquid, Viscosity "..v..", Resistance "..d, + description = "Flowing Test Liquid, Viscosity "..v..", Resistance "..d.."\n".. + "Swimmable, spreading, renewable liquid".. + tt_reduced, drawtype = "flowingliquid", tiles = {"testnodes_liquidflowing_r"..d..".png"..mod}, special_tiles = { |
