mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-12 14:51:51 +09:00
portrait now available again on player load; still not on the equippedview
This commit is contained in:
@@ -112,7 +112,7 @@ class AssembledSpriteAnimation(
|
||||
if (flipHorizontal) bodypartPos = bodypartPos.invertX()
|
||||
bodypartPos += ADPropertyObject.Vector2i(1,0)
|
||||
|
||||
if (name == "HELD_ITEM") { // inject item's image
|
||||
if (name in jointNameToEquipPos) {
|
||||
ItemCodex[(parentActor as? Pocketed)?.inventory?.itemEquipped?.get(jointNameToEquipPos[name]!!)]?.let { item ->
|
||||
ItemCodex.getItemImage(item)?.let { image ->
|
||||
val drawPos = adp.origin + bodypartPos // imgCentre for held items are (0,0)
|
||||
|
||||
Reference in New Issue
Block a user