Make the fate path editable from the geist sheet
This commit is contained in:
parent
17f2dc95a5
commit
ef719d4892
2 changed files with 12 additions and 1 deletions
|
|
@ -113,6 +113,8 @@ export class BookGeistSheet extends
|
||||||
const system = this.actor.system;
|
const system = this.actor.system;
|
||||||
|
|
||||||
const fate = system.fate;
|
const fate = system.fate;
|
||||||
|
ctx.fateOptions = Object.values(gameTerms.FatePath)
|
||||||
|
.map(value => ({ value, label: `RipCrypt.common.ordinals.${value}.abbv` }));
|
||||||
if (fate) {
|
if (fate) {
|
||||||
ctx.path = {
|
ctx.path = {
|
||||||
full: localizer(`RipCrypt.common.ordinals.${fate}.full`),
|
full: localizer(`RipCrypt.common.ordinals.${fate}.full`),
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,16 @@
|
||||||
class="alt"
|
class="alt"
|
||||||
data-tooltip="{{path.full}}"
|
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>
|
||||||
<td>
|
<td>
|
||||||
{{#if meta.editable}}
|
{{#if meta.editable}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue