Add tool groups for use by various mods (#50)

This commit is contained in:
Dirkfried 2023-01-25 15:30:32 +01:00 committed by GitHub
parent c142b47539
commit 5be4ccb23f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,18 +197,22 @@ local function add_ore(modname, description, mineral_name, oredef)
if tool_name == "sword" then
tdef.description = S("@1 Sword", S(description))
tdef.groups = {sword = 1}
end
if tool_name == "pick" then
tdef.description = S("@1 Pickaxe", S(description))
tdef.groups = {pickaxe = 1}
end
if tool_name == "axe" then
tdef.description = S("@1 Axe", S(description))
tdef.groups = {axe = 1}
end
if tool_name == "shovel" then
tdef.description = S("@1 Shovel", S(description))
tdef.groups = {shovel = 1}
tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90"
end