[spidermob] Update to Git patch 25a88ff:
https://github.com/AntumDeluge/mtmod-spidermob/tree/25a88ff
This commit is contained in:
parent
f15a7c811c
commit
76f5fc05c1
@ -63,7 +63,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
* [mobs_goblins][] ([CC-BY-SA / CC-BY / CC0][lic.mobs_goblins]) -- version: [6c7fdf9 Git][ver.mobs_goblins] *2017-05-23* ([patched][patch.mobs_goblins])
|
||||
* [mobs_monster][] ([MIT][lic.mobs_monster]) -- version: [f6d0e01 Git][ver.mobs_monster] *2017-04-27*
|
||||
* [sneeker][] ([WTFPL][lic.wtfpl] / [CC0][lic.cc0]) -- version: [9e1b11a Git][ver.sneeker] *2017-06-04*
|
||||
* [spidermob][] ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa3.0] / [MIT][lic.mit] / [WTFPL][lic.spidermob] / [Unlicense][lic.unlicense]) -- version [8f9080a Git][ver.spidermob] *2016-08-14* ([patched][patch.spidermob])
|
||||
* [spidermob][] ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa3.0] / [MIT][lic.mit] / [WTFPL][lic.spidermob] / [Unlicense][lic.unlicense]) -- version [8f9080a Git][ver.spidermob] *2017-06-02* ([patched][patch.spidermob])
|
||||
* mobiles/engine/
|
||||
* [mobs_redo][] ([MIT][lic.mobs_redo]) -- version: [4eb1c93 Git][ver.mobs_redo] *2017-06-04* ([patched][patch.mobs_redo])
|
||||
* mobiles/general/
|
||||
@ -535,7 +535,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
[patch.rainbow_ore]: https://github.com/AntumDeluge/mtmod-rainbow_ore/tree/60dc35e
|
||||
[patch.snowdrift]: https://github.com/AntumDeluge/mtmod-snowdrift/tree/1b9da4f
|
||||
[patch.spawneggs]: https://github.com/AntumDeluge/mtmod-spawneggs/tree/03edd95
|
||||
[patch.spidermob]: https://github.com/AntumDeluge/mtmod-spidermob/tree/89b9bc4
|
||||
[patch.spidermob]: https://github.com/AntumDeluge/mtmod-spidermob/tree/25a88ff
|
||||
[patch.technic]: https://github.com/AntumDeluge/mtmod-technic/tree/3577609
|
||||
[patch.throwing]: https://github.com/AntumDeluge/mtmod-throwing/tree/7b48d90
|
||||
[patch.trash_can]: https://github.com/AntumDeluge/mtmod-trash_can/tree/5a92bf4
|
||||
|
@ -172,7 +172,7 @@ function spidermob:register_mob(name, def)
|
||||
|
||||
on_step = function(self, dtime)
|
||||
|
||||
if self.type == "monster" and minetest.setting_getbool("only_peaceful_spidermob") then
|
||||
if self.type == "monster" and minetest.settings:get_bool("only_peaceful_spidermob") then
|
||||
self.object:remove()
|
||||
end
|
||||
|
||||
@ -295,7 +295,7 @@ function spidermob:register_mob(name, def)
|
||||
end
|
||||
|
||||
-- FIND SOMEONE TO ATTACK
|
||||
if ( self.type == "monster" or self.type == "barbarian" ) and minetest.setting_getbool("enable_damage") and self.state ~= "attack" then
|
||||
if ( self.type == "monster" or self.type == "barbarian" ) and minetest.settings:get_bool("enable_damage") and self.state ~= "attack" then
|
||||
local s = self.object:getpos()
|
||||
local inradius = minetest.get_objects_inside_radius(s,self.view_range)
|
||||
local player = nil
|
||||
@ -594,7 +594,7 @@ function spidermob:register_mob(name, def)
|
||||
self.state = "stand"
|
||||
self.object:setvelocity({x=0, y=self.object:getvelocity().y, z=0})
|
||||
self.object:setyaw(math.random(1, 360)/180*math.pi)
|
||||
if self.type == "monster" and minetest.setting_getbool("only_peaceful_spidermob") then
|
||||
if self.type == "monster" and minetest.settings:get_bool("only_peaceful_spidermob") then
|
||||
self.object:remove()
|
||||
end
|
||||
if self.type ~= "npc" then
|
||||
@ -822,7 +822,7 @@ function spidermob:register_spawn(name, nodes, max_light, min_light, chance, act
|
||||
return
|
||||
end
|
||||
|
||||
if minetest.setting_getbool("display_mob_spawn") then
|
||||
if minetest.settings:get_bool("display_mob_spawn") then
|
||||
minetest.chat_send_all("[spidermob] Add "..name.." at "..minetest.pos_to_string(pos))
|
||||
end
|
||||
local mob = minetest.add_entity(pos, name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user