1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

DevTest: Explain purpose of most items in tooltips (#12833)

This commit is contained in:
Wuzzy 2022-10-09 14:05:22 +02:00 committed by GitHub
parent 804a318189
commit c1c68775b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 367 additions and 173 deletions

View file

@ -91,6 +91,7 @@ minetest.register_on_mods_loaded(function()
* Other tools
* Craftitems
* Other items
* Items from the 'broken' mod
* Dummy items ]]
local function compare(item1, item2)
local def1 = minetest.registered_items[item1]
@ -101,6 +102,8 @@ minetest.register_on_mods_loaded(function()
local testtool2 = minetest.get_item_group(item2, "testtool") == 1
local dummy1 = minetest.get_item_group(item1, "dummy") == 1
local dummy2 = minetest.get_item_group(item2, "dummy") == 1
local broken1 = def1.mod_origin == "broken"
local broken2 = def2.mod_origin == "broken"
local craftitem1 = def1.type == "craft"
local craftitem2 = def2.type == "craft"
if item1 == "chest_of_everything:chest" then
@ -111,6 +114,10 @@ minetest.register_on_mods_loaded(function()
return false
elseif not dummy1 and dummy2 then
return true
elseif broken1 and not broken2 then
return false
elseif not broken1 and broken2 then
return true
elseif testtool1 and not testtool2 then
return true
elseif not testtool1 and testtool2 then