mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Update the spreadsheet and stard_arrow damage
This commit is contained in:
parent
f1ae4d53e7
commit
cc9e7d5b69
@ -26,7 +26,8 @@ function throwing_register_arrow_standard (kind, desc, eq, toughness, craft)
|
|||||||
{7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17},
|
{7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tiles = {"throwing_arrow_" .. kind .. ".png", "throwing_arrow_" .. kind .. ".png", "throwing_arrow_" .. kind .. "_back.png", "throwing_arrow_" .. kind .. "_front.png", "throwing_arrow_" .. kind .. "_2.png", "throwing_arrow_" .. kind .. ".png"},
|
tiles = {"throwing_arrow_" .. kind .. ".png", "throwing_arrow_" .. kind .. ".png", "throwing_arrow_" .. kind .. "_back.png", "throwing_arrow_" .. kind .. "_front.png",
|
||||||
|
"throwing_arrow_" .. kind .. "_2.png", "throwing_arrow_" .. kind .. ".png"},
|
||||||
groups = {not_in_creative_inventory=1},
|
groups = {not_in_creative_inventory=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -72,7 +73,8 @@ function throwing_register_arrow_standard (kind, desc, eq, toughness, craft)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if self.lastpos.x~=nil then
|
if self.lastpos.x~=nil then
|
||||||
if node.name ~= "air" and not string.find(node.name, 'water') and not string.find(node.name, 'default:grass') and not string.find(node.name, 'default:junglegrass') and not string.find(node.name, 'flowers:') and not string.find(node.name, 'farming:') then
|
if node.name ~= "air" and not string.find(node.name, 'water') and not string.find(node.name, 'default:grass') and not string.find(node.name, 'default:junglegrass')
|
||||||
|
and not string.find(node.name, 'flowers:') and not string.find(node.name, 'farming:') then
|
||||||
if math.random() < toughness then
|
if math.random() < toughness then
|
||||||
minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind)
|
minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind)
|
||||||
else
|
else
|
||||||
@ -119,5 +121,5 @@ if not DISABLE_DIAMOND_ARROW then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not DISABLE_MITHRIL_ARROW then
|
if not DISABLE_MITHRIL_ARROW then
|
||||||
throwing_register_arrow_standard ('mithril', 'Mithril (Hunter)', 12, 0.66, 'moreores:mithril_ingot')
|
throwing_register_arrow_standard ('mithril', 'Mithril (Hunter)', 15, 0.66, 'moreores:mithril_ingot')
|
||||||
end
|
end
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user