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.68k stars 1.09k forks source link

Items get auto picked up when under the effects of a chilling trap, causing the hero to freeze #1719

Closed sp0nj closed 4 months ago

sp0nj commented 4 months ago

I stepped on a hidden chilling trap and then attempted to take two steps out of range to avoid freezing, but I stepped on an item and the game auto-picked it up, causing me to freeze. I assume this would be a situation where the auto-pickup should not happen. Screenshot_20240524-161904

00-Evan commented 4 months ago

I'm afraid this isn't intended. It's generally better, I find, for the game to not make complex assumptions about what the player wants to do, but rather have pretty simple logic when it comes to things like pathing and actions. So in this case the simple rule is "if enemies are present, auto-pickup is disabled."

I understand that's frustrating in this situation, but I'd rather not have a bit list of different specific 'player is in danger' cases where auto-picked turns off.