[1.0.4]Diggers not ready for high speed characters

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

[1.0.4]Diggers not ready for high speed characters

#1 Post by Hachem_Muche »

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
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

Post Reply