Increase damage from crossbows and shotguns

This commit is contained in:
rubenwardy 2017-11-07 22:32:15 +00:00
parent bc1ba727eb
commit 45ef43d964
2 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,5 @@
SHOOTER_CROSSBOW_USES = 50
SHOOTER_ARROW_TOOL_CAPS = {damage_groups={fleshy=2}}
SHOOTER_ARROW_TOOL_CAPS = {damage_groups={fleshy=7}}
SHOOTER_ARROW_LIFETIME = 180 -- 3 minutes
minetest.register_alias("shooter:arrow", "shooter:arrow_white")
@ -200,7 +200,7 @@ for _, color in pairs(dye_basecolors) do
obj:set_properties({
textures = {get_texture("arrow_uv", color)}
})
minetest.sound_play("shooter_throw", {object=obj})
minetest.sound_play("shooter_throw", {object=obj})
local frame = get_animation_frame(dir)
obj:setyaw(yaw + math.pi)
obj:set_animation({x=frame, y=frame}, 0)
@ -290,4 +290,3 @@ if SHOOTER_ENABLE_CRAFTING == true then
end
end
end

View file

@ -33,7 +33,7 @@ shooter:register_weapon("shooter:shotgun", {
spec = {
range = 50,
step = 15,
tool_caps = {full_punch_interval=1.5, damage_groups={fleshy=4}},
tool_caps = {full_punch_interval=1.5, damage_groups={fleshy=6}},
groups = {cracky=3, snappy=2, crumbly=2, choppy=2, fleshy=1, oddly_breakable_by_hand=1},
sound = "shooter_shotgun",
particle = "smoke_puff.png",
@ -124,4 +124,3 @@ minetest.register_globalstep(function(dtime)
shooter.time = 0
end
end)