h o p e f u l l y

This commit is contained in:
minjaesong
2021-10-02 22:49:44 +09:00
parent f6b0b447a4
commit 5d357bd3f6
2 changed files with 7 additions and 5 deletions

View File

@@ -154,9 +154,9 @@ object WorldSimulator {
val s = actor.scale
val w = actor.baseHitboxW * s
val h = actor.baseHitboxH * s
val pickupDistance = w*w + h*h// TODO refer to the actorValue
// println("${result.distance}\t$pickupDistance")
if (result.distance < pickupDistance) {
val pickupDistSqr = w*w + h*h// TODO refer to the actorValue
// println("${result.distance}\pickupDistSqr")
if (result.distance < pickupDistSqr) {
droppedItem.flagDespawn = true
(actor as Pocketed).inventory.add(droppedItem.itemID, droppedItem.itemCount)
break