Trait Items #72

Open
Oliver wants to merge 41 commits from feature/trait-items into main
2 changed files with 12 additions and 1 deletions
Showing only changes of commit ef719d4892 - Show all commits

View file

@ -113,6 +113,8 @@ export class BookGeistSheet extends
const system = this.actor.system;
const fate = system.fate;
ctx.fateOptions = Object.values(gameTerms.FatePath)
.map(value => ({ value, label: `RipCrypt.common.ordinals.${value}.abbv` }));
if (fate) {
ctx.path = {
full: localizer(`RipCrypt.common.ordinals.${fate}.full`),

View file

@ -17,7 +17,16 @@
class="alt"
data-tooltip="{{path.full}}"
>
{{path.abbv}}
{{#if meta.editable}}
<select name="system.fate">
<option value="">{{rc-i18n "RipCrypt.common.empty"}}</option>
{{ rc-options path.full fateOptions localize=true }}
</select>
{{else if meta.limited}}
???
{{else}}
{{path.abbv}}
{{/if}}
</td>
<td>
{{#if meta.editable}}