mr:keys
Table of Contents
Keys - Code References
Machine-readable reference page for Key items in Remixed Dungeon.
Entity Information
- Category: Key Items
- Entity Kinds: IronKey, SkeletonKey, IceKey
- Item Type: Special items for unlocking
- Stackable: Yes (except Skeleton Key)
- Consumable: Yes (except Skeleton Key)
Java Classes
- Key.java - Base key class (Line 13)
- IronKey.java - Standard key implementation
- SkeletonKey.java - Reusable key implementation
- ItemFactory.java - Item registration (Lines 70, 360)
Base Key Class
public class Key extends Item { // Base class for all key types // Handles unlocking logic }
Key Types
- IronKey: Standard key, consumed on use
- SkeletonKey: Special key, not consumed on use, opens most locks
- IceKey: Special key for ice caves (specific implementation)
Item Registration
// ItemFactory.java import com.watabou.pixeldungeon.items.keys.IronKey; import com.watabou.pixeldungeon.items.keys.SkeletonKey; registerItemClass(IronKey.class); registerItemClass(SkeletonKey.class);
JSON Configuration
No specific JSON configuration. Keys are implemented entirely in Java.
String Resources
<!-- English (values/strings_all.xml) --> <string name="IronKey_Name">iron key</string> <string name="IronKey_Info">The notches on this ancient iron key are well worn; its leather lanyard is battered by age. What door might it open?</string> <string name="SkeletonKey_Name">skeleton key</string> <string name="SkeletonKey_Info">This key looks serious: its head is shaped like a skull. Probably it can open some serious door.</string> <!-- Russian (values-ru/strings_all.xml) --> <string name="IronKey_Name">железный ключ</string> <string name="IronKey_Info">Засечки на этом древнем ключе износились; продетый в него кожаный ремень давно потрескался. Какую дверь им можно открыть?</string> <string name="SkeletonKey_Name">ключ-скелет</string> <string name="SkeletonKey_Info">Весьма внушительный ключ: с головкой в форме черепа. Пожалуй он смог бы открыть некую внушительную дверь.</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists.
Related Entities
Wiki Pages
- Keys (English) - English wiki page
- Skeleton Key - Individual key page
- Ice Key - Individual key page
- Chests Mechanic - What keys unlock
- Shops - Where to buy keys
- Dungeon - Areas with locked doors
mr/keys.txt · Last modified: by 127.0.0.1
