Table of Contents

Scroll Of Mirror Image Item - Code References

Scroll of Mirror Image

Entity Kind: ScrollOfMirrorImage

Java Classes

MirrorImage NPC Class Details

JSON Configuration

String Resources

English (values/strings_all.xml):

<string name="ScrollOfMirrorImage_Name">Scroll of Mirror Image</string>
<string name="ScrollOfMirrorImage_Info">The incantation on this scroll will create illusionary twins of the reader, which will chase his enemies.</string>
Lines: 1762-1763

Russian (values-ru/strings_all.xml):

<string name="ScrollOfMirrorImage_Name">свиток зеркального образа</string>
<string name="ScrollOfMirrorImage_Info">Прочтение свитка создаст твоего иллюзорного близнеца, который устремится в погоню за врагами.</string>
Lines: 1878-1879

Other Languages:

Lua Scripts

This entity is implemented in Java, no Lua script exists

Game Mechanics

Code Flow

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