mr:ring_of_stone_walking_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:ring_of_stone_walking_item [2026/04/12 01:53] – Improve wiki pages: fix accuracy, add code references, and enhance consistency Qwen Assistant | mr:ring_of_stone_walking_item [2026/04/12 01:54] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Ring of Stone Walking Item - Code References ====== | ||
| + | This page contains raw code references and configuration excerpts for the Ring of Stone Walking item entity. | ||
| + | |||
| + | ==== Entity Kind ==== | ||
| + | * **getEntityKind() value:** StoneWalking | ||
| + | |||
| + | ==== Java Implementation ==== | ||
| + | * **Class location:** [[https:// | ||
| + | * **Package: | ||
| + | * **Parent Class:** [[https:// | ||
| + | |||
| + | ==== Java Class Content ==== | ||
| + | <code java> | ||
| + | package com.watabou.pixeldungeon.items.rings; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.Badges; | ||
| + | import com.watabou.pixeldungeon.Dungeon; | ||
| + | import com.watabou.pixeldungeon.ResultDescriptions; | ||
| + | import com.watabou.pixeldungeon.actors.hero.Doom; | ||
| + | import com.watabou.pixeldungeon.items.bags.Bag; | ||
| + | import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; | ||
| + | import com.watabou.pixeldungeon.ui.BuffIndicator; | ||
| + | import com.watabou.pixeldungeon.utils.GLog; | ||
| + | import com.watabou.pixeldungeon.utils.Utils; | ||
| + | |||
| + | public class RingOfStoneWalking extends Artifact{ | ||
| + | |||
| + | public RingOfStoneWalking() { | ||
| + | image = ItemSpriteSheet.RING_OF_STONE_WALKING; | ||
| + | identify(); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public ArtifactBuff buff( ) { | ||
| + | return new StoneWalking(); | ||
| + | } | ||
| + | |||
| + | public static class StoneWalking extends ArtifactBuff implements Doom { | ||
| + | @Override | ||
| + | public int icon() { | ||
| + | return BuffIndicator.STONEBLOOD; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String name() { | ||
| + | return StringsManager.getVar(R.string.StoneBloodBuff_Name); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String desc() { | ||
| + | return StringsManager.getVar(R.string.StoneBloodBuff_Info); | ||
| + | } | ||
| + | @Override | ||
| + | public void onHeroDeath() { | ||
| + | Badges.validateDeathInStone(); | ||
| + | |||
| + | Dungeon.fail( Utils.format( ResultDescriptions.getDescription(ResultDescriptions.Reason.IMMURED), | ||
| + | GLog.n(StringsManager.getVar(R.string.RingOfStoneWalking_ImmuredInStone)); | ||
| + | |||
| + | } | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String bag() { | ||
| + | return Bag.KEYRING; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Key Properties from Code ==== | ||
| + | * **Type**: Artifact | ||
| + | * **Image**: ItemSpriteSheet.RING_OF_STONE_WALKING | ||
| + | * **Auto-identified**: | ||
| + | * **Bag Type**: Keyring | ||
| + | * **Buff Class**: StoneWalking | ||
| + | * **Buff Icon**: BuffIndicator.STONEBLOOD | ||
| + | * **Death Effect**: Implements Doom interface - triggers " | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | This entity does not use JSON configuration. | ||
| + | |||
| + | ==== Lua Scripts ==== | ||
| + | This entity is implemented in Java, no Lua script exists. | ||
| + | |||
| + | ==== Code Behavior ==== | ||
| + | * Extends Artifact class | ||
| + | * Provides StoneWalking buff when equipped | ||
| + | * StoneWalking buff allows walking through walls | ||
| + | * Implements Doom interface for special death handling | ||
| + | * Triggers "Death in Stone" badge on death | ||
| + | * Displays special failure message when dying while using the ring | ||
| + | |||
| + | ==== Related Code References ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Related Entities ==== | ||
| + | * **Stone Walking Buff**: [[mr: | ||
| + | * **English Page**: [[en: | ||
| + | * **Russian Page**: [[ru: | ||
| + | |||
| + | {{tag> mr rpd items artifacts java_defined}} | ||
mr/ring_of_stone_walking_item.txt · Last modified: by 127.0.0.1
