1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-21 17:15:32 +01:00

update throwing mod

add spear original + add spear mithril
    improve arrows
This commit is contained in:
2015-09-21 21:41:53 +02:00
parent aa9647ff4e
commit 303a724cda
19 changed files with 204 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ function throwing_register_arrow_standard (kind, desc, eq, toughness, craft)
end
end
end
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, 'grass') and not string.find(node.name, 'flowers:') and not string.find(node.name, 'farming:') and not string.find(node.name, 'fire:') then
if math.random() < toughness then
minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind)
else