diff --git a/mods/throwing/dig_arrow.lua b/mods/throwing/dig_arrow.lua index af914501..2aa78906 100755 --- a/mods/throwing/dig_arrow.lua +++ b/mods/throwing/dig_arrow.lua @@ -55,7 +55,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) damage_groups={fleshy=damage}, }, nil) self.object:remove() - minetest.add_item(self.lastpos, "throwing:arrow_dig") + if math.random(0,100) % 2 == 0 then -- 50% of chance to drop //MFF (Mg|07/27/15) + minetest.add_item(self.lastpos, "throwing:arrow_dig") + end end end end diff --git a/mods/throwing/fire_arrow.lua b/mods/throwing/fire_arrow.lua index da26df5c..6898266c 100755 --- a/mods/throwing/fire_arrow.lua +++ b/mods/throwing/fire_arrow.lua @@ -55,7 +55,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) damage_groups={fleshy=damage}, }, nil) self.object:remove() - minetest.add_item(self.lastpos, 'default:stick') + if math.random(0,100) % 2 == 0 then -- 50% of chance to drop //MFF (Mg|07/27/15) + minetest.add_item(self.lastpos, 'default:stick') + end end end end diff --git a/mods/throwing/standard_arrows.lua b/mods/throwing/standard_arrows.lua index 8c14b76d..2cd621c8 100755 --- a/mods/throwing/standard_arrows.lua +++ b/mods/throwing/standard_arrows.lua @@ -58,7 +58,9 @@ function throwing_register_arrow_standard (kind, desc, eq, toughness, craft) }, nil) self.object:remove() if math.random() < toughness then - minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind) + if math.random(0,100) % 2 == 0 then + minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind) + end else minetest.add_item(self.lastpos, 'default:stick') end diff --git a/mods/throwing/torch_arrow.lua b/mods/throwing/torch_arrow.lua index fee7038c..5f0e86ac 100755 --- a/mods/throwing/torch_arrow.lua +++ b/mods/throwing/torch_arrow.lua @@ -58,7 +58,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) self.object:remove() local toughness = 0.9 if math.random() < toughness then - minetest.add_item(self.lastpos, 'throwing:arrow_torch') + if math.random(0,100) % 2 == 0 then -- 50% of chance to drop //MFF (Mg|07/27/15) + minetest.add_item(self.lastpos, 'throwing:arrow_torch') + end else minetest.add_item(self.lastpos, 'default:stick') end