====== Rat Mob - Code References ====== {{ rpd:images:rat_mob.png|Rat }} **Rat** is a common enemy found in the early dungeon levels. ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/CustomMob.java|CustomMob.java]] - Handles JSON-defined mobs like Rat * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Albino.java|Albino.java]] - Variant mob class extending Rat ===== JSON Configuration ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/Rat.json|mobsDesc/Rat.json]] - Base Rat configuration * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/Albino.json|mobsDesc/Albino.json]] - Albino variant * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BlackRat.json|mobsDesc/BlackRat.json]] - Black Rat variant * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/FetidRat.json|mobsDesc/FetidRat.json]] - Fetid Rat variant * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/PseudoRat.json|mobsDesc/PseudoRat.json]] - Pseudo Rat variant * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/SuspiciousRat.json|mobsDesc/SuspiciousRat.json]] - Suspicious Rat variant * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/RemixedFetidRat.json|mobsDesc/RemixedFetidRat.json]] - Remixed Fetid Rat variant ===== Implementation Details ===== * **Class**: com.nyrds.pixeldungeon.mobs.common.CustomMob (kind "Rat") * **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** - Rare white rat variant (HP: 15, same damage as base Rat) * **Black Rat** - Common house rat, not marsupial (HP: 5, Damage: 1-1, Attack Skill: 10, Defense Skill: 1, Speed: 2, uses ScriptedThief AI, drops Rat Hide) * **Fetid Rat** - Alchemy-created marsupial rat (HP: 15, Damage: 2-6, Attack Skill: 12, Defense Skill: 5, DR: 2, immune to Paralysis, drops Rat Skull) * **Suspicious Rat** - Deep dungeon variant (HP: 140, Damage: 10-15, Attack Skill: 25, Defense Skill: 25, DR: 2, STR: 17, immune to ToxicGas, pacified initially, Sleeping AI) * **Pseudo Rat** - Horrific beast from rat corpse (HP: 320, Damage: 40-70, Attack Skill: 30, Defense Skill: 30, DR: 25, immune to Paralysis, Hunting AI, 80% loot chance: Gold) * **Remixed Fetid Rat** - Remixed version (HP: 15, Damage: 2-6, Attack Skill: 12, Defense Skill: 5, DR: 2, uses Rat sprite, custom script) ===== 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 ===== Related mr: Entities ===== * [[mr:albino_mob|Albino (Mob)]] * [[mr:black_rat_mob|Black Rat (Mob)]] * [[mr:fetid_rat_mob|Fetid Rat (Mob)]] * [[mr:pseudo_rat_mob|Pseudo Rat (Mob)]] * [[mr:suspicious_rat_mob|Suspicious Rat (Mob)]] * [[mr:remixed_fetid_rat_mob|Remixed Fetid Rat (Mob)]] * [[mr:plague_doctor_npc|Plague Doctor (NPC)]] * [[mr:scarecrow_npc|Scarecrow (NPC)]] * [[mr:rat_skull_item|Rat Skull (Item)]] * [[mr:rat_hide_item|Rat Hide (Item)]] * [[mr:rat_armor_item|Rat Armor (Item)]] * [[mr:rat_king_crown_item|Rat King Crown (Item)]] * Ghost (Mob) (not yet documented) {{tag> mr mobs rat sewers early_game}}