====== 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]] * Base class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/CustomMob.java|CustomMob.java]] * Factory registration: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java#L184|MobFactory.java]] ==== See Also ==== * [[en:rpd:rat_mob|Regular Rat]] * [[en:rpd:mobs|Mobs]] * [[en:rpd:modding_custom_mobs|Custom Mobs Modding]] * [[mr:black_rat_mob|Black Rat - Code References]] {{tag> rpd mobs rats custom modding }}