From 2b591a82fe4f3d69de7b80a1e50fda9cbc8c167b Mon Sep 17 00:00:00 2001 From: crabman77 Date: Tue, 27 Oct 2015 18:23:44 +0100 Subject: [PATCH] yeti now punch --- mods/mobs/yeti.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/mods/mobs/yeti.lua b/mods/mobs/yeti.lua index 94a1a0da..9b8f27d9 100755 --- a/mods/mobs/yeti.lua +++ b/mods/mobs/yeti.lua @@ -7,7 +7,8 @@ mobs:register_mob("mobs:yeti", { -- agressive, deals 7 damage to player when hit passive = false, damage = 6, - attack_type = "shoot", + attack_type = "dogshoot", + reach = 2, shoot_interval = .75, arrow = "mobs:snowball", shoot_offset = 2, @@ -28,7 +29,7 @@ mobs:register_mob("mobs:yeti", { makes_footstep_sound = true, sounds = { random = "mobs_dirtmonster", - attack = "mobs_stonemonster_attack", + shoot_attack = "mobs_stonemonster_attack", death = "mobs_zombie_death", }, -- speed and jump @@ -70,16 +71,16 @@ mobs:register_arrow("mobs:snowball", { velocity = 6, hit_player = function(self, player) - player:punch(self.object, 1.0, { - full_punch_interval=1.0, - damage_groups = {fleshy=6}, + player:punch(self.object, 1.0, { + full_punch_interval = 1.0, + damage_groups = {fleshy = 6}, }, 0) end, hit_mob = function(self, player) - player:punch(self.object, 1.0, { - full_punch_interval=1.0, - damage_groups = {fleshy=3}, + player:punch(self.object, 1.0, { + full_punch_interval = 1.0, + damage_groups = {fleshy = 3}, }, 0) end,