Zefram
2014-04-26 e748af927a0ec2b593fa3775b17bd40864ba6f60
refs
author Zefram <zefram@fysh.org>
Saturday, April 26, 2014 21:02 +0200
committer ShadowNinja <shadowninja@minetest.net>
Sunday, April 27, 2014 20:43 +0200
commite748af927a0ec2b593fa3775b17bd40864ba6f60
tree 2877b0b81cb7d4110079f323ad1343801a009357 tree | zip | gz
parent 04c6f5bea38d7c3ac2d09760534e6405102a61c2 view | diff
Fix drill charge usage

The drills weren't taking the variable usage cost into account (either
the per-type base cost or the per-mode multiplier) when deciding whether
they have sufficient charge to use. This could cause them to overshoot in
charge usage, although they would then clamp to zero rather than record
negative charge. Also, for the Mk1 drill where the cost was assessed
correctly, the drill would refuse to discharge to exactly zero charge.
1 files modified
68 ■■■■ changed files
technic/tools/mining_drill.lua 68 ●●●● diff | view | raw | blame | history