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

@@ -349,7 +349,13 @@ export class BaseSheetL5r5e extends ActorSheet {
case "technique": {
// If technique, select the current type
const techType = $(event.currentTarget).data("tech-type");
if ([...CONFIG.l5r5e.techniques, ...CONFIG.l5r5e.techniques_school].includes(techType)) {
if (
[
...CONFIG.l5r5e.techniques,
...CONFIG.l5r5e.techniques_school,
...CONFIG.l5r5e.techniques_custom,
].includes(techType)
) {
item.data.data.technique_type = techType;
item.data.img = `${CONFIG.l5r5e.paths.assets}icons/techs/${techType}.svg`;
}

View File

@@ -82,8 +82,7 @@ export class TwentyQuestions {
shuji: false,
maho: false,
ninjutsu: false,
link: false,
specificity: false,
specificity: true,
},
techniques: [],
school_ability: [],