Flare nerf / More liquid capacity increase considerations

This commit is contained in:
Anuken
2025-12-17 18:51:24 -05:00
parent 425b154e3b
commit 670e9467da
4 changed files with 10 additions and 6 deletions

View File

@@ -6196,7 +6196,7 @@ public class Blocks{
airFactory = new UnitFactory("air-factory"){{
requirements(Category.units, with(Items.copper, 60, Items.lead, 70));
plans = Seq.with(
new UnitPlan(UnitTypes.flare, 60f * 15, with(Items.silicon, 15)),
new UnitPlan(UnitTypes.flare, 60f * 15, with(Items.silicon, 20)),
new UnitPlan(UnitTypes.mono, 60f * 35, with(Items.silicon, 30, Items.lead, 15))
);
size = 3;

View File

@@ -1079,10 +1079,11 @@ public class UnitTypes{
shoot.shotDelay = 3f;
ejectEffect = Fx.casing1;
mirror = false;
bullet = new BasicBulletType(2.5f, 16){{
bullet = new BasicBulletType(2.5f, 9){{
inaccuracy = 4f;
width = 7f;
height = 9f;
lifetime = 45f;
lifetime = 32f;
shootEffect = Fx.shootSmall;
smokeEffect = Fx.shootSmallSmoke;
ammoMultiplier = 2;

View File

@@ -1327,12 +1327,16 @@ public class Block extends UnlockableContent implements Senseable{
lightClipSize = Math.max(lightClipSize, size * 30f * 2f);
}
// some blocks dont have hasLiquids but have liquid consumers/liquid capacity
//some blocks don't have hasLiquids, but have liquid consumers/liquid capacity
if(liquidCapacity < 0){
float consumeAmount = 1f;
for(var cons : consumeBuilder){
if(cons instanceof ConsumeLiquid liq){
if(cons instanceof ConsumeLiquidBase liq){
consumeAmount = Math.max(consumeAmount, liq.amount * 60f);
}else if(cons instanceof ConsumeLiquids liq){
for(var stack : liq.liquids){
consumeAmount = Math.max(consumeAmount, stack.amount * 60f);
}
}
}
liquidCapacity = Mathf.round(10f * consumeAmount);

View File

@@ -155,7 +155,6 @@ public class Turret extends ReloadTurret{
public Turret(String name){
super(name);
liquidCapacity = 20f;
outlinedIcon = 1;
drawLiquidLight = false;
sync = true;