More sounds, shrapnel bullet visuals tweak, ambient reactor cooldown
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -280,7 +280,7 @@ public class UnitTypes{
|
|||||||
recoil = 5f;
|
recoil = 5f;
|
||||||
shake = 2f;
|
shake = 2f;
|
||||||
ejectEffect = Fx.casing4;
|
ejectEffect = Fx.casing4;
|
||||||
shootSound = Sounds.bang;
|
shootSound = Sounds.shootReign;
|
||||||
|
|
||||||
bullet = new BasicBulletType(13f, 80){{
|
bullet = new BasicBulletType(13f, 80){{
|
||||||
pierce = true;
|
pierce = true;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public class ShrapnelBulletType extends BulletType{
|
|||||||
Drawf.tri(b.x + Tmp.v1.x, b.y + Tmp.v1.y, serrationWidth, sl, b.rotation() + 90);
|
Drawf.tri(b.x + Tmp.v1.x, b.y + Tmp.v1.y, serrationWidth, sl, b.rotation() + 90);
|
||||||
Drawf.tri(b.x + Tmp.v1.x, b.y + Tmp.v1.y, serrationWidth, sl, b.rotation() - 90);
|
Drawf.tri(b.x + Tmp.v1.x, b.y + Tmp.v1.y, serrationWidth, sl, b.rotation() - 90);
|
||||||
}
|
}
|
||||||
Drawf.tri(b.x, b.y, width * b.fout(), (realLength + 50), b.rotation());
|
Drawf.tri(b.x, b.y, width * b.fout(), (realLength + 4f), b.rotation());
|
||||||
Drawf.tri(b.x, b.y, width * b.fout(), 10f, b.rotation() + 180f);
|
Drawf.tri(b.x, b.y, width * b.fout(), 10f, b.rotation() + 180f);
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ public class NuclearReactor extends PowerGenerator{
|
|||||||
public float heatOutput = 15f;
|
public float heatOutput = 15f;
|
||||||
/** rate at which heat progress increases */
|
/** rate at which heat progress increases */
|
||||||
public float heatWarmupRate = 1f;
|
public float heatWarmupRate = 1f;
|
||||||
|
/** time taken to cool down if no fuel is inputted even if coolant is not present*/
|
||||||
|
public float ambientCooldownTime = 60f * 20f;
|
||||||
/** threshold at which block starts smoking */
|
/** threshold at which block starts smoking */
|
||||||
public float smokeThreshold = 0.3f;
|
public float smokeThreshold = 0.3f;
|
||||||
/** heat threshold at which lights start flashing */
|
/** heat threshold at which lights start flashing */
|
||||||
@@ -104,6 +106,7 @@ public class NuclearReactor extends PowerGenerator{
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
productionEfficiency = 0f;
|
productionEfficiency = 0f;
|
||||||
|
heat = Math.max(0f, heat - Time.delta / ambientCooldownTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(heat > 0){
|
if(heat > 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user