remove timePeriod in LiquidBaseValue
This commit is contained in:
@@ -46,6 +46,6 @@ public class ConsumeLiquid extends ConsumeLiquidBase{
|
||||
|
||||
@Override
|
||||
public void display(Stats stats){
|
||||
stats.add(booster ? Stat.booster : Stat.input, liquid, amount * timePeriod, timePeriod == 60);
|
||||
stats.add(booster ? Stat.booster : Stat.input, liquid, amount * 60f, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,6 @@ import mindustry.gen.*;
|
||||
public abstract class ConsumeLiquidBase extends Consume{
|
||||
/** amount used per frame */
|
||||
public final float amount;
|
||||
/**
|
||||
* How much time is taken to use this liquid, in ticks. Used only for visual purposes.
|
||||
* Example: a normal ConsumeLiquid with 10/s and a 10 second timePeriod would display as "100 seconds".
|
||||
* Without a time override, it would display as "10 liquid/second".
|
||||
* This is used for generic crafters.
|
||||
*/
|
||||
public float timePeriod = 60;
|
||||
|
||||
public ConsumeLiquidBase(float amount){
|
||||
this.amount = amount;
|
||||
|
||||
@@ -50,6 +50,6 @@ public class ConsumeLiquidFilter extends ConsumeLiquidBase{
|
||||
|
||||
@Override
|
||||
public void display(Stats stats){
|
||||
stats.add(booster ? Stat.booster : Stat.input, new LiquidFilterValue(filter, amount * timePeriod, timePeriod == 60f));
|
||||
stats.add(booster ? Stat.booster : Stat.input, new LiquidFilterValue(filter, amount * 60f, true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user