Rename 'mob' everywhere to 'monster'.
This commit is contained in:
parent
22f3c8a808
commit
0e78a75a66
6
init.lua
6
init.lua
@ -112,10 +112,10 @@ function check_trapped_and_escape(self)
|
|||||||
local p2 = {x = pos.x, y = pos.y + 1, z = pos.z}
|
local p2 = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||||
local n2 = minetest.get_node(p2)
|
local n2 = minetest.get_node(p2)
|
||||||
if not minetest.registered_nodes[n2.name].walkable then
|
if not minetest.registered_nodes[n2.name].walkable then
|
||||||
--print("mob trapped, escaped upward!")
|
--print("monster trapped, escaped upward!")
|
||||||
self.object:setpos({x = pos.x, y = p2.y + 0.5, z = pos.z})
|
self.object:setpos({x = pos.x, y = p2.y + 0.5, z = pos.z})
|
||||||
else
|
else
|
||||||
print("mob trapped but can't escape upward!", minetest.pos_to_string(pos))
|
print("monster trapped but can't escape upward!", minetest.pos_to_string(pos))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -639,7 +639,7 @@ local function entity_ai_on_activate(self, staticdata)
|
|||||||
|
|
||||||
--print("loaded: " .. self.name .. ", driver=" .. driver )
|
--print("loaded: " .. self.name .. ", driver=" .. driver )
|
||||||
else
|
else
|
||||||
-- set initial mob driver
|
-- set initial monster driver
|
||||||
driver = self.script.driver
|
driver = self.script.driver
|
||||||
self.driver = Driver(self, driver)
|
self.driver = Driver(self, driver)
|
||||||
--print("activate: " .. self.name .. ", driver=" .. driver)
|
--print("activate: " .. self.name .. ", driver=" .. driver)
|
||||||
|
@ -17,7 +17,7 @@ A Contributor License Agreement exists, please read:
|
|||||||
--
|
--
|
||||||
|
|
||||||
local sheep_script = {
|
local sheep_script = {
|
||||||
-- the start driver. Should be able to spawn a mob with a different driver!
|
-- the start driver. Should be able to spawn a monster with a different driver!
|
||||||
driver = "roam",
|
driver = "roam",
|
||||||
-- default properties
|
-- default properties
|
||||||
properties = {
|
properties = {
|
||||||
@ -87,7 +87,7 @@ local sheep_script = {
|
|||||||
footsteps = {{name = "sheep_steps", gain = 0.2}, {max_hear_distance = 12}},
|
footsteps = {{name = "sheep_steps", gain = 0.2}, {max_hear_distance = 12}},
|
||||||
hurt = {{name = "sheep_hurt", gain = 0.5}, {max_hear_distance = 18}},
|
hurt = {{name = "sheep_hurt", gain = 0.5}, {max_hear_distance = 18}},
|
||||||
},
|
},
|
||||||
-- mob script states:
|
-- monster script states:
|
||||||
roam = {
|
roam = {
|
||||||
finders = {
|
finders = {
|
||||||
"find_habitat",
|
"find_habitat",
|
||||||
|
@ -17,7 +17,7 @@ A Contributor License Agreement exists, please read:
|
|||||||
--
|
--
|
||||||
|
|
||||||
local stone_giant_script = {
|
local stone_giant_script = {
|
||||||
-- the start driver. Should be able to spawn a mob with a different driver!
|
-- the start driver. Should be able to spawn a monster with a different driver!
|
||||||
driver = "roam",
|
driver = "roam",
|
||||||
-- default properties
|
-- default properties
|
||||||
properties = {
|
properties = {
|
||||||
@ -55,7 +55,7 @@ local stone_giant_script = {
|
|||||||
-- sound samples
|
-- sound samples
|
||||||
sounds = {
|
sounds = {
|
||||||
},
|
},
|
||||||
-- mob script states:
|
-- monster script states:
|
||||||
roam = {
|
roam = {
|
||||||
finders = {
|
finders = {
|
||||||
"find_habitat",
|
"find_habitat",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user