v2.5.0: fixed 'see on examine' trying to use catalog instead of bestiary

This commit is contained in:
Evan Debenham
2024-08-31 12:44:39 -04:00
committed by Evan Debenham
parent b7d419a3ca
commit 57ccda1bea

View File

@@ -61,6 +61,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.potions.Potion;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfTeleportation;
import com.shatteredpixel.shatteredpixeldungeon.items.trinkets.DimensionalSundial;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MeleeWeapon;
import com.shatteredpixel.shatteredpixeldungeon.journal.Bestiary;
import com.shatteredpixel.shatteredpixeldungeon.journal.Catalog;
import com.shatteredpixel.shatteredpixeldungeon.journal.Document;
import com.shatteredpixel.shatteredpixeldungeon.journal.Journal;
@@ -1574,11 +1575,11 @@ public class GameScene extends PixelScene {
} else if ( o instanceof Plant ){
GameScene.show( new WndInfoPlant((Plant) o) );
//plants can be harmful to trample, so let the player ID just by examine
Catalog.setSeen(o.getClass());
Bestiary.setSeen(o.getClass());
} else if ( o instanceof Trap ){
GameScene.show( new WndInfoTrap((Trap) o));
//traps are often harmful to trigger, so let the player ID just by examine
Catalog.setSeen(o.getClass());
Bestiary.setSeen(o.getClass());
} else {
GameScene.show( new WndMessage( Messages.get(GameScene.class, "dont_know") ) ) ;
}