[kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched
Posted: Sat Oct 10, 2020 6:15 pm
Plop a yellow belt just inside the end of a construction network with red belts in storage,
Hit it with the upgrade planner
/c game.print(game.player.selected.to_be_upgraded()) -> true
/c game.print(game.player.selected.get_upgrade_target()) -> nil
If there are no red belts in storage upgrade_target is returned correctly, same if there are no bots dispatched to the task.
Hit it with the upgrade planner
/c game.print(game.player.selected.to_be_upgraded()) -> true
/c game.print(game.player.selected.get_upgrade_target()) -> nil
If there are no red belts in storage upgrade_target is returned correctly, same if there are no bots dispatched to the task.