removed on_drop - causing duplicate item dropped from chest, enhanced all bows stiffness

master
juraj 2016-02-27 16:21:01 +01:00
parent e43c3cdf12
commit a142cf04e5
2 changed files with 13 additions and 13 deletions

View File

@ -119,11 +119,11 @@ function throwing_register_bow (name, desc, scale, stiffness, reload_time, tough
minetest.after(0, throwing_unload, itemstack, user, unloaded, wear) minetest.after(0, throwing_unload, itemstack, user, unloaded, wear)
return itemstack return itemstack
end, end,
on_drop = function(itemstack, dropper, pointed_thing) -- on_drop = function(itemstack, dropper, pointed_thing)
local wear = itemstack:get_wear() -- local wear = itemstack:get_wear()
local unloaded = "throwing:" .. name -- local unloaded = "throwing:" .. name
minetest.after(0, throwing_unload, itemstack, dropper, unloaded, wear) -- minetest.after(0, throwing_unload, itemstack, dropper, unloaded, wear)
end, -- end,
groups = {not_in_creative_inventory=1}, groups = {not_in_creative_inventory=1},
}) })

View File

@ -1,5 +1,5 @@
if not DISABLE_WOODEN_BOW then if not DISABLE_WOODEN_BOW then
throwing_register_bow ('bow_wood', 'Wooden bow', {x=1, y=1, z=0.5}, 11, 0.8, 50, false, { throwing_register_bow ('bow_wood', 'Wooden bow', {x=1, y=1, z=0.5}, 22, 0.8, 50, false, {
{'', 'default:stick', ''}, {'', 'default:stick', ''},
{'farming:string', '', 'default:stick'}, {'farming:string', '', 'default:stick'},
{'', 'default:stick', ''}, {'', 'default:stick', ''},
@ -7,7 +7,7 @@ if not DISABLE_WOODEN_BOW then
end end
if not DISABLE_LONGBOW then if not DISABLE_LONGBOW then
throwing_register_bow ('longbow', 'Longbow', {x=1, y=2.5, z=0.5}, 17, 1.8, 100, false, { throwing_register_bow ('longbow', 'Longbow', {x=1, y=2.5, z=0.5}, 34, 1.8, 100, false, {
{'farming:string', 'group:wood', ''}, {'farming:string', 'group:wood', ''},
{'farming:string', '', 'group:wood'}, {'farming:string', '', 'group:wood'},
{'farming:string', 'group:wood', ''}, {'farming:string', 'group:wood', ''},
@ -15,7 +15,7 @@ if not DISABLE_LONGBOW then
end end
if not DISABLE_COMPOSITE_BOW then if not DISABLE_COMPOSITE_BOW then
throwing_register_bow ('bow_composite', 'Composite bow', {x=1, y=1.4, z=0.5}, 17, 1, 150, false, { throwing_register_bow ('bow_composite', 'Composite bow', {x=1, y=1.4, z=0.5}, 34, 1, 150, false, {
{'farming:string', 'group:wood', ''}, {'farming:string', 'group:wood', ''},
{'farming:string', '', 'default:steel_ingot'}, {'farming:string', '', 'default:steel_ingot'},
{'farming:string', 'group:wood', ''}, {'farming:string', 'group:wood', ''},
@ -23,7 +23,7 @@ if not DISABLE_COMPOSITE_BOW then
end end
if not DISABLE_STEEL_BOW then if not DISABLE_STEEL_BOW then
throwing_register_bow ('bow_steel', 'Steel bow', {x=1, y=1.4, z=0.5}, 20, 1.3, 250, false, { throwing_register_bow ('bow_steel', 'Steel bow', {x=1, y=1.4, z=0.5}, 40, 1.3, 250, false, {
{'farming:string', 'default:steel_ingot', ''}, {'farming:string', 'default:steel_ingot', ''},
{'farming:string', '', 'default:steel_ingot'}, {'farming:string', '', 'default:steel_ingot'},
{'farming:string', 'default:steel_ingot', ''}, {'farming:string', 'default:steel_ingot', ''},
@ -31,7 +31,7 @@ if not DISABLE_STEEL_BOW then
end end
if not DISABLE_ROYAL_BOW then if not DISABLE_ROYAL_BOW then
throwing_register_bow ('bow_royal', 'Royal bow', {x=1, y=1.5, z=0.5}, 18, 1.4, 750, false, { throwing_register_bow ('bow_royal', 'Royal bow', {x=1, y=1.5, z=0.5}, 36, 1.4, 750, false, {
{'farming:string', 'group:wood', 'default:diamond'}, {'farming:string', 'group:wood', 'default:diamond'},
{'farming:string', '', 'default:gold_ingot'}, {'farming:string', '', 'default:gold_ingot'},
{'farming:string', 'group:wood', 'default:diamond'}, {'farming:string', 'group:wood', 'default:diamond'},
@ -39,7 +39,7 @@ if not DISABLE_ROYAL_BOW then
end end
if not DISABLE_CROSSBOW then if not DISABLE_CROSSBOW then
throwing_register_bow ('crossbow', 'Crossbow', {x=1, y=1.3, z=0.5}, 28, 5, 80, true, { throwing_register_bow ('crossbow', 'Crossbow', {x=1, y=1.3, z=0.5}, 56, 5, 80, true, {
{'group:wood', 'farming:string', ''}, {'group:wood', 'farming:string', ''},
{'default:steel_ingot', 'farming:string', 'group:wood'}, {'default:steel_ingot', 'farming:string', 'group:wood'},
{'group:wood', 'farming:string', ''}, {'group:wood', 'farming:string', ''},
@ -47,7 +47,7 @@ if not DISABLE_CROSSBOW then
end end
if not DISABLE_ARBALEST then if not DISABLE_ARBALEST then
throwing_register_bow ('arbalest', 'Arbalest', {x=1, y=1.3, z=0.5}, 35, 7.5, 120, true, { throwing_register_bow ('arbalest', 'Arbalest', {x=1, y=1.3, z=0.5}, 70, 6.5, 120, true, {
{'default:steel_ingot', 'farming:string', 'default:stick'}, {'default:steel_ingot', 'farming:string', 'default:stick'},
{'default:steel_ingot', 'farming:string', 'default:steel_ingot'}, {'default:steel_ingot', 'farming:string', 'default:steel_ingot'},
{'default:steel_ingot', 'farming:string', 'default:stick'}, {'default:steel_ingot', 'farming:string', 'default:stick'},
@ -55,7 +55,7 @@ if not DISABLE_ARBALEST then
end end
if not DISABLE_AUTOMATED_ARBALEST then if not DISABLE_AUTOMATED_ARBALEST then
throwing_register_bow ('arbalest_auto', 'Automated arbalest', {x=1, y=1.3, z=0.5}, 40, 3.5, 60, true, { throwing_register_bow ('arbalest_auto', 'Automated arbalest', {x=1, y=1.3, z=0.5}, 80, 3.5, 60, true, {
{'default:steel_ingot', 'farming:string', 'default:mese_crystal'}, {'default:steel_ingot', 'farming:string', 'default:mese_crystal'},
{'default:steel_ingot', 'farming:string', 'default:steel_ingot'}, {'default:steel_ingot', 'farming:string', 'default:steel_ingot'},
{'default:steel_ingot', 'farming:string', 'default:mese_crystal'}, {'default:steel_ingot', 'farming:string', 'default:mese_crystal'},