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:
parent
43e145a94a
commit
ee75821fd7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user