====== Encumbrance Buff - Code References ====== ===== Java Classes ===== This entity is implemented via Lua script. No direct Java class for the buff itself. * Buff base: RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Buff.java * Encumbrance check: RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/hero/Belongings.java (encumbranceCheck() method) * Buff application: RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/Char.java (lines 334-336) ===== JSON Configuration ===== This entity has no JSON configuration. It is implemented via Lua script. ===== String Resources ===== I\'m not strong enough to wield %s properly. This %s is too heavy for me to use effectively. I need to work on my strength before I can use %s. I lack the strength to use %s to its full potential.\" %s is too much for me to handle right now. Not enough strength to use %s effectively. Burden ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/buffs/Encumbrance.lua|Encumbrance.lua]] - Main implementation * Uses: "scripts/lib/buff" library * Icon index: 50 * Triggers on charAct when difficulty < 2 (5% chance to yell) * Attaches to character when encumbrance check is valid * References Belongings.encumbranceCheck() for item name ===== Related mr Entities ===== * [[mr:unsuitable_item_buff|Unsuitable Item Buff]] - Related buff using same string resources