Герхард PICCORO Lenz McKAY
19d207f8e4
* fix missing coloms and brackleds in follow and drops of mobs * change name of mod to mobs_doomed in all files * an older definition still references to nyancat so make a symlink
35 lines
840 B
Lua
35 lines
840 B
Lua
local name = {}
|
|
|
|
local base_arrow = {
|
|
visual = "sprite",
|
|
visual_size = {x = 0.5, y = 0.5},
|
|
velocity = 8,
|
|
textures = {},
|
|
tail = 1, -- enable tail
|
|
tail_texture = "dmobs_ice.png",
|
|
|
|
hit_player = function(self, player)
|
|
player:punch(self.object, 1.0, {
|
|
full_punch_interval = 1.0,
|
|
damage_groups = {fleshy = 8},
|
|
}, nil)
|
|
end,
|
|
|
|
hit_mob = function(self, player)
|
|
player:punch(self.object, 1.0, {
|
|
full_punch_interval = 1.0,
|
|
damage_groups = {fleshy = 8},
|
|
}, nil)
|
|
end,
|
|
|
|
hit_node = function(self, pos, node)
|
|
self.object:remove()
|
|
end,
|
|
}
|
|
|
|
for _,arrowtype in pairs( {"ice","lightning","poison"} ) do
|
|
base_arrow.textures = {"dmobs_"..arrowtype..".png"}
|
|
name = "mobs_doomed:"..arrowtype
|
|
mobs:register_arrow(name, mobs_doomed.deepclone(base_arrow) )
|
|
end
|