User Tools

Site Tools


mr:keyring_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mr:keyring_item [2025/12/19 06:05] – Add wiki pages for Ring of Frost, YogsEye, Lich subclass, and Keyring with source code references mikemr:keyring_item [2025/12/19 06:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Keyring Item ======
  
 +==== Entity Kind ====
 +Keyring
 +
 +==== Java Class ====
 +[[code:com/watabou/pixeldungeon/items/bags/Bag.java|Bag.java]]
 +
 +==== JSON Configuration ====
 +(No specific JSON config for this item)
 +
 +==== Lua Script ====
 +(No specific Lua script for this item)
 +
 +==== String Resource References ====
 +(Uses generic bag descriptions from parent class)
 +
 +==== Code Implementation ====
 +This item inherits from Bag class. It has the following key properties:
 +
 +  * **image**: 11 (referring to the sprite index)
 +  * **AC_OPEN**: The action to open the bag
 +  * **Container**: Specifically designed to hold artifacts
 +  * **isUpgradable**: Returns false, as it cannot be upgraded
 +  * **isIdentified**: Returns true, as it starts identified
 +
 +==== Behavior ====
 +  * Only accepts items that are artifacts (have bag() method returning Keyring)
 +  * Can be opened to access its contents
 +  * When detached from hero, returns its contents to hero's inventory
 +  * Automatically validates badges when collected by hero
mr/keyring_item.txt · Last modified: by 127.0.0.1