mr:scroll_of_weapon_upgrade_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:scroll_of_weapon_upgrade_item [2026/02/13 23:36] – Fix wiki pages based on compliance analysis NYRDS Bot | mr:scroll_of_weapon_upgrade_item [2026/02/13 23:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Scroll of Weapon Upgrade Item - Code References ====== | ||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.watabou.pixeldungeon.items.scrolls; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.Badges; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.effects.Speck; | ||
| + | import com.watabou.pixeldungeon.items.Item; | ||
| + | import com.watabou.pixeldungeon.items.weapon.Weapon; | ||
| + | import com.watabou.pixeldungeon.utils.GLog; | ||
| + | import com.watabou.pixeldungeon.windows.WndBag; | ||
| + | |||
| + | public class ScrollOfWeaponUpgrade extends InventoryScroll { | ||
| + | |||
| + | { | ||
| + | inventoryTitle = StringsManager.getVar(R.string.ScrollOfWeaponUpgrade_InvTitle); | ||
| + | mode = WndBag.Mode.UPGRADABLE_WEAPON; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | protected void onItemSelected(Item item, Char selector) { | ||
| + | |||
| + | Weapon weapon = (Weapon)item; | ||
| + | |||
| + | ScrollOfRemoveCurse.uncurse( selector, weapon ); | ||
| + | weapon.upgrade( true ); | ||
| + | |||
| + | GLog.p(StringsManager.getVar(R.string.ScrollOfWeaponUpgrade_LooksBetter), | ||
| + | |||
| + | Badges.validateItemLevelAcquired( weapon ); | ||
| + | |||
| + | selector.getSprite().emitter().start( Speck.factory( Speck.UP ), 0.2f, 3 ); | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Translated String Resources ===== | ||
| + | <code xml> | ||
| + | <!-- Chinese Simplified --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Chinese Traditional --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- French --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- German --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Italian --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Japanese --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Korean --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Polish --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Portuguese --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Russian --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Spanish --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | |||
| + | <!-- Turkish --> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/scroll_of_weapon_upgrade_item.txt · Last modified: by 127.0.0.1
