[1.0.4]Diggers not ready for high speed characters
Posted: Tue Jun 04, 2013 8:53 pm
If you have a global speed higher than 100% and you equip a digger, you sometimes have to wait for a turn or more before it's ready to dig. This is mostly an annoyance but is easily fixed because of the way diggers work:
Code: Select all
Index: game/modules/tome/data/general/objects/digger.lua
===================================================================
--- game/modules/tome/data/general/objects/digger.lua (revision 6824)
+++ game/modules/tome/data/general/objects/digger.lua (working copy)
@@ -28,7 +28,8 @@
add_name = " (#DIGSPEED#)",
max_power = 1, power_regen = 1,
- use_power = { name = "dig a wall, cut a tree, ...", power = 1, use = function(self, who)
+ use_power = { name = "dig a wall, cut a tree, ...", power = 0, -- Always ready to use
+ use = function(self, who)
local tg = {type="bolt", range=1, nolock=true}
local x, y = who:getTarget(tg)
if not x or not y then return nil end