mr:scroll_of_mirror_image_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:scroll_of_mirror_image_item [2026/02/28 14:50] – Fix wiki standards compliance issues Qwen Assistant | mr:scroll_of_mirror_image_item [2026/02/28 14:51] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Scroll Of Mirror Image Item - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | **Entity Kind**: ScrollOfMirrorImage | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * **Main Class**: [[https:// | ||
| + | * **Package**: | ||
| + | * **Parent Class**: [[https:// | ||
| + | * **Related Class**: [[https:// | ||
| + | * **Registration**: | ||
| + | * **Scroll Array**: [[https:// | ||
| + | |||
| + | ===== MirrorImage NPC Class Details ===== | ||
| + | * **Class**: [[https:// | ||
| + | * **Package**: | ||
| + | * **Parent Class**: [[https:// | ||
| + | * **AI State**: [[https:// | ||
| + | * **HP**: 1 (fixed) | ||
| + | * **Carcass Chance**: 0 (no corpse dropped) | ||
| + | * **Immunities**: | ||
| + | * **Attack Behavior**: Destroy itself after one attack (attackProc method) | ||
| + | * **Sprite**: Uses [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * No specific JSON configuration file for this item | ||
| + | * Item registration in [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | **English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | Lines: [[https:// | ||
| + | |||
| + | **Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | Lines: [[https:// | ||
| + | |||
| + | **Other Languages**: | ||
| + | * **German** (values-de/ | ||
| + | * **Spanish** (values-es/ | ||
| + | * **French** (values-fr/ | ||
| + | * **Greek** (values-el/ | ||
| + | * **Japanese** (values-ja/ | ||
| + | * **Chinese Simplified** (values-zh-rCN/ | ||
| + | * **Chinese Traditional** (values-zh-rTW/ | ||
| + | * **Indonesian** (values-in/ | ||
| + | * **Malay** (values-ms/ | ||
| + | * **Turkish** (values-tr/ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Game Mechanics ===== | ||
| + | * **Effect**: Creates 3 illusory clones (NIMAGES = 3) of the reader that hunt enemies | ||
| + | * **Implementation**: | ||
| + | * **Clone Behavior**: Clones are created in adjacent empty cells using Level.getEmptyCellNextTo() | ||
| + | * **Invisibility**: | ||
| + | * **Sound**: Plays Assets.SND_READ sound effect | ||
| + | * **Read Time**: Uses TIME_TO_READ constant from Scroll base class | ||
| + | * **Known Status**: Sets scroll as known if at least one image was created | ||
| + | |||
| + | ===== Code Flow ===== | ||
| + | <code java> | ||
| + | 1. ScrollOfMirrorImage.doRead(Char reader) is called | ||
| + | 2. Gets current dungeon level | ||
| + | 3. Loops NIMAGES (3) times: | ||
| + | - Gets empty cell next to reader | ||
| + | - Creates clone using reader.makeClone() | ||
| + | - Teleports clone to cell using WandOfBlink.appear() | ||
| + | 4. If images were created, sets scroll as known | ||
| + | 5. Plays read sound effect | ||
| + | 6. Dispels invisibility from reader | ||
| + | 7. Spends TIME_TO_READ turns | ||
| + | </ | ||
| + | |||
| + | {{tag> mr items scrolls code_reference}} | ||
mr/scroll_of_mirror_image_item.txt · Last modified: by 127.0.0.1
