Fix processing upgrade showing two plus signs in description
This commit is contained in:
parent
cc9d2ef4eb
commit
9758a3474c
@ -96,7 +96,7 @@ fun IMatteryUpgrade.addUpgradeTooltipLines(tooltips: MutableCollection<Component
|
||||
}
|
||||
|
||||
if (processingItems != 0) {
|
||||
tooltips.add(TranslatableComponent("otm.gui.upgrade.processing_items", TextComponent("+$processingItems").withStyle(ChatFormatting.DARK_GREEN)).withStyle(ChatFormatting.GRAY))
|
||||
tooltips.add(TranslatableComponent("otm.gui.upgrade.processing_items", TextComponent(processingItems.toString()).withStyle(ChatFormatting.DARK_GREEN)).withStyle(ChatFormatting.GRAY))
|
||||
}
|
||||
|
||||
if (energyStorageFlat != Decimal.ZERO) {
|
||||
@ -157,9 +157,13 @@ enum class UpgradeType {
|
||||
|
||||
@JvmField
|
||||
val ALL = set(*values())
|
||||
|
||||
@JvmField
|
||||
val BASIC = set(SPEED, ENERGY_STORAGE, ENERGY_CONSUMPTION, ENERGY_THROUGHPUT)
|
||||
|
||||
@JvmField
|
||||
val BASIC_PROCESSING = set(SPEED, ENERGY_STORAGE, ENERGY_CONSUMPTION, ENERGY_THROUGHPUT, PROCESSING)
|
||||
|
||||
fun set(vararg types: UpgradeType): Set<UpgradeType> {
|
||||
var flags = 0
|
||||
for (v in types) flags = flags or v.flag
|
||||
|
Loading…
Reference in New Issue
Block a user