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

Both sides previous revisionPrevious revision
mr:ring_of_thorns_item [2026/02/22 00:49] – Wiki maintenance: Fix rat page naming, enhance mr: namespace pages Qwen Assistantmr:ring_of_thorns_item [2026/02/22 00:50] (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]] - Main item class extending Ring
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/Ring.java|Ring.java]] - Parent class
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/Badges.java|Badges.java]] - Badge validation (validateRingOfThorns method)
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/DM300.java|DM300.java]] - Boss drop source (33.3% chance)
 +
 +===== 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
 +
 +===== Implementation Details =====
 +  * **Class**: com.watabou.pixeldungeon.items.rings.RingOfThorns
 +  * **Extends**: Ring
 +  * **Sprite**: ItemSpriteSheet.RING_DIAMOND or ItemSpriteSheet.RING_OPAL (varies)
 +  * **Level**: Automatically set to +1 on random()
 +  * **Upgradable**: No (isUpgradable() returns false)
 +  * **Identify on pickup**: Yes (identify() called in doPickUp)
 +  * **Badge**: Badge.RING_OF_THORNS (unlocked when ring is known)
 +
 +===== Special Properties =====
 +  * **Thorns Effect**: Enemy takes random damage (0 to damage dealt) when attacking the wearer
 +  * **Buff Class**: RingOfThorns.Thorns (inner class extending RingBuff)
 +  * **Defence Proc**: damages the enemy with a random amount between 0 and the original damage dealt
 +  * **Special Drop**: DM300 boss (33.3% chance, alternative to Chaos Crystal)
 +
 +===== Mob Drops =====
 +  * DM300: 33.3% drop rate (alternative drop with Chaos Crystal)
 +
 +===== Related mr Entities =====
 +  * [[mr:ring_item|Ring (Item)]]
 +  * [[mr:dm300_mob|DM300 (Mob)]]
 +  * [[mr:chaos_crystal_item|Chaos Crystal (Item)]]
 +  * [[mr:badges_mechanic|Badges Mechanic]]
  
mr/ring_of_thorns_item.txt · Last modified: by 127.0.0.1