Skip to content

Commit

Permalink
Remove projectile dimishing returns for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 30, 2015
1 parent 283c3cf commit 49e3e49
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/main/java/tconstruct/library/entity/ProjectileBase.java
Expand Up @@ -185,21 +185,6 @@ public void onHitEntity(MovingObjectPosition movingobjectposition) {

float distance = speed * this.ticksInAir;

// dimishing returns for speed
if(speed > 5f) {
float oldSpeed = speed-5f;
speed = 5f;
float factor = 0.75f;
while (oldSpeed > 0) {
if(oldSpeed > 1)
speed += factor;
else
speed += oldSpeed*factor;

oldSpeed -= 1f;
factor = Math.max(0.25f, factor-0.25f);
}
}

if(!tags.hasKey("BaseAttack"))
{
Expand Down

0 comments on commit 49e3e49

Please sign in to comment.