From e38dbae236222205e563a42d5991d8612054bfd4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 31 Jul 2022 16:48:07 -0400 Subject: [PATCH] v1.4.0: standardized right click menu images with info windows --- .../shatteredpixeldungeon/scenes/GameScene.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index 9efda3ab7..684a08e91 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -1450,10 +1450,10 @@ public class GameScene extends PixelScene { image = Icons.get(Icons.INFO); } else if (objects.get(0) instanceof Hero) { title = textLines.remove(0); - image = new Image(((Hero) objects.get(0)).sprite); + image = HeroSprite.avatar(((Hero) objects.get(0)).heroClass, ((Hero) objects.get(0)).tier()); } else if (objects.get(0) instanceof Mob) { title = textLines.remove(0); - image = new Image(((Mob) objects.get(0)).sprite); + image = ((Mob) objects.get(0)).sprite(); } else if (objects.get(0) instanceof Heap) { title = textLines.remove(0); image = new ItemSprite((Heap) objects.get(0));