Refactor mobs_mc a bit
This commit is contained in:
parent
cc9b78215a
commit
2c599c4a0e
6 changed files with 10 additions and 39 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue