mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Critical strikes (fully charged bow) deals more damage from farther away than closer now
This commit is contained in:
1 parent
a1616dec8c
commit
119e888dc2
1 file changed
+1
-1
@@ -246,7 +246,7 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
|
||||
|
||||
// calculate critical damaaage
|
||||
if (this.getIsCritical())
|
||||
damage += this.rand.nextFloat() * (damage / 2f + 2f);
|
||||
damage += (this.rand.nextFloat()/4f + Math.min(0.75f, distance/25f)) * (damage / 2f + 2f);
|
||||
|
||||
// and now we come to the part where we actually deal the damage!
|
||||
if(!dealDamage(damage, ammo, tags, movingobjectposition.entityHit))
|
||||
|
||||
Reference in new issue
Block a user