User Tools

Site Tools


mr:ring_of_frost_item

Differences

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

Link to this comparison view

mr:ring_of_frost_item [2025/12/19 06:05] – Add wiki pages for Ring of Frost, YogsEye, Lich subclass, and Keyring with source code references mikemr:ring_of_frost_item [2025/12/19 06:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Ring of Frost Item ======
  
 +==== Entity Kind ====
 +ring_of_frost
 +
 +==== Java Class ====
 +[[code:RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/rings/RingOfFrost.java|RingOfFrost.java]]
 +
 +==== JSON Configuration ====
 +(No specific JSON config for this item)
 +
 +==== Lua Script ====
 +(No specific Lua script for this item)
 +
 +==== String Resource References ====
 +* ''RingOfFrost_Name'': "Ring of Frost"
 +* ''RingOfFrost_Info'': "This ring is carved from magical ice. It's wearer is protected by a frost aura, slowing and damaging the attacking enemies."
 +
 +==== Code Implementation ====
 +This item inherits from Artifact class. It has the following key properties:
 +
 +  * **bag()**: Returns Bag.KEYRING as it's an artifact that goes in the keyring slot
 +  * **isUpgradable()**: Returns true, allowing the ring to be upgraded
 +  * **glowing()**: Returns a cyan glowing effect (0x00FFFF)
 +  * **buff()**: Returns a FrostAura buff which triggers when an enemy attacks the wearer
 +
 +==== FrostAura Buff Mechanics ====
 +When an enemy within 1 tile distance attacks the wearer:
 +  * Applies Slow effect for (Slow.duration(enemy) / 5 + ring level) turns
 +  * Has (10% + ring level)% chance to apply Frost effect for (Frost.duration(enemy) / 5 + ring level) turns
 +  * Deals (ring level / 2) damage to the attacking enemy