mr:dried_rose_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:dried_rose_item [2026/02/26 21:21] – Wiki maintenance: Fix 5 random pages for standards compliance Qwen Assistant | mr:dried_rose_item [2026/02/26 21:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Dried Rose Item - Code References ====== | ||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * Location: RemixedDungeon/ | ||
| + | * Extends: [[mr: | ||
| + | * Sprite: ItemSpriteSheet.ROSE | ||
| + | |||
| + | ===== Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.watabou.pixeldungeon.items.quest; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.items.rings.Artifact; | ||
| + | import com.watabou.pixeldungeon.items.rings.ArtifactBuff; | ||
| + | import com.watabou.pixeldungeon.sprites.ItemSpriteSheet; | ||
| + | import com.watabou.pixeldungeon.ui.BuffIndicator; | ||
| + | |||
| + | public class DriedRose extends Artifact { | ||
| + | |||
| + | public DriedRose() { | ||
| + | image = ItemSpriteSheet.ROSE; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public ArtifactBuff buff() { | ||
| + | if (!isCursed()) { | ||
| + | return new OneWayLoveBuff(); | ||
| + | } else { | ||
| + | return new OneWayCursedLoveBuff(); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean isIdentified() { | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String info() { | ||
| + | return super.info() + " | ||
| + | } | ||
| + | |||
| + | public static class OneWayLoveBuff extends ArtifactBuff { | ||
| + | @Override | ||
| + | public int icon() { | ||
| + | return BuffIndicator.ROSE; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String name() { | ||
| + | return StringsManager.getVar(R.string.DriedRoseBuff_Name); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String desc() { | ||
| + | return StringsManager.getVar(R.string.DriedRoseBuff_Info); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | public static class OneWayCursedLoveBuff extends ArtifactBuff { | ||
| + | @Override | ||
| + | public int icon() { | ||
| + | return BuffIndicator.CURSED_ROSE; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String name() { | ||
| + | return StringsManager.getVar(R.string.DriedRoseCursedBuff_Name); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public String desc() { | ||
| + | return StringsManager.getVar(R.string.DriedRoseCursedBuff_Info); | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity may have JSON configuration, | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Usage in Codebase ===== | ||
| + | * **Succubus.java**: | ||
| + | * **Ghost.java**: | ||
| + | * **WndSadGhost.java**: | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/dried_rose_item.txt · Last modified: by 127.0.0.1
