diff --git a/module/settings/system-compendiums.js b/module/settings/system-compendiums.js index 317f2054..663b3c5a 100644 --- a/module/settings/system-compendiums.js +++ b/module/settings/system-compendiums.js @@ -32,7 +32,7 @@ export class SystemCompendiums extends FormApplication { compendium: compendium, default: SystemCompendiums._getDefaultCompendium(compendium), setting: SystemCompendiums._getSettingCompendium(compendium) - }); + }) game.settings.register(SYSTEM_RDD, definition.setting, { name: definition.label, @@ -40,8 +40,8 @@ export class SystemCompendiums extends FormApplication { scope: "world", config: false, type: String - }); - }); + }) + }) game.settings.registerMenu(SYSTEM_RDD, "compendium-settings", { name: "Choisir les compendiums système", @@ -71,16 +71,18 @@ export class SystemCompendiums extends FormApplication { static async getCompetences(actorType) { switch (actorType ?? 'personnage') { - case 'personnage': return await SystemCompendiums.getWorldOrCompendiumItems('competence', 'competences'); - case 'creature': return await SystemCompendiums.getWorldOrCompendiumItems('competencecreature', 'competences-creatures'); - case 'entite': return await SystemCompendiums.getWorldOrCompendiumItems('competencecreature', 'competences-entites'); + case 'personnage': + return await SystemCompendiums.getWorldOrCompendiumItems('competence', 'competences') + case 'entite': + case 'creature': + return await SystemCompendiums.getWorldOrCompendiumItems('competencecreature', 'competences-creatures') case 'vehicule': return []; } } /* -------------------------------------------- */ static async getWorldOrCompendiumItems(itemType, compendium) { - let items = game.items.filter(it => it.type == itemType); + let items = game.items.filter(it => it.type == itemType) if (compendium) { const ids = items.map(it => it.id); const names = items.map(it => it.name.toLowerCase()); @@ -284,7 +286,7 @@ export class CompendiumTableHelpers { } /* -------------------------------------------- */ - static async tableRowToChatMessage(row, type, options = {showSource: true}) { + static async tableRowToChatMessage(row, type, options = { showSource: true }) { if (!row) { return; } diff --git a/packs_src/competences-entites/competencecreature_Attaque_18wcei5hlEInsBFO.yml b/packs_src/competences-creatures/competencecreature_Attaque_18wcei5hlEInsBFO.yml similarity index 84% rename from packs_src/competences-entites/competencecreature_Attaque_18wcei5hlEInsBFO.yml rename to packs_src/competences-creatures/competencecreature_Attaque_18wcei5hlEInsBFO.yml index e90193f6..271a9455 100644 --- a/packs_src/competences-entites/competencecreature_Attaque_18wcei5hlEInsBFO.yml +++ b/packs_src/competences-creatures/competencecreature_Attaque_18wcei5hlEInsBFO.yml @@ -6,17 +6,16 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: generale + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: '' iscombat: true isnaturelle: true ispossession: false dommages: 0 mortalite: mortel - carac-value: null isparade: false ownership: default: 0 diff --git a/packs_src/competences-entites/competencecreature_Bouclier_Lourd_QGULMUoC9JXFze0r.yml b/packs_src/competences-creatures/competencecreature_Bouclier_Lourd_QGULMUoC9JXFze0r.yml similarity index 85% rename from packs_src/competences-entites/competencecreature_Bouclier_Lourd_QGULMUoC9JXFze0r.yml rename to packs_src/competences-creatures/competencecreature_Bouclier_Lourd_QGULMUoC9JXFze0r.yml index 8a3a086a..52eac4d1 100644 --- a/packs_src/competences-entites/competencecreature_Bouclier_Lourd_QGULMUoC9JXFze0r.yml +++ b/packs_src/competences-creatures/competencecreature_Bouclier_Lourd_QGULMUoC9JXFze0r.yml @@ -6,17 +6,16 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: boucliers iscombat: true isnaturelle: true ispossession: false dommages: 0 mortalite: mortel - carac-value: null isparade: true ownership: default: 0 diff --git a/packs_src/competences-entites/competencecreature_Bras_Galet_WsYnwR8GcOxfuCI0.yml b/packs_src/competences-creatures/competencecreature_Bras_Galet_WsYnwR8GcOxfuCI0.yml similarity index 73% rename from packs_src/competences-entites/competencecreature_Bras_Galet_WsYnwR8GcOxfuCI0.yml rename to packs_src/competences-creatures/competencecreature_Bras_Galet_WsYnwR8GcOxfuCI0.yml index f10e2925..e67969c9 100644 --- a/packs_src/competences-entites/competencecreature_Bras_Galet_WsYnwR8GcOxfuCI0.yml +++ b/packs_src/competences-creatures/competencecreature_Bras_Galet_WsYnwR8GcOxfuCI0.yml @@ -1,22 +1,21 @@ _id: WsYnwR8GcOxfuCI0 name: Bras-Galet type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/competence_course.webp +img: systems/foundryvtt-reve-de-dragon/icons/compcreature-pierretenue.webp effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: '' iscombat: true isnaturelle: true ispossession: false dommages: 1 mortalite: mortel - carac-value: null isparade: false ownership: default: 0 diff --git a/packs_src/competences-entites/competencecreature_Corps___Corps_c0I93Q53i4ZmxpyT.yml b/packs_src/competences-creatures/competencecreature_Corps___Corps_c0I93Q53i4ZmxpyT.yml similarity index 87% rename from packs_src/competences-entites/competencecreature_Corps___Corps_c0I93Q53i4ZmxpyT.yml rename to packs_src/competences-creatures/competencecreature_Corps___Corps_c0I93Q53i4ZmxpyT.yml index 963f649e..f3170b52 100644 --- a/packs_src/competences-entites/competencecreature_Corps___Corps_c0I93Q53i4ZmxpyT.yml +++ b/packs_src/competences-creatures/competencecreature_Corps___Corps_c0I93Q53i4ZmxpyT.yml @@ -6,10 +6,10 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: sans-armes iscombat: true isnaturelle: true diff --git a/packs_src/competences-entites/competencecreature_Crocs_db8E8HwROw1ZcwRR.yml b/packs_src/competences-creatures/competencecreature_Crocs_db8E8HwROw1ZcwRR.yml similarity index 84% rename from packs_src/competences-entites/competencecreature_Crocs_db8E8HwROw1ZcwRR.yml rename to packs_src/competences-creatures/competencecreature_Crocs_db8E8HwROw1ZcwRR.yml index b5fb8da2..67cf492d 100644 --- a/packs_src/competences-entites/competencecreature_Crocs_db8E8HwROw1ZcwRR.yml +++ b/packs_src/competences-creatures/competencecreature_Crocs_db8E8HwROw1ZcwRR.yml @@ -6,17 +6,16 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: '' iscombat: true isnaturelle: true ispossession: false dommages: 1 mortalite: mortel - carac-value: null isparade: false ownership: default: 0 diff --git a/packs_src/competences-creatures/competencecreature_Dague_qilRzXpVaGceNmQp.yml b/packs_src/competences-creatures/competencecreature_Dague_qilRzXpVaGceNmQp.yml index f9241cc0..b33b2f85 100644 --- a/packs_src/competences-creatures/competencecreature_Dague_qilRzXpVaGceNmQp.yml +++ b/packs_src/competences-creatures/competencecreature_Dague_qilRzXpVaGceNmQp.yml @@ -6,9 +6,9 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 + carac_value: 10 + niveau: 1 + default_diffLibre: -2 categorie: melee categorie_parade: dagues iscombat: true diff --git a/packs_src/competences-entites/competencecreature_Ep_e_B_tarde_gPOQd9NI7AFH0whX.yml b/packs_src/competences-creatures/competencecreature_Ep_e_B_tarde_gPOQd9NI7AFH0whX.yml similarity index 82% rename from packs_src/competences-entites/competencecreature_Ep_e_B_tarde_gPOQd9NI7AFH0whX.yml rename to packs_src/competences-creatures/competencecreature_Ep_e_B_tarde_gPOQd9NI7AFH0whX.yml index cfb0476c..597578bd 100644 --- a/packs_src/competences-entites/competencecreature_Ep_e_B_tarde_gPOQd9NI7AFH0whX.yml +++ b/packs_src/competences-creatures/competencecreature_Ep_e_B_tarde_gPOQd9NI7AFH0whX.yml @@ -6,17 +6,16 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: epees-lourdes iscombat: true - isnaturelle: true + isnaturelle: false ispossession: false dommages: 4 mortalite: mortel - carac-value: null isparade: true ownership: default: 0 diff --git a/packs_src/competences-creatures/competencecreature_Esquive_CYpxxf1uTa78NWR9.yml b/packs_src/competences-creatures/competencecreature_Esquive_CYpxxf1uTa78NWR9.yml index 6ce6e20b..40e9a232 100644 --- a/packs_src/competences-creatures/competencecreature_Esquive_CYpxxf1uTa78NWR9.yml +++ b/packs_src/competences-creatures/competencecreature_Esquive_CYpxxf1uTa78NWR9.yml @@ -6,8 +6,8 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 + carac_value: 10 + niveau: 1 default_diffLibre: 0 categorie: generale categorie_parade: '' diff --git a/packs_src/competences-entites/competencecreature_Parade_3Crwg8cx2JOb697T.yml b/packs_src/competences-creatures/competencecreature_Parade_3Crwg8cx2JOb697T.yml similarity index 77% rename from packs_src/competences-entites/competencecreature_Parade_3Crwg8cx2JOb697T.yml rename to packs_src/competences-creatures/competencecreature_Parade_3Crwg8cx2JOb697T.yml index d5a31151..3fb5dfe6 100644 --- a/packs_src/competences-entites/competencecreature_Parade_3Crwg8cx2JOb697T.yml +++ b/packs_src/competences-creatures/competencecreature_Parade_3Crwg8cx2JOb697T.yml @@ -6,17 +6,16 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: '' - iscombat: false + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee + categorie_parade: boucliers + iscombat: true isnaturelle: true ispossession: false dommages: 0 mortalite: mortel - carac-value: null isparade: false ownership: default: 0 diff --git a/packs_src/competences-creatures/competencecreature_Possession_9u16zxXRurCtxuOX.yml b/packs_src/competences-creatures/competencecreature_Possession_9u16zxXRurCtxuOX.yml index 9d05d174..5ba90923 100644 --- a/packs_src/competences-creatures/competencecreature_Possession_9u16zxXRurCtxuOX.yml +++ b/packs_src/competences-creatures/competencecreature_Possession_9u16zxXRurCtxuOX.yml @@ -7,7 +7,7 @@ system: descriptionmj: '' carac_value: 14 niveau: 2 - default_diffLibre: 0 + default_diffLibre: -4 categorie: draconic categorie_parade: '' iscombat: true diff --git a/packs_src/competences-creatures/competencecreature_Possession_duVgxI3Cdko0KzAj.yml b/packs_src/competences-creatures/competencecreature_Possession_duVgxI3Cdko0KzAj.yml deleted file mode 100644 index 69b4b94c..00000000 --- a/packs_src/competences-creatures/competencecreature_Possession_duVgxI3Cdko0KzAj.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Possession -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/entites/possession.webp -effects: [] -system: - description:

L'entité tente de prendre possession du corps de sa victime.

- descriptionmj: '' - carac_value: 14 - niveau: 2 - default_diffLibre: 0 - categorie: draconic - categorie_parade: '' - iscombat: true - isnaturelle: true - ispossession: true - dommages: 0 - mortalite: mortel - isparade: false -_id: duVgxI3Cdko0KzAj -folder: null -sort: 0 -ownership: - default: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!duVgxI3Cdko0KzAj' - diff --git a/packs_src/competences-entites/competencecreature_Tentacules_D9cBJ3EJPYLnABiJ.yml b/packs_src/competences-creatures/competencecreature_Tentacules_D9cBJ3EJPYLnABiJ.yml similarity index 88% rename from packs_src/competences-entites/competencecreature_Tentacules_D9cBJ3EJPYLnABiJ.yml rename to packs_src/competences-creatures/competencecreature_Tentacules_D9cBJ3EJPYLnABiJ.yml index 589737e9..3f8e73ac 100644 --- a/packs_src/competences-entites/competencecreature_Tentacules_D9cBJ3EJPYLnABiJ.yml +++ b/packs_src/competences-creatures/competencecreature_Tentacules_D9cBJ3EJPYLnABiJ.yml @@ -6,10 +6,10 @@ effects: [] system: description:

Attaque ou parade avec un tentacule.

descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' + carac_value: 10 + niveau: 1 + default_diffLibre: -2 + categorie: melee categorie_parade: boucliers iscombat: true isnaturelle: true diff --git a/packs_src/competences-creatures/competencecreature_Tron_onneuse_h9ASt4vrvEgxfj7j.yml b/packs_src/competences-creatures/competencecreature_Tron_onneuse_h9ASt4vrvEgxfj7j.yml index b846d737..63d7253e 100644 --- a/packs_src/competences-creatures/competencecreature_Tron_onneuse_h9ASt4vrvEgxfj7j.yml +++ b/packs_src/competences-creatures/competencecreature_Tron_onneuse_h9ASt4vrvEgxfj7j.yml @@ -6,9 +6,9 @@ effects: [] system: description: '' descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 + carac_value: 10 + niveau: 1 + default_diffLibre: -2 categorie: melee categorie_parade: '' iscombat: true diff --git a/packs_src/competences-entites/competencecreature_Bec_d5SZ09sFaG3cL2Rg.yml b/packs_src/competences-entites/competencecreature_Bec_d5SZ09sFaG3cL2Rg.yml deleted file mode 100644 index d25a5723..00000000 --- a/packs_src/competences-entites/competencecreature_Bec_d5SZ09sFaG3cL2Rg.yml +++ /dev/null @@ -1,29 +0,0 @@ -_id: d5SZ09sFaG3cL2Rg -name: Bec -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/compcreature-beak.webp -effects: [] -system: - description: '' - descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: '' - iscombat: true - isnaturelle: true - ispossession: false - dommages: 0 - mortalite: mortel - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!d5SZ09sFaG3cL2Rg' - diff --git a/packs_src/competences-entites/competencecreature_Esquive_0Ms9iKxqigNNpZEx.yml b/packs_src/competences-entites/competencecreature_Esquive_0Ms9iKxqigNNpZEx.yml deleted file mode 100644 index f374dcee..00000000 --- a/packs_src/competences-entites/competencecreature_Esquive_0Ms9iKxqigNNpZEx.yml +++ /dev/null @@ -1,29 +0,0 @@ -_id: 0Ms9iKxqigNNpZEx -name: Esquive -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/competence_esquive.webp -effects: [] -system: - description: '' - descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: '' - iscombat: false - isnaturelle: true - ispossession: false - dommages: 0 - mortalite: mortel - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!0Ms9iKxqigNNpZEx' - diff --git a/packs_src/competences-entites/competencecreature_Grande_morsure_lDZ3qUPKN35ob5TH.yml b/packs_src/competences-entites/competencecreature_Grande_morsure_lDZ3qUPKN35ob5TH.yml deleted file mode 100644 index f080c64b..00000000 --- a/packs_src/competences-entites/competencecreature_Grande_morsure_lDZ3qUPKN35ob5TH.yml +++ /dev/null @@ -1,29 +0,0 @@ -_id: lDZ3qUPKN35ob5TH -name: Grande morsure -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/compcreature-morsure.webp -effects: [] -system: - description: '' - descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: '' - iscombat: true - isnaturelle: true - ispossession: false - dommages: 2 - mortalite: mortel - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!lDZ3qUPKN35ob5TH' - diff --git a/packs_src/competences-entites/competencecreature_Grandes_griffes_6eWCVDYLXXO1Z48D.yml b/packs_src/competences-entites/competencecreature_Grandes_griffes_6eWCVDYLXXO1Z48D.yml deleted file mode 100644 index 833f15bd..00000000 --- a/packs_src/competences-entites/competencecreature_Grandes_griffes_6eWCVDYLXXO1Z48D.yml +++ /dev/null @@ -1,29 +0,0 @@ -_id: 6eWCVDYLXXO1Z48D -name: Grandes griffes -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/compcreature-griffes.webp -effects: [] -system: - description: '' - descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: sans-armes - iscombat: true - isnaturelle: true - ispossession: false - dommages: 2 - mortalite: mortel - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!6eWCVDYLXXO1Z48D' - diff --git a/packs_src/competences-entites/competencecreature_Griffes_9Y83OsQgeyR5oCdH.yml b/packs_src/competences-entites/competencecreature_Griffes_9Y83OsQgeyR5oCdH.yml deleted file mode 100644 index f8634ba7..00000000 --- a/packs_src/competences-entites/competencecreature_Griffes_9Y83OsQgeyR5oCdH.yml +++ /dev/null @@ -1,30 +0,0 @@ -_id: 9Y83OsQgeyR5oCdH -name: Griffes -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/compcreature-griffes.webp -effects: [] -system: - description: '' - descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: sans-armes - iscombat: true - isnaturelle: true - ispossession: false - dommages: 1 - mortalite: mortel - carac-value: null - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!9Y83OsQgeyR5oCdH' - diff --git a/packs_src/competences-entites/competencecreature_Morsure_j1xHCzfIeYKgXxoH.yml b/packs_src/competences-entites/competencecreature_Morsure_j1xHCzfIeYKgXxoH.yml deleted file mode 100644 index cca2b8d5..00000000 --- a/packs_src/competences-entites/competencecreature_Morsure_j1xHCzfIeYKgXxoH.yml +++ /dev/null @@ -1,29 +0,0 @@ -_id: j1xHCzfIeYKgXxoH -name: Morsure -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/compcreature-morsure.webp -effects: [] -system: - description: '' - descriptionmj: '' - carac_value: 0 - niveau: 0 - default_diffLibre: 0 - categorie: '' - categorie_parade: '' - iscombat: true - isnaturelle: true - ispossession: false - dommages: 1 - mortalite: mortel - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!j1xHCzfIeYKgXxoH' - diff --git a/packs_src/competences-entites/competencecreature_Possession_wDHR5UHWq568lfGa.yml b/packs_src/competences-entites/competencecreature_Possession_wDHR5UHWq568lfGa.yml deleted file mode 100644 index 7edbd88a..00000000 --- a/packs_src/competences-entites/competencecreature_Possession_wDHR5UHWq568lfGa.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Possession -type: competencecreature -img: systems/foundryvtt-reve-de-dragon/icons/entites/possession.webp -effects: [] -system: - description:

L'entité tente de prendre possession du corps de sa victime.

- descriptionmj: '' - carac_value: 14 - niveau: 2 - default_diffLibre: -4 - categorie: melee - categorie_parade: '' - iscombat: true - isnaturelle: true - ispossession: true - dommages: 0 - mortalite: mortel - isparade: false -ownership: - default: 0 -folder: null -sort: 0 -_id: wDHR5UHWq568lfGa -_stats: - systemId: foundryvtt-reve-de-dragon - systemVersion: 12.0.22 - coreVersion: '12.331' -_key: '!items!wDHR5UHWq568lfGa' - diff --git a/system.json b/system.json index b1af567b..29683b0a 100644 --- a/system.json +++ b/system.json @@ -115,19 +115,6 @@ }, "flags": {} }, - { - "name": "competences-entites", - "label": "Compétences des Entités", - "system": "foundryvtt-reve-de-dragon", - "path": "packs/competences-entites", - "banner": "systems/foundryvtt-reve-de-dragon/styles/img/ui/compendium_banner.webp", - "type": "Item", - "ownership": { - "PLAYER": "NONE", - "ASSISTANT": "OWNER" - }, - "flags": {} - }, { "name": "sorts-oniros", "label": "Sorts d'Oniros", @@ -541,7 +528,6 @@ "entites", "faune-flore-mineraux", "competences-creatures", - "competences-entites", "maladies-et-poisons" ] },