mr:thief_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:thief_mob [2026/02/28 07:34] – Wiki maintenance: Fix formatting and improve Thief mob documentation Qwen Assistant | mr:thief_mob [2026/02/28 07:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Thief Mob - Code References ====== | ||
| + | |||
| + | Machine-readable reference page for the Thief mob entity in Remixed Dungeon. | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Java Implementation Details ===== | ||
| + | |||
| + | **Stats (from Thief.java): | ||
| + | <code java> | ||
| + | { | ||
| + | hp(ht(20)); | ||
| + | baseDefenseSkill = 12; // Defense skill: 12 | ||
| + | baseAttackSkill = 12; // Attack skill: 12 | ||
| + | dmgMin = 1; // Minimum damage: 1 | ||
| + | dmgMax = 7; // Maximum damage: 7 | ||
| + | dr = 3; // Damage reduction: 3 | ||
| + | expForKill = 5; // Experience for kill: 5 | ||
| + | maxLvl = 10; // Maximum level: 10 | ||
| + | loot(RingOfHaggler.class, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | **Special Abilities: | ||
| + | * **Steal Attack**: Can steal items from the player on attack (attackProc method) | ||
| + | * **Fleeing Behavior**: Enters ThiefFleeing AI state after successful steal | ||
| + | * **Gold Drop**: Drops gold when hit while in fleeing state (defenseProc method) | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | **Sprite Configuration (Thief.json): | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | **Lua Implementation (ScriptedThief.lua): | ||
| + | <code lua> | ||
| + | return mob.init{ | ||
| + | attackProc = function(self, | ||
| + | if not self: | ||
| + | local belongins = enemy: | ||
| + | if belongins then | ||
| + | local items = belongins.backpack.items | ||
| + | local item = items: | ||
| + | item: | ||
| + | self: | ||
| + | RPD.glog(" | ||
| + | RPD.setAi(self, | ||
| + | end | ||
| + | end | ||
| + | return dmg | ||
| + | end | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | |||
| + | **English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Related mr: Entities ===== | ||
| + | |||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Related Standard Entities ===== | ||
| + | |||
| + | * [[en: | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | |||
| + | ===== Localization Keys ===== | ||
| + | |||
| + | The Thief mob uses the following localization keys across all supported languages: | ||
| + | * Thief_Name - Display name | ||
| + | * Thief_Gender - Grammatical gender (masculine) | ||
| + | * Thief_Name_Objective - Objective case name | ||
| + | * Thief_Desc - Description text | ||
| + | * Thief_Stole - Message when Thief steals from player | ||
| + | * Thief_Carries - Description of stolen item carried by Thief | ||
mr/thief_mob.txt · Last modified: by 127.0.0.1
