add toolranks support to shears and battleaxe
fixes https://github.com/pandorabox-io/in-game/issues/228
This commit is contained in:
parent
eea43a7833
commit
8f099edee0
@ -38,5 +38,6 @@ read_globals = {
|
||||
"advtrains",
|
||||
"letters", "player_monoids",
|
||||
"pipeworks", "planetoidgen",
|
||||
"xban", "beerchat", "drawers"
|
||||
"xban", "beerchat", "drawers",
|
||||
"toolranks",
|
||||
}
|
||||
|
7
init.lua
7
init.lua
@ -219,4 +219,9 @@ end
|
||||
|
||||
if minetest.get_modpath("drawers") then
|
||||
dofile(MP.."/chat/drawers_fix.lua")
|
||||
end
|
||||
end
|
||||
|
||||
-- extra toolranks support
|
||||
if minetest.get_modpath("toolranks") then
|
||||
dofile(MP.."/toolranks.lua")
|
||||
end
|
||||
|
2
mod.conf
2
mod.conf
@ -46,8 +46,10 @@ stamina,
|
||||
technic,
|
||||
technic_cnc,
|
||||
telemosaic,
|
||||
toolranks,
|
||||
travelnet,
|
||||
unified_inventory,
|
||||
vacuum,
|
||||
vines,
|
||||
xp_redo
|
||||
"""
|
||||
|
23
toolranks.lua
Normal file
23
toolranks.lua
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
-- Battleaxe
|
||||
|
||||
if minetest.get_modpath("castle_weapons") then
|
||||
local desc = minetest.registered_tools["castle_weapons:battleaxe"].description
|
||||
minetest.override_item("castle_weapons:battleaxe", {
|
||||
description = toolranks.create_description(desc, 0, 1),
|
||||
original_description = desc,
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- Vine shears
|
||||
|
||||
if minetest.get_modpath("vines") then
|
||||
local desc = minetest.registered_tools["vines:shears"].description
|
||||
minetest.override_item("vines:shears", {
|
||||
description = toolranks.create_description(desc, 0, 1),
|
||||
original_description = desc,
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user