From c6299c8f2ccbb5fc2246eb402022922c2487236f Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Sun, 5 Jan 2020 15:28:28 +0100 Subject: [PATCH] Add throughput stat entry --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/world/blocks/distribution/CraterConveyor.java | 1 + core/src/mindustry/world/meta/BlockStat.java | 1 + 3 files changed, 3 insertions(+) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 42fdfecc1f..56524b1eee 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -530,6 +530,7 @@ error.title = [crimson]An error has occured error.crashtitle = An error has occured blocks.input = Input blocks.output = Output +blocks.throughput = Throughput blocks.booster = Booster block.unknown = [lightgray]??? blocks.powercapacity = Power Capacity diff --git a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java index 88592e9a6f..55ed79d8ae 100644 --- a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java @@ -47,6 +47,7 @@ public class CraterConveyor extends BaseConveyor{ stats.add(BlockStat.maxUnits, 1, StatUnit.none); stats.add(BlockStat.boostEffect, "$blocks.itemcapacity"); + stats.add(BlockStat.throughput, speed * 60, StatUnit.perSecond); } @Override diff --git a/core/src/mindustry/world/meta/BlockStat.java b/core/src/mindustry/world/meta/BlockStat.java index 162df3dd37..c6b4acb9a5 100644 --- a/core/src/mindustry/world/meta/BlockStat.java +++ b/core/src/mindustry/world/meta/BlockStat.java @@ -26,6 +26,7 @@ public enum BlockStat{ input(StatCategory.crafting), output(StatCategory.crafting), + throughput(StatCategory.crafting), productionTime(StatCategory.crafting), drillTier(StatCategory.crafting), drillSpeed(StatCategory.crafting),