User Tools

Site Tools


mr:potion_of_frost_item

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
mr:potion_of_frost_item [2026/03/04 02:43] – Fix wiki documentation standards compliance Qwen Assistantmr:potion_of_frost_item [2026/03/04 02:46] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Potion of Frost Item - Code References ======
 +
 +{{ rpd:images:potion_of_frost_item.png|Potion of Frost }}
 +
 +===== Java Classes =====
 +  * Main Class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfFrost.java|PotionOfFrost.java]]
 +  * Parent Class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/UpgradablePotion.java|UpgradablePotion.java]]
 +  * Registration: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java#L287|ItemFactory.java#L287]]
 +  * Alchemy Plant: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/plants/Icecap.java#L49|Icecap.java#L49]] (Icecap plant produces this potion)
 +
 +===== Key Methods =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfFrost.java#L28-L47|shatter(int cell)]] - Creates freezing cloud effect in 2-cell radius
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfFrost.java#L49-L51|desc()]] - Returns item description from string resources
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfFrost.java#L53-L55|basePrice()]] - Returns base price of 50 gold
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfFrost.java#L57-L62|moistenArrow(Arrow arrow, Char owner)]] - Creates FrostArrow when moistening arrows
 +
 +===== JSON Configuration =====
 +No specific JSON configuration file for this item. Uses default potion configuration.
 +
 +===== String Resources =====
 +<code xml>
 +<!-- English strings -->
 +<string name="PotionOfFrost_Name">Potion of Frost</string>
 +<string name="PotionOfFrost_Info">Upon exposure to open air, this chemical will evaporate into a freezing cloud, causing any creature that contacts it to be frozen in place, unable to act and move.</string>
 +
 +<!-- Russian strings -->
 +<string name="PotionOfFrost_Name">Зелье Мороза</string>
 +<string name="PotionOfFrost_Info">При контакте с воздухом этот химикат испарится, образуя леденящее облачко, примораживающее к месту всякое коснувшееся его существо, лишая того возможности пошевелится.</string>
 +</code>
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists.
 +
 +===== Related Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/blobs/Freezing.java|Freezing.java]] - Blob effect applied by shatter
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/FrostArrow.java|FrostArrow.java]] - Arrow type created by moisten effect
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/icecaves/Kobold.java#L21|Kobold.java#L21]] - 10% drop chance
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/mobs/elementals/WaterElemental.java#L24|WaterElemental.java#L24]] - 10% drop chance
 +
 +===== Game Constants =====
 +  * **Shatter Distance**: 2 cells (DISTANCE constant)
 +  * **Base Price**: 50 gold
 +  * **Label Index**: 0 (first potion label variant)
 +  * **Quality Factor**: Affects shatter radius based on potion quality/upgrade level
 +
 +{{tag> rpd items potions frost code}}
  
mr/potion_of_frost_item.txt · Last modified: by 127.0.0.1