en:rpd:trap_mechanic
Table of Contents
Trap Mechanic
Description
Traps are hidden hazards placed throughout the dungeon that activate when stepped on or triggered from a distance. They can cause various harmful effects and require careful navigation to avoid.
Trap Types
- Fire Trap - FireTrap.java - Creates burning flames that deal fire damage
- Poison Trap - PoisonTrap.java - Releases poisonous darts that apply poison status effect
- Alarm Trap - AlarmTrap.java - Creates a loud alarm that attracts all monsters in the dungeon
- Lightning Trap - LightningTrap.java - Strikes with electric current dealing damage based on % of HP
- Toxic Trap - ToxicTrap.java - Releases toxic gas that applies poison effect
- Paralytic Trap - ParalyticTrap.java - Releases gas that paralyzes the target
- Gripping Trap - GrippingTrap.java - Damages and roots the target in place
- Summoning Trap - SummoningTrap.java - Summons enemies around the hero
Common Traps
- Fire Trap - Creates burning flames
- Poison Trap - Releases poisonous gas
- Alarm Trap - Creates a loud noise attracting enemies
- Lightning Trap - Strikes with electric current
- Gravel Trap - Reveals invisible enemies and items
- Summoning Trap - Summons enemies
- Teleportation Trap - Teleports the hero to random location
- Ward Trap - Creates protective wards
- Toxic Trap - Releases toxic gas
- Paralytic Trap - Paralyzes targets
- Gripping Trap - Grips and damages targets
Common Mechanics
- Stealth: Traps are hidden until triggered or discovered
- Disarming: Some characters can disarm traps for benefits
- Detection: Hero can learn to detect nearby traps as they level up
- Activation: Usually triggered by stepping on them or passing by
Code References
- Trap Base Class: Trap.java - Base implementation
- Level Objects: LevelObject.java - How traps fit into level objects
- Trap Implementations:
- FireTrap.java - Fire trap mechanics
- PoisonTrap.java - Poison dart trap mechanics
- AlarmTrap.java - Alarm trap mechanics
- LightningTrap.java - Lightning trap mechanics
- ToxicTrap.java - Toxic gas trap mechanics
- ParalyticTrap.java - Paralytic gas trap mechanics
- GrippingTrap.java - Gripping trap mechanics
- SummoningTrap.java - Summoning trap mechanics
- Detection System: Hero trap detection - How heroes detect traps
- Dungeon System: Dungeon.java - How traps are placed
- String Resources: strings_all.xml - All trap-related text
String Resource References
<string name="Level_TileToxicTrap">Toxic gas trap</string> <string name="Level_TileFireTrap">Fire trap</string> <string name="Level_TileParalyticTrap">Paralytic gas trap</string> <string name="Level_TilePoisonTrap">Poison dart trap</string> <string name="Level_TileAlarmTrap">Alarm trap</string> <string name="Level_TileLightningTrap">Lightning trap</string> <string name="Level_TileGrippingTrap">Gripping trap</string> <string name="Level_TileSummoningTrap">Summoning trap</string> <string name="Level_TileInactiveTrap">Triggered trap</string> <string name="Level_TileDescTrap">Stepping onto a hidden pressure plate will activate the trap.</string> <string name="Level_TileDescInactiveTrap">The trap has been triggered before and it's not dangerous any more.</string> <string name="AlarmTrap_Desc">The trap emits a piercing sound that echoes throughout the dungeon!</string> <string name="LightningTrap_Name">lightning trap</string> <string name="LightningTrap_Desc">You were killed by a discharge of a lightning trap...</string>
Trap Interaction
- Triggering: Usually occurs when stepping on the trap
- Avoidance: Can sometimes be spotted before triggering
- Disarming: Some classes can safely disarm traps
- Effects: Various harmful, helpful or mixed effects possible
See Also
- Hero (trap interactions)
- Challenges (trap-related challenges)
en/rpd/trap_mechanic.txt · Last modified: by 127.0.0.1

