mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Remove redundant arrow help string definition
This commit is contained in:
parent
c051a95dae
commit
fe40936065
1 changed files with 5 additions and 6 deletions
|
@ -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_awards = minetest.get_modpath("awards") and minetest.get_modpath("mcl_achievements")
|
||||||
local mod_button = minetest.get_modpath("mesecons_button")
|
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)
|
function mcl_potions.register_arrow(name, desc, color, def)
|
||||||
|
|
||||||
local longdesc = def.longdesc or ""
|
local longdesc = def.longdesc or ""
|
||||||
minetest.register_craftitem("mcl_potions:"..name.."_arrow", {
|
minetest.register_craftitem("mcl_potions:"..name.."_arrow", {
|
||||||
description = desc,
|
description = desc,
|
||||||
_tt_help = S("Ammunition").."\n"..S("Damage from bow: 1-10").."\n"..S("Damage from dispenser: 3").."\n"..def.tt,
|
_tt_help = arrow_tt .. "\n" .. def.tt,
|
||||||
_doc_items_longdesc = S("Arrows are ammunition for bows and dispensers.").."\n"..
|
_doc_items_longdesc = arrow_longdesc .. "\n" .. longdesc,
|
||||||
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,
|
|
||||||
_doc_items_usagehelp = how_to_shoot,
|
_doc_items_usagehelp = how_to_shoot,
|
||||||
inventory_image = "mcl_bows_arrow_inv.png^(mcl_potions_arrow_inv.png^[colorize:"..color..":100)",
|
inventory_image = "mcl_bows_arrow_inv.png^(mcl_potions_arrow_inv.png^[colorize:"..color..":100)",
|
||||||
groups = { ammo=1, ammo_bow=1, brewitem=1},
|
groups = { ammo=1, ammo_bow=1, brewitem=1},
|
||||||
|
|
Loading…
Reference in a new issue