mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Revenant stat changes
This commit is contained in:
parent
d2ce051c4a
commit
3f93b5c63b
@ -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;
|
||||
|
@ -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()));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -3,4 +3,5 @@ package io.anuke.mindustry.entities.units.types;
|
||||
import io.anuke.mindustry.entities.units.FlyingUnit;
|
||||
|
||||
public class Revenant extends FlyingUnit{
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user