Cleanup deprecated metadata access for tools
Fix mining drill translations
Remove deprecated power tool functions
Drop charge value completely
Ensure use_RE_charge always uses at least 1 point
Use precalculated wear factor, remove negative set_wear hack...
Use technic_max_charge instead of max_charge in item definition, accept both
Log errors instead of failing with invalid power tool stack
Metadata migration for prospector
Cleanup tool definition max_charge, get_RE_charge log warning for unknown stacks
* 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>
Drop coverage stats for sources outside of technic directory (technic_cnc, technic_worldgen)
Update technic API functions for tests (were exported just for tests, now part of API)
Move CNC tests, use shared fixtures for tests
* Optimized LV Lamp code. (generates less than 25% of the previous network "lag", based on my quick testing)
* Fixed LV Lamp code to prevent active and unpowered lamps from fighting when near.
* Added right-click toggle to switch LV Lamps on/off.
* Added inventory and wield images to `technic:dummy_light_source` node.
* Split LV Lamp and LV LED into separate files.
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>