mr:chaos_crystal_item
Table of Contents
Chaos Crystal Item - Code References
Java Classes
- UsableArtifact.java (parent class)
- Item.java (base class)
Implementation Details
- Package: `com.nyrds.pixeldungeon.items.chaos`
- Extends: `UsableArtifact`
- Image: `items/artifacts.png` (index 9)
- Fuse duration: `TIME_TO_FUSE = 10`
- Use duration: `TIME_TO_USE = 1`
- Charge mechanism: Increases by 1 when owner takes damage (max 100)
- Identify levels: 3 levels (0=unknown, 1=Chaotic Crystal, 2=Chaos Crystal)
- Actions: `AC_USE` (set Chaos Mark), `AC_FUSE` (fuse with items)
- Fuse requirements: charge >= 50 and identifyLevel > 1
- Glow effect: Random color glow when unidentified
Fuse Transformations
- Scroll → ScrollOfWeaponUpgrade
- Bow → ChaosBow
- MeleeWeapon → ChaosSword
- Armor → ChaosArmor
- Wand → ChaosStaff
- Shield → ChaosShield (via ItemFactory)
JSON Configuration
This entity is implemented in Java, no JSON configuration exists
String Resources
<string name="ChaosCrystal_Name">Strange Crystal</string> <string name="ChaosCrystal_Name_1">Chaotic Crystal</string> <string name="ChaosCrystal_Name_2">Chaos Crystal</string> <string name="ChaosCrystal_Info">You feel streams of energy, running through your hands while you holding it.</string> <string name="ChaosCrystal_Info_1">Chaotic powers flow through this crystal. Maybe it might be useful.</string> <string name="ChaosCrystal_Info_2">Yes! Now you know, that you can fuse it with one of your items, but what's next?</string> <string name="ChaosCrystal_Use">USE</string> <string name="ChaosCrystal_Fuse">FUSE</string> <string name="ChaosCrystal_Prompt">Choose place to set Chaos Mark</string> <string name="ChaosCrystal_SelectForFuse">Choose item to fuse Chaos Crystal in</string> <string name="ChaosCrystal_ScrollFused">Crystal absorbed by rune inscribed on scroll, and now it is a %s</string> <string name="ChaosCrystal_SwordFused">Crystal absorbs your weapon, and took the form of a Sword</string> <string name="ChaosCrystal_BowFused">Crystal absorbs your bow, and took the form of a Bow</string> <string name="ChaosCrystal_StaffFused">Crystal absorbs your wand, and took the form of a Staff</string> <string name="ChaosCrystal_ArmorFused">The crystal fused with your armor, and it took the chaos form.</string> <string name="ChaosCrystal_ShieldFused">The crystal fused with your shield, and it took the chaos form.</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Related mr Entities
mr/chaos_crystal_item.txt · Last modified: by 127.0.0.1
