User Tools

Site Tools


mr:rat_mob

Rat Mob - Code References

Rat

Rat is a common enemy found in the early dungeon levels.

Java Classes

Implementation Details

  • Class: com.watabou.pixeldungeon.actors.mobs.Rat
  • Extends: Mob
  • Sprite: spritesDesc/Rat.json
  • HP: 8
  • Defense Skill: 3
  • Attack Skill: 8
  • Damage: 1-5
  • Defense Rating: 1
  • Max Level: 7
  • AI: Default mob AI with special behavior against Rat Skull Ratter aura

Special Behavior

  • Fear Response: Rats flee from characters with the Rat Skull Ratter aura (from Plague Doctor NPC quest)
  • Terror: When fleeing from Rat Skull Ratter aura, rats are also affected by Terror
  • Quest Mob: Rats are involved in multiple NPC quests:
    • Ghost's quest (sewers)
    • Scarecrow NPC quest
    • Plague Doctor NPC quest

Drops

  • Can drop loot based on bestiary configuration
  • Used in alchemy recipes (Rat Skull, Rat Hide, Rat Meat)

Variants

  • Albino - A rare white rat variant with 15 HP
  • Black Rat - Another rat variant
  • Fetid Rat - Created through alchemy
  • Suspicious Rat - Special variant
  • Pseudo Rat - Special variant
  • Remixed Fetid Rat - Remixed version variant

Alchemy Recipes

  • Rat Skull (3x) + Skeleton Key = Skeleton
  • Rat Meat + Rat Skull = Potion of Healing + Skeleton
  • Dreamweed Seed + Rat Hide = Potion of Invisibility
  • Carcass of Rat + Skeleton Key = Skeleton
  • Corpse Dust (2x) + Dew Vial = Fetid Rat
mr/rat_mob.txt · Last modified: by 127.0.0.1