====== Librarian NPC - Code References ====== ===== Entity Name ===== librarian_npc ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/LibrarianNPC.java|LibrarianNPC.java]] ===== Class Implementation ===== package com.nyrds.pixeldungeon.mobs.npc; import com.nyrds.pixeldungeon.ml.R; import com.nyrds.platform.util.StringsManager; import com.watabou.pixeldungeon.actors.Char; import com.watabou.pixeldungeon.scenes.GameScene; import com.watabou.pixeldungeon.windows.WndQuest; public class LibrarianNPC extends ImmortalNPC { public LibrarianNPC() { } @Override public boolean interact(final Char hero) { getSprite().turnTo( getPos(), hero.getPos() ); GameScene.show(new WndQuest(this, StringsManager.getVar(R.string.LibrarianNPC_Message_Instruction))); return true; } } ===== Special Abilities ===== * **Immortal**: Cannot be killed (extends ImmortalNPC) * **Library Interface**: Provides access to collected game entity information * **Interaction**: Shows quest window with library instructions when interacted with ===== JSON Configuration ===== This entity is implemented in Java, no JSON configuration exists ===== String Resources ===== English (values/strings_all.xml): librarian A very shy person, wearing an awkward looking sweater and a thick pair of glasses. H-hello. Welcome to the Library. Here you can find the information about all sort of things, that can be found in the dungeon... actually we can only provide knowledge that was discovered by adventurers. It... it's kind of embarrassing. So each time you visit us, probably, there will be new things to read. I... I am sorry, l-library isn't open... yet. masculine librarian Russian (values-ru/strings_all.xml): библиотекарь Очень застенчивый человек, одетый в нелепый свитер и толстые очки. З-здравствуйте. Добро пожаловать в Библиотеку. Здесь вы можете найти информацию обо всех вещах, которые можно найти в подземелье... на самом деле мы можем предоставить только знания, которые были открыты искателями приключений. Это... это немного смущает. Поэтому каждый раз, когда вы посещаете нас, вероятно, будут новые вещи для чтения. И... извините, б-библиотека ещё не открыта. masculine библиотекаря ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Entity Implementation Details ===== * **Package:** com.nyrds.pixeldungeon.mobs.npc * **Base Class:** ImmortalNPC * **Entity Kind:** LibrarianNPC * **Type:** NPC (Non-Player Character) * **Behavior:** Immortal (cannot be killed) * **Purpose:** Provides library interface to access collected information about game entities * **Location:** Library special room in dungeon levels * **Interaction:** Shows WndQuest window with library instructions ===== Related mr Entities ===== * [[mr:library_level|Library (Level)]] ===== Related Files ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java|MobFactory.java]] - registration * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/ImmortalNPC.java|ImmortalNPC.java]] - base class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/Library.java|Library.java]] - library system * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/windows/WndQuest.java|WndQuest.java]] - quest window ===== Content Verification ===== * Information source: Java code (LibrarianNPC.java) and string resources * Last updated: 2026-03-21 based on current codebase analysis * Verified against: RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/LibrarianNPC.java {{tag>mr npcs code_reference}}