From 3f0dcc1ea21ebb9bd0196e73e003df24c278b0ce Mon Sep 17 00:00:00 2001 From: Pallando Date: Sun, 6 Oct 2024 17:23:16 +0200 Subject: [PATCH] Add converter for crew roles --- modules/babele-register.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/babele-register.js b/modules/babele-register.js index 75ace65..711a1b1 100644 --- a/modules/babele-register.js +++ b/modules/babele-register.js @@ -270,6 +270,11 @@ Hooks.once('init', () => { } return skills_list }, + "role_skills": (skills) => { + let skills_list = skills.split(','); + let skillsFR = game.babele.converters.career_skills(skills_list); + return skillsFR.join(', ') + }, "process_effects": (effectsData, translations, data, tc, tc_translations) => { //console.log("Effects :", effectsData, translations, data, tc, tc_translations) for (let e of effectsData) {