@@ -382,9 +382,10 @@ public class UnitTypes implements ContentList{
|
||||
mechStepShake = 0.15f;
|
||||
|
||||
speed = 0.35f;
|
||||
boostMultiplier = 1.5f;
|
||||
boostMultiplier = 2.1f;
|
||||
engineOffset = 12f;
|
||||
engineSize = 6f;
|
||||
lowAltitude = true;
|
||||
|
||||
health = 6000f;
|
||||
armor = 7f;
|
||||
@@ -444,7 +445,7 @@ public class UnitTypes implements ContentList{
|
||||
|
||||
legCount = 4;
|
||||
legLength = 14f;
|
||||
legBaseOffset = 10f;
|
||||
legBaseOffset = 11f;
|
||||
legMoveSpace = 1.5f;
|
||||
legTrns = 0.58f;
|
||||
hovering = true;
|
||||
|
||||
@@ -277,7 +277,7 @@ public abstract class BulletType extends Content{
|
||||
bullet.damage = damage < 0 ? this.damage : damage;
|
||||
bullet.add();
|
||||
|
||||
if(keepVelocity && owner instanceof Hitboxc) bullet.vel.add(((Hitboxc)owner).deltaX() / Time.delta, ((Hitboxc)owner).deltaY() / Time.delta);
|
||||
if(keepVelocity && owner instanceof Hitboxc) bullet.vel.add(((Velc)owner).vel().x, ((Velc)owner).vel().y);
|
||||
return bullet;
|
||||
|
||||
}
|
||||
|
||||
@@ -66,12 +66,14 @@ public class LaserBulletType extends BulletType{
|
||||
int f = idx++;
|
||||
|
||||
for(int s : Mathf.signs){
|
||||
Time.run(f * lightningDelay, () ->
|
||||
Lightning.create(b, lightningColor,
|
||||
lightningDamage < 0 ? damage : lightningDamage,
|
||||
cx, cy, rot + 90*s + Mathf.range(lightningAngleRand),
|
||||
lightningLength + Mathf.random(lightningLengthRand))
|
||||
);
|
||||
Time.run(f * lightningDelay, () -> {
|
||||
if(b.isAdded() && b.type == this){
|
||||
Lightning.create(b, lightningColor,
|
||||
lightningDamage < 0 ? damage : lightningDamage,
|
||||
cx, cy, rot + 90*s + Mathf.range(lightningAngleRand),
|
||||
lightningLength + Mathf.random(lightningLengthRand));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -615,11 +615,6 @@ public class UnitType extends UnlockableContent{
|
||||
Drawf.shadow(leg.base.x, leg.base.y, ssize);
|
||||
}
|
||||
|
||||
//TODO should be below/above legs
|
||||
if(baseRegion.found()){
|
||||
Draw.rect(baseRegion, unit.x, unit.y, rotation);
|
||||
}
|
||||
|
||||
//legs are drawn front first
|
||||
for(int j = legs.length - 1; j >= 0; j--){
|
||||
int i = (j % 2 == 0 ? j/2 : legs.length - 1 - j/2);
|
||||
@@ -657,6 +652,11 @@ public class UnitType extends UnlockableContent{
|
||||
}
|
||||
}
|
||||
|
||||
//TODO should be below/above legs
|
||||
if(baseRegion.found()){
|
||||
Draw.rect(baseRegion, unit.x, unit.y, rotation - 90);
|
||||
}
|
||||
|
||||
Draw.reset();
|
||||
}
|
||||
|
||||
|
||||
@@ -227,6 +227,7 @@ public class ChatFragment extends Table{
|
||||
}
|
||||
|
||||
public void addMessage(String message, String sender){
|
||||
if(sender == null && message == null) return;
|
||||
messages.insert(0, new ChatMessage(message, sender));
|
||||
|
||||
fadetime += 1f;
|
||||
@@ -244,7 +245,7 @@ public class ChatFragment extends Table{
|
||||
this.message = message;
|
||||
this.sender = sender;
|
||||
if(sender == null){ //no sender, this is a server message?
|
||||
formattedMessage = message;
|
||||
formattedMessage = message == null ? "" : message;
|
||||
}else{
|
||||
formattedMessage = "[coral][[" + sender + "[coral]]:[white] " + message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user