tModLoader

tModLoader

Drill Expansion
22 Comments
Ferret 19 Aug @ 5:57am 
that's neat! thank you for taking the time to educate me!
allen  [author] 19 Aug @ 12:39am 
Vanilla drills all have 60% of the use time and use animation listed in their code (this is intentional and set with a flag). For example, the adamantite drill, as mentioned in my previous message, has a use animation of 25 and a use time of 8, which translates to 15 use animation and 4.8 use time (12 blocks/s). This is not a bug and is intentional, the problem is from the wiki.

Here is the code itself if you still believe its a bug :)

if (ItemID.Sets.IsDrill[this.type] || ItemID.Sets.IsChainsaw[this.type] || this.type == 1262)
{
this.useTime = (int)((double)this.useTime * 0.6);
if (this.useTime < 1)
{
this.useTime = 1;
}
this.useAnimation = (int)((double)this.useAnimation * 0.6);
if (this.useAnimation < 1)
{
this.useAnimation = 1;
}
this.tileBoost--;
}
Ferret 18 Aug @ 8:44am 
tl:dr the adamantite drill mines 12 blocks/s instead of 15 blocks/s like it should and all drills share this problem.
Ferret 18 Aug @ 8:34am 
I don't super know how the mining speed is represented in the code, but on the wiki, mining speed is how many ticks between each block damage, meaning that for a pickaxe with mining speed 4, it will mine a block of dirt every four ticks. the drill bug in this case, is that for a drill that ALSO has mining speed 4, it will instead mine a dirt every FIVE ticks, one more than it should be, making drills slower than they should be. You can test this if you like, make a pickaxe and drill have identical stats and observe the drill mine slower.
allen  [author] 18 Aug @ 1:14am 
I just checked, and adamantite drill as an example has 15 use animation and 4 use time on the wiki, while its stats in terraria's code are 25 use animation and 8 use time. I know you said that drills are one use time slower than their listed mining speed in the code and on the wiki, but is that ontop of this?
allen  [author] 18 Aug @ 12:57am 
I didn't know that, thanks!
Ferret 17 Aug @ 8:49pm 
there is a drill bug actually! all vanilla drills mine at one mining speed slower than their listed mining speed in the code and on the wiki. this is besides their drill behavior of not being affected by buffs.
allen  [author] 5 Aug @ 2:19am 
It’s not a bug, drills are designed to be at a fixed speed that is faster than that of pickaxes, but of course fail to do this.

My mod attempts to fix that by increasing drill speed by an extra 33% for vanilla drills and adding new drill counterparts to most vanilla pickaxes.
gooberone 4 Aug @ 1:55pm 
Does this solve the code bug with the whole... drills being slower than they should be thing?
Черноslave 8 Jul @ 3:26am 
Drill.
allen  [author] 2 Jul @ 9:41am 
No.
Cooper 29 Jun @ 9:10pm 
Can you add chainsaws as well?
allen  [author] 19 Jun @ 6:10am 
I'll do that and add some calamity drills the next time I update.
liam.hastings1 16 Jun @ 4:54pm 
can you make it so the recipe for the zenith drill gets a bit harder in calamity? like adding the auric to the recipe just like the zenith and maybe a few more drills or something?
xaidendudley 21 May @ 2:47pm 
i still have mor drills downloweded lol
fredman 1[calamity] 12 Apr @ 4:57am 
Here's the mod that I feared would return, now my downloads are down, well, I'll figure something out to change that.
:GDNormal:
12speedytrucky 25 Mar @ 11:47am 
yay theres no doges here
<i><u> 20 Mar @ 10:03pm 
you know the drill
Ktegaming 19 Mar @ 2:45pm 
LET'S GO
Suika EX 19 Mar @ 1:42am 
please add compatibility with Gensokyo by adding the Shatterer in Zenith drill recipe
koimei 17 Mar @ 10:06pm 
we love drills :needy_heart:
TheSurvivor64 16 Mar @ 8:22am 
FINALLY a mod that fixes drills