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

NPC weapon summary partial i18n string #125

Open
tak5haka opened this issue Jul 9, 2024 · 1 comment
Open

NPC weapon summary partial i18n string #125

tak5haka opened this issue Jul 9, 2024 · 1 comment

Comments

@tak5haka
Copy link

tak5haka commented Jul 9, 2024

On the NPC sheet, when having a weapon without a skill focus (such as a mental attack), the NPC weapon summary shows

AC2D20.FOCUS.

instead of a dash or being empty.

@tak5haka
Copy link
Author

tak5haka commented Aug 3, 2024

A suggestion for a fix (as with any of my suggestions, please test thoroughly!). In this case this is a modification of a piece of code found elsewhere in the system that seemed to do the same function.

/templates/actor/parts/npc-abilities.hbs

replace at line 137

							{{#if this.system.focus}}
								<strong>
									{{localize (concat 'AC2D20.FOCUS.' this.system.focus)}}
								</strong>
							{{else}}
								<strong>&mdash;</strong>
							{{/if}}

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