User Tools

Site Tools


mr:ring_of_accuracy_item

Differences

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

Link to this comparison view

Next revision
Previous revision
mr:ring_of_accuracy_item [2025/12/29 10:39] – Update ring_of_accuracy_item.txt with detailed code references and mechanics from Java source mikemr:ring_of_accuracy_item [2026/04/10 05:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== RingOfAccuracy Item - Code References ======
  
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/RingOfAccuracy.java|RingOfAccuracy.java]] - Main item class
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/Ring.java|Ring.java]] - Base ring class
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/Ring.RingBuff.java#L19-L24|Ring.RingBuff.java]] - Base buff class for rings
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/RingOfAccuracy.java#L17-L21|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 =====
 +<code xml>
 +<string name="RingOfAccuracy_Name">Ring of Accuracy</string>
 +<string name="RingOfAccuracy_Info">This ring increases your chance to hit the enemy.</string>
 +</code>
 +
 +===== 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