factorio-learning-environment
factorio-learning-environment copied to clipboard
player reach distance scope issue in test
instance.rcon_client.send_command(
"/sc game.player.character.reach_distance = 1000; game.player.character.mining_reach_distance = 1000"
)
it seems that this player property change is not scoped correctly and messes with downstream tests expectations.
FAILED tests/actions/test_elapsed_ticks.py::test_harvest_resource_elapsed_ticks_and_timing - Exception: Could not harvest. Nothing within reach to harvest
found via #333