User Tools

Site Tools


mr:unsuitable_item_buff

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

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()
mr/unsuitable_item_buff.txt · Last modified: by 127.0.0.1