mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-24 21:48:25 +07:00
Additional bugfixes
This commit is contained in:
parent
dd7f91b8c2
commit
ce4031af74
@ -27,7 +27,7 @@ allprojects {
|
||||
appName = 'Mindustry'
|
||||
gdxVersion = '1.9.8'
|
||||
roboVMVersion = '2.3.0'
|
||||
uCoreVersion = '8b72f5b0fadc4a2133337d9db4651ac4794581d9'
|
||||
uCoreVersion = 'ad9936bf6ebba8cd5b3a654b8973408f7101dc7d'
|
||||
|
||||
getVersionString = {
|
||||
String buildVersion = getBuildVersion()
|
||||
|
@ -50,6 +50,7 @@ public class UnitTypes implements ContentList{
|
||||
maxVelocity = 1.1f;
|
||||
speed = 0.2f;
|
||||
drag = 0.4f;
|
||||
hitsize = 8f;
|
||||
mass = 1.75f;
|
||||
range = 40f;
|
||||
weapon = Weapons.chainBlaster;
|
||||
@ -60,9 +61,9 @@ public class UnitTypes implements ContentList{
|
||||
maxVelocity = 0.8f;
|
||||
speed = 0.18f;
|
||||
drag = 0.4f;
|
||||
mass = 3f;
|
||||
mass = 3.5f;
|
||||
range = 10f;
|
||||
hitsize = 8f;
|
||||
hitsize = 9f;
|
||||
rotatespeed = 0.1f;
|
||||
weapon = Weapons.flamethrower;
|
||||
health = 440;
|
||||
@ -72,7 +73,7 @@ public class UnitTypes implements ContentList{
|
||||
maxVelocity = 0.8f;
|
||||
speed = 0.15f;
|
||||
drag = 0.4f;
|
||||
mass = 4.5f;
|
||||
mass = 5f;
|
||||
hitsize = 10f;
|
||||
range = 10f;
|
||||
rotatespeed = 0.06f;
|
||||
|
@ -119,7 +119,7 @@ public abstract class GroundUnit extends BaseUnit{
|
||||
public void update(){
|
||||
super.update();
|
||||
|
||||
stuckTime = !getVelocity().isZero(0.0001f) ? 0f : stuckTime + Timers.delta();
|
||||
stuckTime = !vec.set(x, y).sub(lastPosition()).isZero(0.0001f) ? 0f : stuckTime + Timers.delta();
|
||||
|
||||
if(!velocity.isZero(0.0001f) && (Units.invalidateTarget(target, this) || (distanceTo(target) > getWeapon().getAmmo().getRange()))){
|
||||
rotation = Mathf.slerpDelta(rotation, velocity.angle(), type.rotatespeed);
|
||||
|
Loading…
Reference in New Issue
Block a user