====== Bandit Mob ====== {{ rpd:images:bandit_mob.png|Bandit }} ===== Entity Information ===== * **Entity Kind**: Bandit * **Class**: com.watabou.pixeldungeon.actors.mobs.Bandit * **Entity Type**: mob * **Parent Class**: com.watabou.pixeldungeon.actors.mobs.Thief ===== Code References ===== * **JSON Config**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/Bandit.json|Bandit.json]] * **Lua Script**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/Bandit.lua|Bandit.lua]] * **Mob Factory**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java|MobFactory.java]] * **Parent Class (Thief)**: Implemented via parent Thief mechanics in JSON/Lua ===== Configuration Files ===== * **JSON Config**: mobsDesc/Bandit.json (stats, loot, sprite) * **Lua Script**: scripts/mobs/Bandit.lua (behavior, steal/blind, flee, defenceProc) ===== String Resources ===== * **Name**: @string/Bandit_Name * **Description**: @string/Bandit_Desc * **Gender**: @string/Bandit_Gender ===== Implementation Details ===== * **HP**: 20 (mobsDesc/Bandit.json) * **Defense Skill**: 12 (JSON) * **Attack Skill**: 12 (JSON) * **Damage**: 1-7 (JSON) * **DR (Damage Reduction)**: 3 (JSON) * **Exp for Kill**: 5 (JSON) * **Max Level**: 10 (JSON) * **Attack Delay**: 0.5 (JSON) ===== Special Abilities ===== * **Steal Effect**: When attacking, if successfully steal() is triggered, the Bandit flees and inflicts Blindness for 5-12 turns * **Fleeing**: After stealing, the Bandit enters ThiefFleeing AI state * **Drop on Defense**: When in flee state and attacked, drops Gold * **Loot**: Has 0.01f chance to drop Ring of Haggler (from parent Thief class) ===== Game Mechanics ===== * Inherits all Thief mechanics and behaviors * When stealing from player, causes Blindness to the player character * Carries a random non-equipped item that can be stolen by player * Uses ThiefFleeing AI state after attempting to steal {{tag> rpd mobs bandit thief }}