mr:librarian_npc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:librarian_npc [2026/03/21 06:49] – Wiki maintenance: Fix links, add images, improve mr: pages, remove duplicates Qwen Assistant | mr:librarian_npc [2026/03/21 06:52] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Librarian NPC - Code References ====== | ||
| + | |||
| + | ===== Entity Name ===== | ||
| + | librarian_npc | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Implementation ===== | ||
| + | <code java> | ||
| + | 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, | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Special Abilities ===== | ||
| + | * **Immortal**: | ||
| + | * **Library Interface**: | ||
| + | * **Interaction**: | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Entity Implementation Details ===== | ||
| + | * **Package: | ||
| + | * **Base Class:** ImmortalNPC | ||
| + | * **Entity Kind:** LibrarianNPC | ||
| + | * **Type:** NPC (Non-Player Character) | ||
| + | * **Behavior: | ||
| + | * **Purpose: | ||
| + | * **Location: | ||
| + | * **Interaction: | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Related Files ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Content Verification ===== | ||
| + | * Information source: Java code (LibrarianNPC.java) and string resources | ||
| + | * Last updated: 2026-03-21 based on current codebase analysis | ||
| + | * Verified against: RemixedDungeon/ | ||
| + | |||
| + | {{tag>mr npcs code_reference}} | ||
mr/librarian_npc.txt · Last modified: by 127.0.0.1
