From 6c5c9f6ca9a5a76768b6285aeb8a18bdaca85910 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sat, 9 May 2015 12:19:36 +0200 Subject: [PATCH] Dicreased dogfight distance (a bit) - Dicreased dogfight distance by 0.5 so that players are sure to be able to punch *every* monsters while they are attacking them --- mods/mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index ff720cbc..821efacb 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -702,7 +702,7 @@ lifetimer = def.lifetimer or 600, end self.object:setyaw(yaw) -- attack distance is 2 + half of mob width so the bigger mobs can attack (like slimes) - if self.attack.dist > ((-self.collisionbox[1]+self.collisionbox[4])/2)+2 then + if self.attack.dist > ((-self.collisionbox[1]+self.collisionbox[4])/2)+1.5 then -- jump attack if (self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0) or (self.object:getvelocity().y == 0 and self.jump_chance > 0) then