fresh-new dynamic items (e.g. pickaxe) can be stacked

This commit is contained in:
Song Minjae
2017-04-25 02:59:59 +09:00
parent a72b6f0d1a
commit ce08b47423
12 changed files with 102 additions and 47 deletions

View File

@@ -93,7 +93,7 @@ class UIItemInventoryElem(
// this one-liner sets color
g.color = item!!.nameColour mul if (mouseUp) mouseOverTextCol else inactiveTextCol
g.drawString(
"$item" + (if (amount > 0 && !item!!.isUnique) "$fwsp($amount)" else "") +
"$item" + (if (amount > 0 && item!!.stackable) "$fwsp($amount)" else if (amount != 1) "$fwsp!!$amount!!" else "") +
//item!!.name + (if (amount > 0 && !item!!.isUnique) "$fwsp($amount)" else "") +
(if (equippedSlot != null) " ${0xE081.toChar()}\$$equippedSlot" else ""),
posX + textOffsetX,