From 45ef43d96491bddae1287a1d320c7c0b58f62d65 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 7 Nov 2017 22:32:15 +0000 Subject: [PATCH] Increase damage from crossbows and shotguns --- mods/shooter/crossbow.lua | 5 ++--- mods/shooter/guns.lua | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mods/shooter/crossbow.lua b/mods/shooter/crossbow.lua index 69c3083..24bd3c6 100644 --- a/mods/shooter/crossbow.lua +++ b/mods/shooter/crossbow.lua @@ -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 - diff --git a/mods/shooter/guns.lua b/mods/shooter/guns.lua index d31a724..7d45063 100644 --- a/mods/shooter/guns.lua +++ b/mods/shooter/guns.lua @@ -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) -