enables application of Advantages and Specialabilities to character values
parent
bc4e1691fb
commit
f5be5250ab
|
|
@ -53,9 +53,9 @@ export class AdvantageSheet extends HandlebarsApplicationMixin(DocumentSheetV2)
|
||||||
|
|
||||||
context.system = advantageData.system;
|
context.system = advantageData.system;
|
||||||
context.flags = context.system.flags;
|
context.flags = context.system.flags;
|
||||||
context.hasChoices = context.system.auswahl.length > 0;
|
context.hasChoices = context.system.auswahl?.length > 0;
|
||||||
context.choices = {}
|
context.choices = {}
|
||||||
context.system.auswahl.forEach(a => {
|
context.system.auswahl?.forEach(a => {
|
||||||
context.choices[a] = a
|
context.choices[a] = a
|
||||||
})
|
})
|
||||||
context.hasModality = context.system.value != null
|
context.hasModality = context.system.value != null
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue