v0.8.0a: buffed sniper shot ability by 20-40%, depending on distance

This commit is contained in:
Evan Debenham 2020-04-27 14:11:09 -04:00
parent c10456c6a4
commit 8f0abdb7d2

View File

@ -166,8 +166,11 @@ public class SpiritBow extends Weapon {
damage = Math.round(damage * 0.5f); damage = Math.round(damage * 0.5f);
break; break;
case DAMAGE: case DAMAGE:
//as distance increases so does damage, capping at 2.5x:
//1.20x|1.32x|1.45x|1.59x|1.76x|1.93x|2.13x|2.34x|2.50x
int distance = Dungeon.level.distance(owner.pos, targetPos) - 1; int distance = Dungeon.level.distance(owner.pos, targetPos) - 1;
damage = Math.round(damage * (1f + 0.1f * distance)); float multiplier = Math.min(2.5f, 1.2f * (float)Math.pow(1.1f, distance));
damage = Math.round(damage * multiplier);
break; break;
} }
} }