User Tools

Site Tools


mr:unsuitable_item_buff

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
mr:unsuitable_item_buff [2026/04/07 23:13] – Fix wiki page issues: broken links, duplicate content, image consistency, mr: page improvements Qwen Assistantmr:unsuitable_item_buff [2026/04/07 23:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Unsuitable Item Buff - Code References ======
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/Badges.java|Badges.java]] - Contains BADGES_ALL_ENCUMBERED check for achievement
 +  * Note: This buff is closely related to [[mr:encumbrance_buff|Encumbrance Buff]] - both use the same string resources but are separate Lua implementations
 +
 +===== JSON Configuration =====
 +This entity is implemented in Lua, no JSON configuration exists
 +
 +===== String Resources =====
 +<code xml>
 +<string name="EncumbranceBuff_Name">Burden</string>
 +<string name="EncumbranceBuff_Info">Not enough strength to use %s effectively.</string>
 +<string name="EncumbranceBuff_CharAct_1">I\'m not strong enough to wield %s properly.</string>
 +<string name="EncumbranceBuff_CharAct_2">This %s is too heavy for me to use effectively.</string>
 +<string name="EncumbranceBuff_CharAct_3">I need to work on my strength before I can use %s.</string>
 +<string name="EncumbranceBuff_CharAct_4">I lack the strength to use %s to its full potential."</string>
 +<string name="EncumbranceBuff_CharAct_5">%s is too much for me to handle right now.</string>
 +</code>
 +
 +===== Lua Scripts =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/buffs/UnsuitableItem.lua|UnsuitableItem.lua]] - Main buff implementation
 +  * Note: Related implementation at [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/buffs/Encumbrance.lua|Encumbrance.lua]] - Separate but related buff using same string resources
 +
 +===== Implementation Details =====
 +  * **Buff Type**: Debuff applied when wielding items without sufficient strength
 +  * **String Resource Prefix**: EncumbranceBuff_ (shared with Encumbrance buff)
 +  * **Display Name**: Uses "UnsuitableItemBuff_Name" string resource
 +  * **Info Text**: Uses "UnsuitableItemBuff_Info" with item name parameter
 +  * **Character Action Messages**: Uses EncumbranceBuff_CharAct_1 through 5 (commented out in code)
 +  * **Difficulty Check**: Only active on difficulty levels below 2 (charAct function returns early on higher difficulties)
 +  * **Icon**: Uses icon index 52
 +  * **Trigger**: Applied when hero equips items that fail encumbranceCheck()
 +
 +===== Related mr Entities =====
 +  * [[mr:encumbrance_buff|Encumbrance Buff]] - Related buff using same string resources
 +  * [[mr:strength_mechanic|Strength Mechanic]] - Related mechanic for strength requirements
  
mr/unsuitable_item_buff.txt · Last modified: by 127.0.0.1