Add yeti snowball to snow demon's attack.
This commit is contained in:
parent
de4874c3ce
commit
7b157a1029
1 changed files with 11 additions and 2 deletions
13
demon.lua
13
demon.lua
|
@ -112,7 +112,7 @@ mobs:spawn_specific("fun_caves:ice_demon", {"default:ice"}, {'default:torch'}, -
|
|||
|
||||
-- Blizzard Demon -- storm that slows players
|
||||
|
||||
mobs:register_mob("fun_caves:snow_demon", {
|
||||
local snow_demon = {
|
||||
description = "Ice Demon",
|
||||
type = "monster",
|
||||
passive = false,
|
||||
|
@ -191,7 +191,16 @@ mobs:register_mob("fun_caves:snow_demon", {
|
|||
|
||||
fun_caves.surface_damage(self, true)
|
||||
end,
|
||||
})
|
||||
}
|
||||
|
||||
if minetest.registered_entities["mobs_yeti:yeti"] then
|
||||
snow_demon.arrow = "mobs_yeti:snowball"
|
||||
snow_demon.attack_type = 'dogshoot'
|
||||
snow_demon.shoot_interval = .7
|
||||
snow_demon.shoot_offset = 2
|
||||
end
|
||||
|
||||
mobs:register_mob("fun_caves:snow_demon", snow_demon)
|
||||
|
||||
mobs:spawn_specific("fun_caves:snow_demon", {"default:ice"}, nil, -1, 10, 300, 3000, 2, fun_caves.underzones['Caina'].lower_bound, fun_caves.underzones['Caina'].upper_bound)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue