====== Black Rat ====== {{ rpd:images:blackrat_sprite.png|Black Rat }} ==== Description ==== Just a common house rat, not marsupial. The Black Rat is a custom mob implemented via JSON configuration to demonstrate mob creation capabilities for modders. It is functionally similar to other rat variants but with distinct appearance and properties. ==== Stats ==== * **HP (HT):** 5 * **Defense Skill:** 1 * **Attack Skill:** 10 * **Damage:** 1-1 * **Armor (DR):** 1 * **EXP:** 1 * **Max Level:** 1 * **Speed:** 2x normal speed * **View Distance:** 1 * **Attack Delay:** 1 ==== Behavior ==== * Very fast movement speed (2x normal) * Low attack and defense capabilities * Drops Rat Hide as loot (100% chance) * Thief-like behavior: steals items from hero when attacking (inherits behavior from ScriptedThief.lua) ==== Implementation ==== The Black Rat demonstrates custom mob creation through JSON configuration files: * Defined in: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BlackRat.json|mobsDesc/BlackRat.json]] * Uses sprite: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BlackRat.json|spritesDesc/BlackRat.json]] (uses rat.png texture) * Scripted behavior: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/ScriptedThief.lua|scripts/mobs/ScriptedThief.lua]] ==== Content Verification ==== * Information source: JSON configuration files (mobsDesc/BlackRat.json, spritesDesc/BlackRat.json) * Stats verification: Extracted directly from JSON configuration * Implementation details: Based on JSON file structure * Last updated: December 2025, source: Remixed Dungeon 1.9.3 ==== Source Code ==== * Configuration: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BlackRat.json|BlackRat.json]] * Sprite: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BlackRat.json|BlackRat sprite]] * Script: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/ScriptedThief.lua|ScriptedThief.lua]] ==== See Also ==== * [[rpd:rat_mob|Regular Rat]] * [[rpd:mobs|Mobs]] * [[rpd:modding_custom_mobs|Custom Mobs Modding]] * [[mr:black_rat_mob|Black Rat - Code References]] ==== Source Code References ==== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BlackRat.json|mobsDesc/BlackRat.json]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BlackRat.json|spritesDesc/BlackRat.json]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/CustomMob.java|CustomMob.java base class]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java#L184|BlackRat registration in factory]] {{tag> rpd mobs rats custom modding }}