Working on 0.8.x

- NPC with all ring on strengths/weaknesses (CSS TODO).
- Removed Custom tech "Links" as they are in fact "Bonds" and need more work.
This commit is contained in:
Vlyan
2021-05-04 19:19:11 +02:00
parent 209c22996a
commit 0bef6afc66
12 changed files with 45 additions and 46 deletions

View File

@@ -19,8 +19,11 @@ export class TechniqueSheetL5r5e extends ItemSheetL5r5e {
async getData() {
const sheetData = await super.getData();
// Add "school ability" and "mastery ability"
CONFIG.l5r5e.techniques_school.forEach((e) => {
// Add "school ability", "mastery ability" and customs if active
[
...CONFIG.l5r5e.techniques_school,
...(game.settings.get("l5r5e", "techniques-customs") ? CONFIG.l5r5e.techniques_custom : []),
].forEach((e) => {
sheetData.data.techniquesList.push({
id: e,
label: game.i18n.localize(`l5r5e.techniques.${e}`),