7 Commits

Author SHA1 Message Date
OgelGames
5ad0a8c229
Use minetest.load_area everywhere (#287)
also change `technic.get_or_load_node` to return loaded node instead of nil
2022-10-31 12:40:17 +11:00
SX
3df86dd24b Add power tool API, refactor existing tools
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
2022-06-09 22:29:48 +03:00
SX
42cd4ae5e5 Make multimeter formspec usable (#173) 2021-04-10 19:49:08 +03:00
SX
27402ee1e0 Fix first error revealed by get_int implementation :D 2021-02-21 21:34:25 +01:00
SX
9d13f2c1f3 Use get_int to get number 2021-02-21 21:34:25 +01:00
SX
ad24bbcf65 Add more config options 2021-02-21 21:34:25 +01:00
SX
201e215ad4 Add "Multimeter" network inspection tool (#137)
* (#107) Add network inspection tool

* (#107) Fix luacheck and crash if node does not have network

* (#107) Add few rows to display when no network

* (#107) Implement formspec functions, add remote start

* Multimeter texture

* Update formspec, textures and initial use behavior

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-12-10 15:47:30 +02:00