User Tools

Site Tools


mr:black_rat_mob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mr:black_rat_mob [2025/12/23 01:39] – Update black_rat_mob.txt in mr namespace with accurate implementation details mikemr:black_rat_mob [2025/12/25 21:25] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Black Rat Mob - Code References ======
  
 +This page contains raw code references and configuration excerpts for the Black Rat mob entity.
 +
 +==== Entity Kind ====
 +  * **getEntityKind() value:** BlackRat
 +
 +==== Java Implementation ====
 +  * **Implementation:** Custom mob implemented via JSON configuration using CustomMob.java base class
 +  * **Base class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/CustomMob.java|CustomMob.java]]
 +
 +==== JSON Configuration ====
 +**Main mob configuration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BlackRat.json|mobsDesc/BlackRat.json]]
 +<code json>
 +{
 +   "defenseSkill"  :1,
 +   "attackSkill"   :10,
 +   "exp"           :1,
 +   "maxLvl"        :1,
 +   "dmgMin"        :1,
 +   "dmgMax"        :1,
 +   "dr"            :1,
 +   "baseSpeed"     :2,
 +   "attackDelay": 1,
 +   "ht": 5,
 +   "viewDistance": 1,
 +   "lootChance": 1,
 +   "name": "Black Rat",
 +   "name_objective": "Black Rat",
 +   "description": "Just a common house rat, not marsupial",
 +   "gender": "feminine",
 +   "spriteDesc": "spritesDesc/BlackRat.json",
 +   "walkingType": "NORMAL",
 +   "scriptFile": "scripts/mobs/ScriptedThief",
 +   "loot": {
 +      "kind": "RatHide"
 +   }
 +}
 +</code>
 +
 +**Sprite configuration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BlackRat.json|spritesDesc/BlackRat.json]]
 +<code json>
 +{
 +  "texture" : "rat.png",
 +  "width"  : 16,
 +  "height" : 15,
 +  "idle"   : { "fps" : 2,  "looped" : true,     "frames" : [0,0,0,1] },
 +  "run"    : { "fps" : 14, "looped" : true,     "frames" : [6,7,8,9,10] },
 +  "attack" : { "fps" : 11, "looped" : false,    "frames" : [2,3,4,5,0] },
 +  "die"    : { "fps" : 11, "looped" : false,    "frames" : [11,12,13,14] },
 +  "zapEffect" : "Shadow"
 +}
 +</code>
 +
 +==== Lua Implementation ====
 +  * **Script file:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/ScriptedThief.lua|ScriptedThief.lua]]
 +  * **Behavior:** Based on thief behavior (steals items from hero when attacking)
 +
 +==== String Resources ====
 +  * **No specific string resources** - uses properties from JSON configuration
 +  * **Name:** Black Rat
 +  * **Description:** Just a common house rat, not marsupial