Merge pull request 'Nerfed vexes and evokers' (#4076) from vex_evoker_fixes into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4076mobile_bow_workaround
commit
8071d0fbef
|
@ -37,6 +37,7 @@ mcl_mobs.register_mob("mobs_mc:vex", {
|
||||||
walk_velocity = 3.2,
|
walk_velocity = 3.2,
|
||||||
run_velocity = 5.9,
|
run_velocity = 5.9,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
attack_frequency = 2,
|
||||||
sounds = {
|
sounds = {
|
||||||
-- TODO: random
|
-- TODO: random
|
||||||
death = "mobs_mc_vex_death",
|
death = "mobs_mc_vex_death",
|
||||||
|
@ -63,10 +64,13 @@ mcl_mobs.register_mob("mobs_mc:vex", {
|
||||||
self.object:set_properties({textures=self.base_texture})
|
self.object:set_properties({textures=self.base_texture})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if self.base_texture[2] == "mobs_mc_vex_charging.png" then
|
||||||
|
self.base_texture[2] = "mobs_mc_vex.png"
|
||||||
|
end
|
||||||
if self.base_texture[1] ~= "default_tool_steelsword.png" then
|
if self.base_texture[1] ~= "default_tool_steelsword.png" then
|
||||||
self.base_texture[1] = "default_tool_steelsword.png"
|
self.base_texture[1] = "default_tool_steelsword.png"
|
||||||
self.object:set_properties({textures=self.base_texture})
|
|
||||||
end
|
end
|
||||||
|
self.object:set_properties({textures=self.base_texture})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Take constant damage if the vex' life clock ran out
|
-- Take constant damage if the vex' life clock ran out
|
||||||
|
|
|
@ -42,6 +42,7 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
||||||
run_velocity = 1.4,
|
run_velocity = 1.4,
|
||||||
group_attack = true,
|
group_attack = true,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
attack_frequency = 15,
|
||||||
-- Summon vexes
|
-- Summon vexes
|
||||||
custom_attack = function(self, to_attack)
|
custom_attack = function(self, to_attack)
|
||||||
if not spawned_vexes[self] then spawned_vexes[self] = {} end
|
if not spawned_vexes[self] then spawned_vexes[self] = {} end
|
||||||
|
@ -64,7 +65,6 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
||||||
table.insert(spawned_vexes[self],ent)
|
table.insert(spawned_vexes[self],ent)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
shoot_interval = 15,
|
|
||||||
passive = false,
|
passive = false,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mcl_core:emerald",
|
{name = "mcl_core:emerald",
|
||||||
|
@ -86,6 +86,11 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
|
||||||
},
|
},
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
fear_height = 4,
|
fear_height = 4,
|
||||||
|
|
||||||
|
on_spawn = function(self)
|
||||||
|
self.timer = 15
|
||||||
|
return true
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- spawn eggs
|
-- spawn eggs
|
||||||
|
|
Loading…
Reference in New Issue