diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index ece1bd3ad1..7f11ae04b6 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -25,7 +25,7 @@ public class UnitTypes implements ContentList{ mass = 0.5f; health = 50; rotatespeed = 0.1f; - itemCapacity = 10; + itemCapacity = 16; weapon = new Weapon(){{ length = 1.5f; reload = 28f; diff --git a/core/src/mindustry/entities/type/base/CraterUnit.java b/core/src/mindustry/entities/type/base/CraterUnit.java index 132518de50..fa998fb6c5 100644 --- a/core/src/mindustry/entities/type/base/CraterUnit.java +++ b/core/src/mindustry/entities/type/base/CraterUnit.java @@ -119,4 +119,18 @@ public class CraterUnit extends GroundUnit{ public boolean loading(){ return state.is(load); } + + /** + * Since normal conveyors get faster when boosted, + * this piece of code changes their capacity, + * make sure capacity is dividable by 4, + * for the best user experience. + */ + @Override + public int getItemCapacity(){ + + if(on() == null || on().entity == null) return type.itemCapacity; + + return Mathf.round(type.itemCapacity * on().entity.timeScale); + } }