Table of Contents

Librarian NPC - Code References

Entity Name

librarian_npc

Java Classes

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

JSON Configuration

This entity is implemented in Java, no JSON configuration exists

String Resources

English (values/strings_all.xml):

<string name="LibrarianNPC_Name">librarian</string>
<string name="LibrarianNPC_Desc">A very shy person, wearing an awkward looking sweater and a thick pair of glasses.</string>
<string name="LibrarianNPC_Message_Instruction">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.</string>
<string name="LibrarianNPC_Message_Not_Ready">I... I am sorry, l-library isn't open... yet.</string>
<string name="LibrarianNPC_Gender">masculine</string>
<string name="LibrarianNPC_Name_Objective">librarian</string>

Russian (values-ru/strings_all.xml):

<string name="LibrarianNPC_Name">библиотекарь</string>
<string name="LibrarianNPC_Desc">Очень застенчивый человек, одетый в нелепый свитер и толстые очки.</string>
<string name="LibrarianNPC_Message_Instruction">З-здравствуйте. Добро пожаловать в Библиотеку. Здесь вы можете найти информацию обо всех вещах, которые можно найти в подземелье... на самом деле мы можем предоставить только знания, которые были открыты искателями приключений. Это... это немного смущает. Поэтому каждый раз, когда вы посещаете нас, вероятно, будут новые вещи для чтения.</string>
<string name="LibrarianNPC_Message_Not_Ready">И... извините, б-библиотека ещё не открыта.</string>
<string name="LibrarianNPC_Gender">masculine</string>
<string name="LibrarianNPC_Name_Objective">библиотекаря</string>

Lua Scripts

This entity is implemented in Java, no Lua script exists

Entity Implementation Details

Content Verification