v0.9.3: fixed a visual error when dewcatchers drop dew onto items

This commit is contained in:
Evan Debenham 2021-03-30 21:05:41 -04:00
parent d25564e9d3
commit d623f3ef71

View File

@ -326,7 +326,11 @@ public class WandOfRegrowth extends Wand {
for (int i = 0; i < nDrops && !candidates.isEmpty(); i++){
Integer c = Random.element(candidates);
if (Dungeon.level.heaps.get(c) == null) {
Dungeon.level.drop(new Dewdrop(), c).sprite.drop(pos);
} else {
Dungeon.level.drop(new Dewdrop(), c).sprite.drop(c);
}
candidates.remove(c);
}