Reactor neighbours

Post Reply
Melfish
Inserter
Inserter
Posts: 42
Joined: Mon Nov 17, 2014 1:20 pm
Contact:

Reactor neighbours

Post by Melfish »

On my ever growing quest to make my mod I ran into issues reading the reactor neighbour bonus with script, as this is not yet supported.

As a sidenote, it is also impossible to get the reactors neighbours (without looking at the relative positions ofcourse).


Could neighbour_bonus be added to LuaEntity.
Wouldn't it be useful to make neighbours from LuaEntity work with reactor type entities?

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Reactor neighbours

Post by Bilka »

0.17 changelog wrote:Added LuaEntity::neighbours support for power switches, wall-connectable entities, and reactors.
Added LuaEntity::neighbour_bonus read.
Added LuaEntityPrototype::neighbour_bonus and neighbour_collision_increase read.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”