Fix: détermination niveau de base

simplification: déterminer les catégories en fonction du type d'Item
This commit is contained in:
2024-09-27 22:39:49 +02:00
parent 599fdc752d
commit 9c17f85fa8
5 changed files with 26 additions and 27 deletions

View File

@ -2,7 +2,7 @@
import { ITEM_TYPES } from "./item.js";
import { RdDCombatManager } from "./rdd-combat.js";
const categories = {
export const CATEGORIES_COMPETENCES_CREATURES = {
"generale": { base: 0, label: "Générale" },
"naturelle": { base: 0, label: "Arme naturelle" },
"melee": { base: 0, label: "Mêlée" },
@ -15,10 +15,6 @@ const categories = {
/* -------------------------------------------- */
export class RdDItemCompetenceCreature extends Item {
static getCategories() {
return categories;
}
/* -------------------------------------------- */
static setRollDataCreature(rollData) {
rollData.carac = { "carac_creature": { label: rollData.competence.name, value: rollData.competence.system.carac_value } }