tModLoader

tModLoader

65 ratings
Drill Expansion
3
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Both
tModLoader Version: 1.4.4
Language: English
File Size
Posted
Updated
108.158 KB
12 Mar @ 12:54pm
12 Aug @ 12:55pm
5 Change Notes ( view )

Subscribe to download
Drill Expansion

Description


Drill Expansion
Drill Expansion adds new drill counterparts to most Vanilla Terraria & Calamity pickaxes and buffs all Vanilla Terraria drills.

Content:
Adds 22 Drills that scale with progression with full Calamity Mod support.
Adds a Zenith Drill that is craftable with all modded and vanilla drills (recipe changes when calamity is enabled).
Adds Drill counterparts to almost all Calamity Pickaxes.

Other mods:


Changelog
[v1.50 → v1.60]
-Resprites
Originally posted by tModLoader DrillMod:
Developed By Allen
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.