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:
parent
96bc00c05f
commit
4328b449e6
@ -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
|
Loading…
x
Reference in New Issue
Block a user