Version 12.0.23 - La bibliothèque d'Astrobazzarh #723

Merged
uberwald merged 14 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2024-11-27 10:12:27 +01:00
2 changed files with 3 additions and 19 deletions
Showing only changes of commit 444e52cb49 - Show all commits

View File

@ -4,7 +4,7 @@ import { RdDCombatManager } from "./rdd-combat.js";
const nomCategorieParade = { const nomCategorieParade = {
"sans-armes": "Sans arme", "sans-armes": "Sans arme",
"armes-naturelles": "Sans arme", "armes-naturelles": "Armes naturelles",
"hast": "Armes d'hast", "hast": "Armes d'hast",
"batons": "Bâtons", "batons": "Bâtons",
"boucliers": "Boucliers", "boucliers": "Boucliers",

View File

@ -49,17 +49,7 @@ export class RdDItemCompetenceCreature extends Item {
/* -------------------------------------------- */ /* -------------------------------------------- */
static isAttaque(item) { static isAttaque(item) {
if (item.type == ITEM_TYPES.competencecreature) { return RdDItemCompetenceCreature.getCategorieAttaque(item) != undefined
switch (item.system.categorie) {
case "melee":
case "tir":
case "lancer":
case "naturelle":
case "possession":
return true
}
}
return false
} }
static getCategorieAttaque(item) { static getCategorieAttaque(item) {
@ -70,7 +60,6 @@ export class RdDItemCompetenceCreature extends Item {
case "lancer": case "lancer":
case "naturelle": case "naturelle":
case "possession": case "possession":
case "parade":
return item.system.categorie return item.system.categorie
} }
} }
@ -92,12 +81,7 @@ export class RdDItemCompetenceCreature extends Item {
static isParade(item) { static isParade(item) {
if (item.type == ITEM_TYPES.competencecreature) { if (item.type == ITEM_TYPES.competencecreature) {
switch (item.system.categorie) { return armeData.system.categorie_parade || armeData.system.isparade
case "melee":
case "naturelle":
case "parade":
return true
}
} }
return false return false
} }