Skip to content

Commit

Permalink
Lord Bows: add damge info to arrows description. Closes #1457
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Jul 3, 2024
1 parent b19981b commit 21a2c2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mods/lord/_experimental/lord_bows/src/bows/api.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
local S_tt = minetest.get_translator("tt_base")


require("bows.behavior.mechanics_throwing")
local entity_projectiles = require("bows.behavior.entity_projectiles")

Expand Down Expand Up @@ -94,7 +97,9 @@ local function register_projectile(name, reg)
damage = reg.damage or 10,
})

minetest.register_craftitem(name, def)
minetest.register_craftitem(name, table.overwrite({
_tt_help = S_tt("Damage: @1", reg.damage)
}, def))
end

return {
Expand Down

0 comments on commit 21a2c2e

Please sign in to comment.