1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-05-13 21:56:29 +02:00

rpg - minor change to range check when melee

This commit is contained in:
Gerkiz 2021-03-01 22:22:50 +01:00
parent 43e145a94a
commit ee75821fd7

View File

@ -555,8 +555,8 @@ local function on_entity_damaged(event)
local position = p.position
local area = {
left_top = {x = position.x - 4, y = position.y - 4},
right_bottom = {x = position.x + 4, y = position.y + 4}
left_top = {x = position.x - 5, y = position.y - 5},
right_bottom = {x = position.x + 5, y = position.y + 5}
}
if not is_position_near(area, entity.position) then