fix drops global in death scythe
This commit is contained in:
parent
a5b7cf4db3
commit
5a9ea84082
@ -23,8 +23,8 @@ function nssm:affectbones(mobe) -- as function for adaptable heuristic
|
||||
return not nssm.safebones
|
||||
end
|
||||
|
||||
--[[
|
||||
function drops(drop)
|
||||
|
||||
function nssm:drops(drop)
|
||||
|
||||
if drop then
|
||||
|
||||
@ -35,7 +35,7 @@ function drops(drop)
|
||||
})
|
||||
end
|
||||
end
|
||||
]]
|
||||
|
||||
|
||||
local function perpendicular_vector(vec) --returns a vector rotated of 90° in 2D
|
||||
|
||||
|
@ -1350,7 +1350,7 @@ minetest.register_tool("nssm:sword_of_gluttony", {
|
||||
for i = 1, math.random(4) do
|
||||
drop = minetest.add_item(pos,
|
||||
"nssm:roasted_duck_legs 1")
|
||||
drops(drop)
|
||||
nssm:drops(drop)
|
||||
end
|
||||
|
||||
local s = obj:get_pos()
|
||||
@ -1460,7 +1460,7 @@ minetest.register_tool("nssm:death_scythe", {
|
||||
if math.random(3) == 1 then
|
||||
v.y = v.y + 2
|
||||
drop = minetest.add_item(v, "nssm:life_energy 1")
|
||||
drops(drop)
|
||||
nssm:drops(drop)
|
||||
end
|
||||
end
|
||||
|
||||
@ -1474,7 +1474,7 @@ minetest.register_tool("nssm:death_scythe", {
|
||||
if math.random(3) == 1 then
|
||||
v.y = v.y + 2
|
||||
drop = minetest.add_item(v, "nssm:life_energy 1")
|
||||
drops(drop)
|
||||
nssm:drops(drop)
|
||||
end
|
||||
end
|
||||
|
||||
@ -1488,7 +1488,7 @@ minetest.register_tool("nssm:death_scythe", {
|
||||
if math.random(3) == 1 then
|
||||
v.y = v.y + 2
|
||||
drop = minetest.add_item(v, "nssm:life_energy 1")
|
||||
drops(drop)
|
||||
nssm:drops(drop)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user