mr:codex_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:codex_item [2026/05/12 09:47] – Fix broken internal links in rat_king_mob.txt (EN + RU) Qwen Assistant | mr:codex_item [2026/05/12 09:51] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Codex Item - Machine Readable Reference ====== | ||
| + | |||
| + | ===== Overview ===== | ||
| + | The Codex is a readable item (book) in Remixed Dungeon that displays story text when read. | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Hierarchy ===== | ||
| + | * Extends: Book (com.nyrds.pixeldungeon.items.books.Book) | ||
| + | * Package: com.watabou.pixeldungeon.items | ||
| + | |||
| + | ===== Properties ===== | ||
| + | * **stackable**: | ||
| + | * **image**: 4 (sprite index) | ||
| + | * **codexId**: | ||
| + | * **text**: String (custom text, can be null or " | ||
| + | |||
| + | ===== Methods ===== | ||
| + | * **doRead(Char hero)**: Displays story text via WndStory.showCustomStory() | ||
| + | * **fromJson(JSONObject itemDesc)**: | ||
| + | * **price()**: | ||
| + | * **getCodexId()**: | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is primarily implemented in Java. JSON configuration may include: | ||
| + | * " | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | < | ||
| + | <!-- Array of story texts --> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Behavior ===== | ||
| + | * When read, displays custom text if set, otherwise displays story from Codex_Story array | ||
| + | * Uses StringsManager.getVars() to access story array | ||
| + | * Random story selection if codexId is not set | ||
| + | * Cannot be upgraded or identified beyond normal item behavior | ||
| + | |||
| + | ===== Usage in Game ===== | ||
| + | * Found as loot in dungeon | ||
| + | * Provides lore/story content to player | ||
| + | * Part of the books item category | ||
