- changed status to resolved
"speed" label for encumberance rules incorrectly displayed as "[object Object]" in player sheet effects tab
Issue #272
resolved
Setup
dnd5e: 1.4.1
obsidian: 5.0.8
Steps to reproduce:
- Set Encumbrance rules to Standard
- Create player sheet
- Add an item with high weight (eg. 200 lb) to player sheet
- Click effects tab
Expected:
The Effects tab should show the following effect:
“Over Capacity: speed 0”
Observed:
The effects tab shows the following effect:
“Over Capacity: [object Object] 0”
Suggested Fix:
It looks like the problem is caused by the addRules function in js/labels.js trying to localize the key “Speed” which was removed. Not sure whether it should be ‘SpeedLC' or ‘SpeedTitle’, but I’m going to guess ‘SpeedLC’ since it’s not used anywhere else?
Comments (1)
-
repo owner - Log in to comment
Thank you for the patch, Ben. This should now be fixed in 5.0.9