rpd:immortal_npc
Table of Contents
Immortal NPC
Description
ImmortalNPC is an abstract class that extends the base NPC class in Remixed Dungeon. NPCs that inherit from this class have special properties that make them essentially invulnerable to damage and unable to move.
Properties
- Immobile: Cannot move (movable = false)
- Invulnerable: Cannot take damage from any attacks
- High Defense: Defense skill is set to 1000 (effectively impossible to hit)
- Low Speed: Speed is set to 0.5f (slower than normal)
- Buff Immunity: Cannot receive or be affected by buffs
- Defensive: Uses “wails” as its defense verb
- Reset Behavior: Automatically resets position after actions
Implemented NPCs
NPCs that extend ImmortalNPC include:
- Town Guard - Provides security in town areas
- Townsfolk - Regular citizens with various messages
- Silent Townsfolk - Quiet townspeople with minimal dialogue
- Townsfolk Movie NPC - References cinema's special service
- Healer NPC - Provides healing services
- Librarian NPC - Library-related services
- Fortune Teller NPC - Fortune telling services
- Service Man NPC - Service-related functions
- Sociologist NPC - Social interaction NPC
- Inquirer NPC - Information-seeking NPC
- Scarecrow NPC - Scarecrow that serves as an NPC
- Necromancer NPC - Necromancer-related NPC
- Plague Doctor NPC - Plague-related NPC
- Bella NPC - Bella-related NPC
- Caged Kobold - Caged Kobold NPC
- Other special NPCs in the game
Implementation
- Abstract Class: Cannot be instantiated directly
- Protection: Has special protection against damage and effects
- Purpose: Designed for safe NPCs that provide services, lore, or other functions without risk of being killed
Strategy
- These NPCs are completely safe to interact with
- They cannot be killed or damaged in any way
- They remain in fixed positions due to immobility
- They serve as permanent fixtures in the game world
Source Code References
- Java implementation: ImmortalNPC.java
See Also
rpd/immortal_npc.txt · Last modified: by 127.0.0.1
