Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2021-09-30 17:33:23 -04:00
3 changed files with 12 additions and 2 deletions

View File

@@ -346,6 +346,7 @@ public class Weapon implements Cloneable{
unit.vel.add(Tmp.v1.trns(rotation + 180f, ammo.recoil));
Effect.shake(shake, shake, shootX, shootY);
mount.recoil = recoil;
mount.heat = 1f;
if(!continuous){
shootSound.at(shootX, shootY, Mathf.random(soundPitchMin, soundPitchMax));
@@ -355,10 +356,10 @@ public class Weapon implements Cloneable{
}else{
unit.vel.add(Tmp.v1.trns(rotation + 180f, ammo.recoil));
Effect.shake(shake, shake, shootX, shootY);
mount.recoil = recoil;
mount.heat = 1f;
}
mount.recoil = recoil;
ejectEffect.at(mountX, mountY, rotation * side);
ammo.shootEffect.at(shootX, shootY, rotation, parentize ? unit : null);
ammo.smokeEffect.at(shootX, shootY, rotation, parentize ? unit : null);

View File

@@ -778,6 +778,7 @@ public class HudFragment extends Fragment{
}
private void addInfoTable(Table table){
table.name = "infotable";
table.left();
var count = new float[]{-1};