tModLoader

tModLoader

Drill Expansion
22 条留言
Ferret 8 月 19 日 上午 5:57 
that's neat! thank you for taking the time to educate me!
allen  [作者] 8 月 19 日 上午 12:39 
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 8 月 18 日 上午 8:44 
tl:dr the adamantite drill mines 12 blocks/s instead of 15 blocks/s like it should and all drills share this problem.
Ferret 8 月 18 日 上午 8:34 
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  [作者] 8 月 18 日 上午 1:14 
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  [作者] 8 月 18 日 上午 12:57 
I didn't know that, thanks!
Ferret 8 月 17 日 下午 8:49 
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  [作者] 8 月 5 日 上午 2:19 
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 8 月 4 日 下午 1:55 
Does this solve the code bug with the whole... drills being slower than they should be thing?
Экскалибур 7 月 8 日 上午 3:26 
Drill.
allen  [作者] 7 月 2 日 上午 9:41 
No.
Cooper 6 月 29 日 下午 9:10 
Can you add chainsaws as well?
allen  [作者] 6 月 19 日 上午 6:10 
I'll do that and add some calamity drills the next time I update.
liam.hastings1 6 月 16 日 下午 4:54 
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 5 月 21 日 下午 2:47 
i still have mor drills downloweded lol
fredman 1[calamity] 4 月 12 日 上午 4:57 
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 3 月 25 日 上午 11:47 
yay theres no doges here
<i><u> 3 月 20 日 下午 10:03 
you know the drill
Ktegaming 3 月 19 日 下午 2:45 
LET'S GO
Suika EX 3 月 19 日 上午 1:42 
please add compatibility with Gensokyo by adding the Shatterer in Zenith drill recipe
koimei 3 月 17 日 下午 10:06 
we love drills :needy_heart:
TheSurvivor64 3 月 16 日 上午 8:22 
FINALLY a mod that fixes drills