From d7f6dc7c06110ca7f1eead0b15b6630d7466c649 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Wed, 1 Jul 2020 11:42:17 -0700 Subject: [PATCH] Add ranged damage group to guns and crossbow * Add ranged damage group to guns * Add ranged and crossbow group to crossbow --- shooter_crossbow/init.lua | 2 +- shooter_guns/init.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/shooter_crossbow/init.lua b/shooter_crossbow/init.lua index 9408970..2e9dffd 100644 --- a/shooter_crossbow/init.lua +++ b/shooter_crossbow/init.lua @@ -37,7 +37,7 @@ end config = shooter.get_configuration(config) -local arrow_tool_caps = {damage_groups={fleshy=config.arrow_fleshy}} +local arrow_tool_caps = {damage_groups={fleshy=config.arrow_fleshy, ranged=1, crossbow=1}} if minetest.global_exists("SHOOTER_ARROW_TOOL_CAPS") then arrow_tool_caps = table.copy(SHOOTER_ARROW_TOOL_CAPS) end diff --git a/shooter_guns/init.lua b/shooter_guns/init.lua index 8eae6dd..56eee11 100644 --- a/shooter_guns/init.lua +++ b/shooter_guns/init.lua @@ -24,7 +24,7 @@ shooter.register_weapon("shooter_guns:pistol", { rounds = 200, range = 160, step = 20, - tool_caps = {full_punch_interval=0.5, damage_groups={fleshy=2}}, + tool_caps = {full_punch_interval=0.5, damage_groups={fleshy=2, ranged=1}}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, sounds = { shot = "shooter_pistol", @@ -45,7 +45,7 @@ shooter.register_weapon("shooter_guns:rifle", { rounds = 100, range = 240, step = 30, - tool_caps = {full_punch_interval=1.0, damage_groups={fleshy=3}}, + tool_caps = {full_punch_interval=1.0, damage_groups={fleshy=3, ranged=1}}, groups = {snappy=3, crumbly=3, choppy=3, fleshy=2, oddly_breakable_by_hand=2}, sounds = { shot = "shooter_rifle", @@ -68,7 +68,7 @@ shooter.register_weapon("shooter_guns:shotgun", { step = 15, shots = 15, spread = 10, - tool_caps = {full_punch_interval=1, damage_groups={fleshy=2}}, + tool_caps = {full_punch_interval=1, damage_groups={fleshy=2, ranged=1}}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, sounds = { shot = "shooter_shotgun", @@ -90,7 +90,7 @@ shooter.register_weapon("shooter_guns:machine_gun", { rounds = 32, range = 160, step = 20, - tool_caps = {full_punch_interval=0.1, damage_groups={fleshy=2}}, + tool_caps = {full_punch_interval=0.1, damage_groups={fleshy=2, ranged=1}}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, sounds = { shot = "shooter_pistol",