Page 1 of 1

Reactor neighbours

Posted: Thu May 31, 2018 1:58 pm
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?

Re: Reactor neighbours

Posted: Fri Jun 22, 2018 2:27 pm
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.