* Use switching station ref counters
* Fix luacheck and switch supply/demand reporting
* Make switch_index local, fix switching station infotext
* Remove unnecessary variable
* Magenta particle explosion effect when quarry digs a node
* Option to enable dig particle effects, disabled by default. Reduced particle count to 20.
* Changed dig particle effect - a particle starts in each of the 8 corners of the cube and move to the middle
* Only generate dig particles if network lag is < 35000
* Replaced quarry dig effect with a particle spawner - the node's particles stream towards the quarry, stopping just in front of it, like they're being sucked up.
* Simplifying dig particle vector maths using vector functions
* Fixing comment typo
* Dig particles now accelerate towards the quarry along a particular axis, causing them to approach the quarry in a curve. This also means they end inside the node in front of the quarry, which improves how the effect looks when digging deep down.
* Adding network to run_nodes call, using network passed through to check lag for quarry dig particles
* Missing local
* Missing local
* Using vector.new to copy a vector and make a 0,0,0 vector
* Update technic/machines/HV/quarry.lua
Co-authored-by: OgelGames <olliverdc28@gmail.com>
* Adding enable_quarry_dig_particles to README
* Renaming enable_quarry_dig_particles to quarry_dig_particles
* Reorganising quarry_dig_particles position in config list
* Missing comma
Co-authored-by: OgelGames <olliverdc28@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
This adds a new callback to trigger when the machine is no longer powered by the technic power grid. Also allows mods to override the infotext if needed.
Co-authored-by: sfence <sfence.software@gmail.com>
* Configs to correct place, use moving average for net lag, improve admin commands
* Fix luacheck warnings
* Handle file paths, missing cfg file and Settings:set simlar way engine does
* Quarry and radiation settings to technic.conf
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
Remove rest of SP_nodes from code, it does not contain anything
Reset switch infotext, export machine_tiers
Add tests for cable building between active networks
Remove all networks when cable is placed between networks
Fix SC connectivity issues
Fix few cable place/dig issues
Tests for machine build/dig
Fix machine build/dig bugs
Fix test for machine building
Fix machines acting like cables when placed
Inline fixtures for building/digging tests
fix ignored luacheck warnings
(#105)
fix long lines
(#105)
Add more tests for bugs found
Fix tests, add minetest.get_us_time (implement using socket.gettime)