Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Legendary actions missing intro/description text #434

Open
3 of 7 tasks
Kualan opened this issue Jul 5, 2024 · 0 comments
Open
3 of 7 tasks

🐞 Legendary actions missing intro/description text #434

Kualan opened this issue Jul 5, 2024 · 0 comments

Comments

@Kualan
Copy link

Kualan commented Jul 5, 2024

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

When displaying the legendary actions section of a statblock imported from 5eTools, prior to the list of actions themselves there should be a small paragraph of text which outlines how many legendary actions the creature can use; for example "[Monster] can take 3 legendary actions, choosing from the options below. Only one legendary action can be used at a time and only at the end of another creature's turn. [Monster] regains spent legendary actions at the start of its turn."
LegendaryActions

Current behaviour

This description paragraph does not display, and the section skips straight to the list of actions themselves. This means viewing the statblock in Obsidian does not reveal how many legendary actions an individual creature gets.
LegendaryActions2

Reproduction

  1. Embed any statblock with legendary actions into an Obsidian page.
  2. Example: Hythonia (MOT)
  3. Compare legendary actions section to how it is displayed on live 5eTools site: https://5e.tools/bestiary.html#hythonia_mot

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.6.5

Plugin Version

4.6.0

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

I believe the root of the issue lies in the generic template that 5eTools uses for legendary action introductions (and number of legendary actions). Looking at the statblock in the 5eTools site homebrew builder, I saw that the site doesn't actually have live text in the legendary actions description field for most statblocks; instead, if the "Legendary Actions Intro" field is left blank, it defaults to a template.

Finding a way for the plugin to replace this template when there is no input text is probably the way to resolve.
LegendaryActions3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant