mr:unsuitable_item_buff
Table of Contents
Unsuitable Item Buff - Code References
Java Classes
- Badges.java - Contains BADGES_ALL_ENCUMBERED check for achievement
- Note: This buff is closely related to 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
<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>
Lua Scripts
- UnsuitableItem.lua - Main buff implementation
- Note: Related implementation at 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
- Encumbrance Buff - Related buff using same string resources
- Strength Mechanic - Related mechanic for strength requirements
mr/unsuitable_item_buff.txt · Last modified: by 127.0.0.1
