mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 21:14:04 +09:00
Actor reference ID on debug window, RefID is now Int, added Japanese on help page
Former-commit-id: 3519b8746d611c4badd65f01644ba05e41d10d04 Former-commit-id: 45bb407c2d932e5d70aab9c9eb4f3ef55ce68d27
This commit is contained in:
@@ -29,9 +29,9 @@ object ItemPropCodex {
|
||||
|
||||
}
|
||||
|
||||
fun getItem(code: Long): InventoryItem {
|
||||
fun getItem(code: Int): InventoryItem {
|
||||
if (code < ITEM_UNIQUE_MAX)
|
||||
return itemCodex[(code and 0xFFFFFFFF).toInt()]
|
||||
return itemCodex[code]
|
||||
else {
|
||||
for (actor in Terrarum.game.actorContainer) {
|
||||
if (actor is CanBeAnItem && actor.referenceID == code)
|
||||
|
||||
Reference in New Issue
Block a user