Merge compétences créatures/entités

Les deux compendiums n'avaient pas de raison d'être séparés
This commit is contained in:
Vincent Vandemeulebrouck 2024-12-02 22:07:20 +01:00
parent cbbd8ed4ba
commit 64e48dd3ce
22 changed files with 55 additions and 306 deletions

View File

@ -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());

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: ''

View File

@ -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

View File

@ -7,7 +7,7 @@ system:
descriptionmj: ''
carac_value: 14
niveau: 2
default_diffLibre: 0
default_diffLibre: -4
categorie: draconic
categorie_parade: ''
iscombat: true

View File

@ -1,29 +0,0 @@
name: Possession
type: competencecreature
img: systems/foundryvtt-reve-de-dragon/icons/entites/possession.webp
effects: []
system:
description: <p>L'entit&eacute; tente de prendre possession du corps de sa victime.</p>
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'

View File

@ -6,10 +6,10 @@ effects: []
system:
description: <p>Attaque ou parade avec un tentacule.</p>
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

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -1,29 +0,0 @@
name: Possession
type: competencecreature
img: systems/foundryvtt-reve-de-dragon/icons/entites/possession.webp
effects: []
system:
description: <p>L'entit&eacute; tente de prendre possession du corps de sa victime.</p>
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'

View File

@ -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"
]
},