User Tools

Site Tools


mr:ring_of_thorns_item

Differences

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

Link to this comparison view

mr:ring_of_thorns_item [2025/12/23 01:39] – Update ring_of_thorns_item.txt with accurate code references mikemr:ring_of_thorns_item [2025/12/23 01:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Ring Of Thorns Item - Code References ======
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/RingOfThorns.java|RingOfThorns.java]]
 +
 +===== JSON Configuration =====
 +This entity is implemented in Java, no JSON configuration exists
 +
 +===== String Resources =====
 +''<code xml>''
 +<string name="RingOfThorns_Name">Ring of Thorns</string>
 +<string name="RingOfThorns_Info">Though this ring doesn\'t provide real thorns, an enemy that attacks you will itself be wounded by a fraction of the damage that it inflicts. Upgrading this ring won\'t give any additional bonuses.</string>
 +''</code>''
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists
 +
 +===== Special Properties =====
 +  * Not upgradable (isUpgradable() returns false)
 +  * Automatically identified when picked up
 +  * Provides thorns effect: enemy takes random damage (0 to damage dealt) when attacking the wearer
 +  * Special drop from DM300 boss (33.3% chance)
 +  * Associated with Badge.RING_OF_THORNS achievement
 +
 +===== Source Code Reference =====
 +  * buff() method returns new Thorns() instance
 +  * Thorns class has defenceProc method that handles the thorn effect
 +  * defenceProc damages the enemy with a random amount between 0 and the original damage dealt
  
mr/ring_of_thorns_item.txt · Last modified: (external edit)