mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
fresh-new dynamic items (e.g. pickaxe) can be stacked
This commit is contained in:
@@ -19,14 +19,14 @@ object AmmoMeterProxy {
|
||||
}
|
||||
else {
|
||||
meter.vitalGetterVal = {
|
||||
if (ItemCodex[currentItem.originalID].consumable)
|
||||
if (ItemCodex[currentItem.originalID].stackable)
|
||||
actor.inventory.getByDynamicID(currentItem.dynamicID)!!.amount.toFloat()
|
||||
else
|
||||
currentItem.durability
|
||||
}
|
||||
|
||||
meter.vitalGetterMax = {
|
||||
if (ItemCodex[currentItem.originalID].consumable)
|
||||
if (ItemCodex[currentItem.originalID].stackable)
|
||||
500f
|
||||
else
|
||||
currentItem.maxDurability.toFloat()
|
||||
|
||||
Reference in New Issue
Block a user