Refactor mobs_mc a bit

This commit is contained in:
Wuzzy 2019-03-11 13:25:06 +01:00
parent cc9b78215a
commit 2c599c4a0e
6 changed files with 10 additions and 39 deletions

View file

@ -87,8 +87,8 @@ mobs:register_arrow(":mobs:potion_arrow", {
}, nil)
end,
hit_mob = function(self, player)
player:punch(self.object, 1.0, {
hit_mob = function(self, mob)
mob:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 2},
}, nil)