Armes naturelles

Corrections mineures sur l'affichage des armes
naturelles
This commit is contained in:
Vincent Vandemeulebrouck 2024-11-24 00:59:35 +01:00
parent 82b0537d43
commit 444e52cb49
2 changed files with 3 additions and 19 deletions

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