summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryant Mairs <bwmairs@ucsc.edu>2013-12-03 19:05:23 -0800
committerShadowNinja <shadowninja@minetest.net>2014-03-30 17:40:54 -0400
commit5dd09aeff44e65f3295a8621e82d17759eff921d (patch)
tree7b8b0290dcf3d1275308f1407423e9b0cd6239cd
parent9ab5846d56bee4b12e89a1bd30404d827766a1d2 (diff)
Modify mining drill charges and power usage. Also fix bug with mk3 power usage.
-rw-r--r--technic/tools/mining_drill.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/technic/tools/mining_drill.lua b/technic/tools/mining_drill.lua
index 320cc31..e4b31b8 100644
--- a/technic/tools/mining_drill.lua
+++ b/technic/tools/mining_drill.lua
@@ -1,9 +1,9 @@
-local mining_drill_max_charge = 60000
-local mining_drill_mk2_max_charge = 240000
-local mining_drill_mk3_max_charge = 960000
+local mining_drill_max_charge = 50000
+local mining_drill_mk2_max_charge = 200000
+local mining_drill_mk3_max_charge = 650000
local mining_drill_power_usage = 200
-local mining_drill_mk2_power_usage = 600
-local mining_drill_mk3_power_usage = 1800
+local mining_drill_mk2_power_usage = 500
+local mining_drill_mk3_power_usage = 800
local S = technic.getter
@@ -226,9 +226,9 @@ local function drill_dig_it(pos, player, drill_type, mode)
if (mode==2 or mode==3 or mode==4) then charge=mining_drill_mk2_power_usage*3 end
end
if drill_type==3 then
- if mode==1 then charge=mining_drill_power_usage end
- if (mode==2 or mode==3 or mode==4) then charge=mining_drill_mk2_power_usage*6 end
- if mode==5 then charge=mining_drill_mk2_power_usage*9 end
+ if mode==1 then charge=mining_drill_mk3_power_usage end
+ if (mode==2 or mode==3 or mode==4) then charge=mining_drill_mk3_power_usage*6 end
+ if mode==5 then charge=mining_drill_mk3_power_usage*9 end
end
minetest.sound_play("mining_drill", {pos = pos, gain = 1.0, max_hear_distance = 10,})
return charge