added hit_node functions to a few darts

This commit is contained in:
tenplus1 2019-09-09 13:48:45 +01:00
parent f2ccd05c7c
commit ebadbee53d

View File

@ -128,6 +128,9 @@ mobs:register_arrow("nssm:spine", {
damage_groups = {fleshy = 2}, damage_groups = {fleshy = 2},
}, nil) }, nil)
end, end,
hit_node = function(self, pos, node)
end
}) })
@ -144,6 +147,9 @@ mobs:register_arrow("nssm:morarrow", {
damage_groups = {fleshy = 3}, damage_groups = {fleshy = 3},
}, nil) }, nil)
end, end,
hit_node = function(self, pos, node)
end
}) })
@ -316,7 +322,8 @@ end
mobs:register_arrow("nssm:super_gas", { mobs:register_arrow("nssm:super_gas", {
visual = "sprite", visual = "sprite",
visual_size = {x = 1, y = 1}, visual_size = {x = 1, y = 1},
textures = {"transparent.png"}, -- textures = {"transparent.png"},
textures = {"tnt_smoke.png^[colorize:green:170"},
velocity = 8, velocity = 8,
-- direct hit -- direct hit
hit_player = function(self, player) hit_player = function(self, player)
@ -403,4 +410,6 @@ mobs:register_arrow("nssm:lava_arrow", {
end end
end end
end, end,
hit_node = function(self, pos, node)
end
}) })