From fe4093606572f669035251a6ed0a4d81000c0359 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 5 Aug 2020 14:20:53 +0200 Subject: [PATCH] Remove redundant arrow help string definition --- mods/ITEMS/mcl_potions/tipped_arrow.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mods/ITEMS/mcl_potions/tipped_arrow.lua b/mods/ITEMS/mcl_potions/tipped_arrow.lua index b338a18e..9870c96a 100644 --- a/mods/ITEMS/mcl_potions/tipped_arrow.lua +++ b/mods/ITEMS/mcl_potions/tipped_arrow.lua @@ -32,17 +32,16 @@ local how_to_shoot = minetest.registered_items["mcl_bows:arrow"]._doc_items_usag local mod_awards = minetest.get_modpath("awards") and minetest.get_modpath("mcl_achievements") local mod_button = minetest.get_modpath("mesecons_button") +local arrow_longdesc = minetest.registered_items["mcl_bows:arrow"]._doc_items_longdesc or "" +local arrow_tt = minetest.registered_items["mcl_bows:arrow"]._tt_help or "" + function mcl_potions.register_arrow(name, desc, color, def) local longdesc = def.longdesc or "" minetest.register_craftitem("mcl_potions:"..name.."_arrow", { description = desc, - _tt_help = S("Ammunition").."\n"..S("Damage from bow: 1-10").."\n"..S("Damage from dispenser: 3").."\n"..def.tt, - _doc_items_longdesc = S("Arrows are ammunition for bows and dispensers.").."\n".. - S("An arrow fired from a bow has a regular damage of 1-9. At full charge, there's a 20% chance of a critical hit dealing 10 damage instead. An arrow fired from a dispenser always deals 3 damage.").."\n".. - S("Arrows might get stuck on solid blocks and can be retrieved again. They are also capable of pushing wooden buttons.").."\n".. - S("This particular arrow is tipped and will give an effect when it hits a player or mob.").."\n".. - longdesc, + _tt_help = arrow_tt .. "\n" .. def.tt, + _doc_items_longdesc = arrow_longdesc .. "\n" .. longdesc, _doc_items_usagehelp = how_to_shoot, inventory_image = "mcl_bows_arrow_inv.png^(mcl_potions_arrow_inv.png^[colorize:"..color..":100)", groups = { ammo=1, ammo_bow=1, brewitem=1},