1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

added apply_effect function

This commit is contained in:
James Gillham 2017-08-25 15:22:22 +01:00
parent 96bc00c05f
commit 4328b449e6

View File

@ -392,4 +392,12 @@ function change_map_gen_collision_tile(builder, collides, new_tile)
end
return tile, entity
end
end
function apply_effect(builder, func)
return function(local_x, local_y, world_x, world_y)
local tile, entity = builder(local_x, local_y, world_x, world_y)
tile, entity = func(local_x, local_y, world_x, world_y, tile, entity)
return tile, entity
end
end