mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9b6c44757a
core/src/mindustry/world
@ -375,6 +375,8 @@ public class Block extends UnlockableContent{
|
||||
if(hasItems && configurable){
|
||||
bars.add("items", entity -> new Bar(() -> Core.bundle.format("bar.items", entity.items.total()), () -> Pal.items, () -> (float)entity.items.total() / itemCapacity));
|
||||
}
|
||||
|
||||
if(flags.contains(BlockFlag.unitModifier)) stats.add(Stat.maxUnits, (unitCapModifier < 0 ? "-" : "+") + Math.abs(unitCapModifier));
|
||||
}
|
||||
|
||||
public boolean canReplace(Block other){
|
||||
|
@ -30,6 +30,7 @@ public enum Stat{
|
||||
lightningDamage,
|
||||
abilities,
|
||||
canBoost,
|
||||
maxUnits,
|
||||
|
||||
itemCapacity(StatCat.items),
|
||||
itemsMoved(StatCat.items),
|
||||
@ -51,7 +52,6 @@ public enum Stat{
|
||||
productionTime(StatCat.crafting),
|
||||
drillTier(StatCat.crafting),
|
||||
drillSpeed(StatCat.crafting),
|
||||
maxUnits(StatCat.crafting),
|
||||
linkRange(StatCat.crafting),
|
||||
instructions(StatCat.crafting),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user