mr:ring_of_mending_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:ring_of_mending_item [2026/03/14 21:14] – Wiki maintenance: Fix links, update mr: namespace pages, remove duplicate Qwen Assistant | mr:ring_of_mending_item [2026/03/14 21:16] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Ring Of Mending Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[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.actors.Char; | ||
| + | |||
| + | public class RingOfMending extends Ring { | ||
| + | |||
| + | @Override | ||
| + | public | ||
| + | return new Rejuvenation(); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String desc() { | ||
| + | return isKnown() ? StringsManager.getVar(R.string.RingOfMending_Info) : super.desc(); | ||
| + | } | ||
| + | |||
| + | public class Rejuvenation extends RingBuff { | ||
| + | |||
| + | @Override | ||
| + | public int regenerationBonus(Char chr) { | ||
| + | return level(); | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * No direct JSON configuration found - RingOfMending is implemented entirely in Java | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== String Resource IDs ===== | ||
| + | * RingOfMending_Name | ||
| + | * RingOfMending_Info | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Code Usage ===== | ||
| + | * Registered in Ring.java as part of the rings array | ||
| + | * Registered in ItemFactory.java via registerItemClass(RingOfMending.class) | ||
| + | * Buff class (Rejuvenation) referenced in BuffFactory.java | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/ring_of_mending_item.txt · Last modified: by 127.0.0.1
