dump (another useless message)

This commit is contained in:
minjaesong
2018-08-05 21:57:18 +09:00
parent 24b2e2a2af
commit eee8a18875
130 changed files with 1350 additions and 563 deletions

View File

@@ -125,7 +125,7 @@ class UIItemInventoryElemSimple(
println("keydown elemgrid")
val inventory = (Terrarum.ingame!! as Ingame).player.inventory
val inventory = (Terrarum.ingame!! as Ingame).playableActor.inventory
val slot = if (keycode == Input.Keys.NUM_0) 9 else keycode - Input.Keys.NUM_1
val currentSlotItem = inventory.getQuickBar(slot)
@@ -157,7 +157,7 @@ class UIItemInventoryElemSimple(
// equip da shit
val itemEquipSlot = item!!.equipPosition
val player = (Terrarum.ingame!! as Ingame).player
val player = (Terrarum.ingame!! as Ingame).playableActor
if (item != player.inventory.itemEquipped.get(itemEquipSlot)) { // if this item is unequipped, equip it
player.equipItem(item!!)