mr:ring_of_accuracy_item
Table of Contents
RingOfAccuracy Item - Code References
Java Classes
- RingOfAccuracy.java - Main item class
- Ring.java - Base ring class
- Ring.RingBuff.java - Base buff class for rings
- RingOfAccuracy.Accuracy - Specific buff class that increases attack skill bonus
JSON Configuration
There are no specific JSON configuration files for this ring in the current assets directory. The ring is defined through Java code.
String Resources
<string name="RingOfAccuracy_Name">Ring of Accuracy</string> <string name="RingOfAccuracy_Info">This ring increases your chance to hit the enemy.</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists.
Item Mechanics
- Provides attack skill bonus equal to ring level: level() bonus to attackSkill
- Implemented through the Accuracy nested buff class
- The buff returns level() as the attack skill bonus (line 19 in RingOfAccuracy.java)
- Description is shown only when the ring is identified (isKnown() check on line 15)
Implementation Details
- Extends Ring base class
- Contains nested Accuracy class that extends RingBuff
- Overrides buff() method to return Accuracy instance
- Overrides desc() method to provide conditional description
- Uses StringsManager for localization support
mr/ring_of_accuracy_item.txt · Last modified: by 127.0.0.1
