mr:townsfolk_n_p_c_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:townsfolk_n_p_c_mob [2026/02/21 09:15] – Wiki maintenance: Fix broken links and enhance pages from random selection Qwen Assistant | mr:townsfolk_n_p_c_mob [2026/02/21 09:16] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Townsfolk NPC - Code References ====== | ||
| + | |||
| + | This page contains machine-readable reference information about the Townsfolk NPC entity for automated tools and AI assistants. | ||
| + | |||
| + | ===== Entity Information ===== | ||
| + | * **Entity Kind:** TownsfolkNPC | ||
| + | * **Entity Type:** NPC (Non-Player Character) | ||
| + | * **Namespace: | ||
| + | * **Implementation: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Implementation Details ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.npc; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.scenes.GameScene; | ||
| + | import com.watabou.pixeldungeon.windows.WndQuest; | ||
| + | |||
| + | public class TownsfolkNPC extends ImmortalNPC { | ||
| + | public TownsfolkNPC() {} | ||
| + | |||
| + | @Override | ||
| + | public boolean interact(final Char hero) { | ||
| + | getSprite().turnTo( getPos(), hero.getPos() ); | ||
| + | GameScene.show(new WndQuest(this, | ||
| + | R.string.TownsfolkNPC_Message1, | ||
| + | R.string.TownsfolkNPC_Message2, | ||
| + | R.string.TownsfolkNPC_Message3, | ||
| + | R.string.TownsfolkNPC_Message4)); | ||
| + | return true; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | No specific JSON configuration for this NPC found. This entity is implemented entirely in Java. | ||
| + | |||
| + | ===== String Resources (English) ===== | ||
| + | Source: [[https:// | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== String Resources (Russian) ===== | ||
| + | Source: [[https:// | ||
| + | * Russian localization available in values-ru/ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists. | ||
| + | |||
| + | ===== Behavior ===== | ||
| + | * **Interaction: | ||
| + | * **Movement: | ||
| + | * **Variants: | ||
| + | * **Immortality: | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== See Also ===== | ||
| + | * [[en: | ||
| + | * [[mr: | ||
| + | |||
| + | {{tag> mr npc reference code}} | ||
mr/townsfolk_n_p_c_mob.txt · Last modified: by 127.0.0.1
