mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
durability meter: stack of (new) tools displayed as intended
- displaying NOT based on their stacks but their health
This commit is contained in:
@@ -19,8 +19,7 @@ object AmmoMeterProxy {
|
||||
}
|
||||
else {
|
||||
meter.vitalGetterVal = {
|
||||
if (ItemCodex[currentItem.originalID].stackable) {
|
||||
//println("[AmmoMeterProxy] currentItem: $currentItem")
|
||||
if (currentItem.stackable && currentItem.maxDurability == InventoryItem.DURABILITY_NA) {
|
||||
actor.inventory.getByDynamicID(currentItem.dynamicID)!!.amount.toFloat()
|
||||
}
|
||||
else
|
||||
@@ -28,7 +27,7 @@ object AmmoMeterProxy {
|
||||
}
|
||||
|
||||
meter.vitalGetterMax = {
|
||||
if (ItemCodex[currentItem.originalID].stackable)
|
||||
if (currentItem.stackable && currentItem.maxDurability == InventoryItem.DURABILITY_NA)
|
||||
500f
|
||||
else
|
||||
currentItem.maxDurability.toFloat()
|
||||
|
||||
Reference in New Issue
Block a user