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.71k stars 1.1k forks source link

hourglass, mystery meat, seed of icecap #1115

Closed protective1 closed 1 year ago

protective1 commented 2 years ago

I activated timekeepers hourglass to freeze time. I threw a seed of icecap on the ground next to a mob. I threw a mystery meat on the resulting icecap plant. Time was still frozen. I threw a second mystery meat on the first. Time unfroze (I attacked). Only one of the two mystery meats had become frozen carpacio. I expected the meats would stack and both become frozen. Screenshot_20221014-201333 Screenshot_20221014-201410

00-Evan commented 2 years ago

The reason for this is that most effects resolve instantly when they are triggered, so the freeze on the meat occurs the moment that meat is thrown on the icecap. These effects have no concept of 'time', they just execute logic when they are triggered.

Traps have specific exceptions to this behaviour, their triggered is held back by the time freeze buff itself and all triggered occur the moment the time freeze ends.

I'll consider having plants work the same way, but can't garuntee it as it may cause issues elsewhere.

00-Evan commented 1 year ago

functionality added in commit 49b73a75750a79e9114706264f28e871f74d6918