00-Evan / shattered-pixel-dungeon

Shattered Pixel Dungeon is an open-source traditional roguelike dungeon crawler with randomized levels and enemies, and hundreds of items to collect and use. It's based on the source code of Pixel Dungeon, by Watabou.
https://shatteredpixel.com/shatteredpd/
GNU General Public License v3.0
4.46k stars 1.04k forks source link

Inventory below an item after being revived through an unblessed ankh #1726

Closed Kurt0524301 closed 2 weeks ago

Kurt0524301 commented 3 weeks ago

I was playing with the Mage when I accidentally died in the prison region. Fortunately, I had an Ankh but not blessed which meant I had to go to the spot where I died to retrieve my inventory. The problem is when I went back there was only a longsword in the ground (which wasn't there before I died) and I couldn't find my inventory even after searching the whole floor. I don't know if it's relevant, but when I was asked to choose what to keep when reviving, I choose a wand (not the staff). (Edited)

00-Evan commented 3 weeks ago

Your inventory should appear at the location you died, and is coded to be prioritized over other items (i.e. it's always at the top of an item stack). It shouldn't ever be possible for an item like a longsword to be on top of it.

Is there any more information you can provide about this, such as what the terrain was like where you died and were ankh revived?

Kurt0524301 commented 3 weeks ago

Screenshot_2024-06-04-15-10-36-87_6f3fe77889fbecf862f7061166760abf

Screenshot_2024-06-04-15-10-08-65_6f3fe77889fbecf862f7061166760abf

Here are some screenshots after my run.

So basically, even if a mob died and dropped an item where my inventory should have been, the inventory (or bag) would still appear on top then? If so, then I'm not sure what happened as well.

00-Evan commented 3 weeks ago

Thanks for the dungeon screenshot, do you recall where you died initially and were revived by the ankh? I'll do a little test to confirm but I'm pretty sure that what you're describing is accurate, that a monster drop would not appear above the lost inventory.

Kurt0524301 commented 3 weeks ago

IMG_20240608_160916

Here, I died on the spot where the longsword was located and revived on the room full of traps (didn't remember the specific tile where I revived).

Kurt0524301 commented 3 weeks ago

IMG_20240608_161810 Screenshot_2024-06-08-16-16-08-44_6f3fe77889fbecf862f7061166760abf Screenshot_2024-06-08-16-15-28-78_6f3fe77889fbecf862f7061166760abf

Here are some additional data that might or might not help. It only happened once anyway, but just posted it here in case it might happen again.

00-Evan commented 2 weeks ago

I've tried testing this in a couple ways and unfortunately can't reproduce it. The dropped inventory correctly appears above other items in the cases i've tested, and is immune to effects like explosions.

I'm going to close this for now, but please feel free to comment if you encounter this again.