"speed" label for encumberance rules incorrectly displayed as "[object Object]" in player sheet effects tab

Issue #272 resolved
Ben Freeland created an issue

Setup

dnd5e: 1.4.1
obsidian: 5.0.8

Steps to reproduce:

  1. Set Encumbrance rules to Standard
  2. Create player sheet
  3. Add an item with high weight (eg. 200 lb) to player sheet
  4. 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)

  1. Log in to comment