mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
45ce8c8dec
@ -28,10 +28,11 @@ public class ReloadTurret extends BaseTurret{
|
||||
protected void updateCooling(){
|
||||
if(reloadCounter < reload && coolant != null && coolant.efficiency(this) > 0 && efficiency > 0){
|
||||
float capacity = coolant instanceof ConsumeLiquidFilter filter ? filter.getConsumed(this).heatCapacity : 1f;
|
||||
float amount = coolant.amount * coolant.efficiency(this);
|
||||
coolant.update(this);
|
||||
reloadCounter += coolant.amount * edelta() * capacity * coolantMultiplier;
|
||||
reloadCounter += amount * edelta() * capacity * coolantMultiplier;
|
||||
|
||||
if(Mathf.chance(0.06 * coolant.amount)){
|
||||
if(Mathf.chance(0.06 * amount)){
|
||||
coolEffect.at(x + Mathf.range(size * tilesize / 2f), y + Mathf.range(size * tilesize / 2f));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user