Revenant stat changes

This commit is contained in:
Anuken 2018-10-01 12:45:24 -04:00
parent d2ce051c4a
commit 3f93b5c63b
4 changed files with 5 additions and 3 deletions

View File

@ -96,7 +96,8 @@ public class UnitTypes implements ContentList{
revenant = new UnitType("revenant", Revenant.class, Revenant::new){{
health = 250;
speed = 0.2f;
mass = 4f;
speed = 0.14f*mass;
maxVelocity = 1.4f;
drag = 0.01f;
isFlying = true;

View File

@ -200,7 +200,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
return;
float dst = distanceTo(t);
if(dst > avoidRange) return;
velocity.add(moveVector.set(x, y).sub(t.getX(), t.getY()).setLength(1f * (1f - (dst / avoidRange))));
velocity.add(moveVector.set(x, y).sub(t.getX(), t.getY()).setLength(1f * (1f - (dst / avoidRange)) / getMass()));
});
}

View File

@ -306,7 +306,7 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
}
if(!Net.client()){
avoidOthers(8f);
avoidOthers(4f + type.hitsize);
if(spawner != -1 && (world.tile(spawner) == null || world.tile(spawner).entity == null)){
damage(health);

View File

@ -3,4 +3,5 @@ package io.anuke.mindustry.entities.units.types;
import io.anuke.mindustry.entities.units.FlyingUnit;
public class Revenant extends FlyingUnit{
}