20Q : Ignore autocomplete clan/school for pow template

This commit is contained in:
Vlyan
2022-03-10 09:04:13 +01:00
parent aabdcae49a
commit ccc81d439f

View File

@@ -223,6 +223,7 @@ export class TwentyQuestionsDialog extends FormApplication {
}); });
// Autocomplete // Autocomplete
if (this.object.data.template !== "pow") {
game.l5r5e.HelpersL5r5e.autocomplete(html, "step1.clan", game.l5r5e.HelpersL5r5e.getLocalizedClansList()); game.l5r5e.HelpersL5r5e.autocomplete(html, "step1.clan", game.l5r5e.HelpersL5r5e.getLocalizedClansList());
game.l5r5e.HelpersL5r5e.autocomplete( game.l5r5e.HelpersL5r5e.autocomplete(
html, html,
@@ -233,6 +234,7 @@ export class TwentyQuestionsDialog extends FormApplication {
)?.[0] )?.[0]
) )
); );
}
game.l5r5e.HelpersL5r5e.autocomplete(html, "step3.school", game.l5r5e.HelpersL5r5e.getSchoolsList(), ","); game.l5r5e.HelpersL5r5e.autocomplete(html, "step3.school", game.l5r5e.HelpersL5r5e.getSchoolsList(), ",");
game.l5r5e.HelpersL5r5e.autocomplete(html, "step3.roles", game.l5r5e.HelpersL5r5e.getLocalizedRolesList(), ","); game.l5r5e.HelpersL5r5e.autocomplete(html, "step3.roles", game.l5r5e.HelpersL5r5e.getLocalizedRolesList(), ",");
} }