diff options
author | root <root@linuxworks.belug.de> | 2018-03-28 20:05:17 +0200 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2018-03-28 20:05:17 +0200 |
commit | 58f84255917cdcbb6fd2be39c2a1c14e3f52df04 (patch) | |
tree | b32e011a514a070ff3a5f1c19f719e7662075bb1 | |
parent | 2aa100cf593def557e993858d4e5cae62cf66442 (diff) | |
parent | f41d2e41016cc005d66efaf845acd6fbe6e35b8b (diff) |
Merge https://github.com/h-v-smacker/technic
-rw-r--r-- | extranodes/init.lua | 3 | ||||
-rw-r--r-- | technic/tools/sonic_screwdriver.lua | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/extranodes/init.lua b/extranodes/init.lua index 3d4f80d..ccecbaa 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -320,4 +320,5 @@ if minetest.get_modpath("hunger") and minetest.get_modpath("ethereal") then "technic:aspirin_pill", "vessels:glass_bottle"} }) -end
\ No newline at end of file +end + diff --git a/technic/tools/sonic_screwdriver.lua b/technic/tools/sonic_screwdriver.lua index 300d363..366ddaa 100644 --- a/technic/tools/sonic_screwdriver.lua +++ b/technic/tools/sonic_screwdriver.lua @@ -1,4 +1,5 @@ local sonic_screwdriver_max_charge = 15000 +local sonic_screwdriver_rotation_cost = 10 local S = technic.getter @@ -64,7 +65,7 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode) minetest.swap_node(pos, node) if not technic.creative_mode then - meta1.charge = meta1.charge - 100 + meta1.charge = meta1.charge - sonic_screwdriver_rotation_cost itemstack:set_metadata(minetest.serialize(meta1)) technic.set_RE_wear(itemstack, meta1.charge, sonic_screwdriver_max_charge) end |