summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extranodes/init.lua3
-rw-r--r--technic/tools/sonic_screwdriver.lua3
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