mr:ankh_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:ankh_item [2026/02/17 17:17] – Wiki standards compliance: Fix duplicate pages and improve mr:ankh_item Qwen Assistant | mr:ankh_item [2026/02/17 17:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Ankh Item - Code References ====== | ||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | * **Entity Kind:** Ankh (returns class simple name via getEntityKind()) | ||
| + | * **Item Type:** Key/ | ||
| + | * **Stackable: | ||
| + | * **Identified: | ||
| + | * **Upgradable: | ||
| + | * **Price:** 50 gold per unit (price() returns 50 * quantity) | ||
| + | * **Sprite:** ItemSpriteSheet.ANKH (index 1) | ||
| + | |||
| + | ===== Resurrection Mechanics ===== | ||
| + | * **Method:** public static boolean resurrect(@NotNull Char chr, NamedEntityKind cause) | ||
| + | * **Process: | ||
| + | 1. Checks if character has Ankh in belongings | ||
| + | 2. Removes Ankh from belongings | ||
| + | 3. For non-Hero characters: calls chr.resurrect() immediately | ||
| + | 4. For Hero: shows WndResurrect window to give player choice | ||
| + | * **Consumption: | ||
| + | * **Side Effect:** All non-equipped items are lost upon resurrection | ||
| + | |||
| + | ===== Related Information ===== | ||
| + | * The Ankh allows resurrection after death but causes loss of all non-equipped items | ||
| + | * Only one Ankh should be carried at a time due to consumption on use | ||
| + | * Implemented as a static method '' | ||
| + | * Uses WndResurrect window for hero resurrection to give player choice | ||
| + | * Statistics track total ankhs used across all runs | ||
| + | |||
| + | {{tag> rpd items resurrection mr}} | ||
mr/ankh_item.txt · Last modified: by 127.0.0.1
