User Tools

Site Tools


mr:candle_of_mind_vision_item

Candle of Mind Vision Item - Code References

Candle of Mind Vision

Java Classes

Key Implementation Details:

  • Extends: `Artifact` class
  • Implements: `IActingItem` interface
  • Package: `com.nyrds.pixeldungeon.items.artifacts`
  • Max charges: 50
  • Applies `MindVision` buff when equipped
  • Charges deplete over time when activated
  • Has 5 visual states based on remaining charges (images 0-4)

Core Methods:

  • `doEquip(Char hero)` - Applies MindVision buff on equip
  • `doUnequip(Char hero, boolean collect)` - Removes MindVision buff on unequip
  • `spend(Char hero, float time)` - Depletes charges over time
  • `image()` - Returns sprite index based on charge level
  • `desc()` - Returns description based on activation/charge state

JSON Configuration

  • This entity is implemented in Java, no JSON configuration exists

String Resources

<string name="CandleOfMindVision_Name">Candle Of Visions</string>
<string name="CandleOfMindVision_Info">Looks like a regular candle, not something you would expect to find in a dangerous dungeon. Weirdly enough it\'s rather warm to the touch, despite the fact that it wasn\'t lit yet.</string>
<string name="CandleOfMindVision_Info_Lighted">The candle lighted up the moment you took it out of your backpack. The flame emits a faint purple light, and as you look through it, all nearby monsters become visible to you.</string>
<string name="CandleOfMindVision_Info_Exhausted">The candle has burned out, it no longer lights up when you hold it. Looks like you can\'t use it anymore.</string>

Lua Scripts

  • This entity is implemented in Java, no Lua script exists
mr/candle_of_mind_vision_item.txt · Last modified: by 127.0.0.1