Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -375,6 +375,8 @@ public class Block extends UnlockableContent{
|
|||||||
if(hasItems && configurable){
|
if(hasItems && configurable){
|
||||||
bars.add("items", entity -> new Bar(() -> Core.bundle.format("bar.items", entity.items.total()), () -> Pal.items, () -> (float)entity.items.total() / itemCapacity));
|
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){
|
public boolean canReplace(Block other){
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public enum Stat{
|
|||||||
lightningDamage,
|
lightningDamage,
|
||||||
abilities,
|
abilities,
|
||||||
canBoost,
|
canBoost,
|
||||||
|
maxUnits,
|
||||||
|
|
||||||
itemCapacity(StatCat.items),
|
itemCapacity(StatCat.items),
|
||||||
itemsMoved(StatCat.items),
|
itemsMoved(StatCat.items),
|
||||||
@@ -51,7 +52,6 @@ public enum Stat{
|
|||||||
productionTime(StatCat.crafting),
|
productionTime(StatCat.crafting),
|
||||||
drillTier(StatCat.crafting),
|
drillTier(StatCat.crafting),
|
||||||
drillSpeed(StatCat.crafting),
|
drillSpeed(StatCat.crafting),
|
||||||
maxUnits(StatCat.crafting),
|
|
||||||
linkRange(StatCat.crafting),
|
linkRange(StatCat.crafting),
|
||||||
instructions(StatCat.crafting),
|
instructions(StatCat.crafting),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user