Rename TYPES en ITEM_TYPES

Pour ajouter les ACTOR_TYPES
This commit is contained in:
2024-09-25 22:56:24 +02:00
parent c586a90690
commit 52e1f9dfbf
21 changed files with 181 additions and 167 deletions

View File

@ -1,5 +1,5 @@
import { TYPES } from "./item.js";
import { ITEM_TYPES } from "./item.js";
import { RdDCombatManager } from "./rdd-combat.js";
const categories = {
@ -54,7 +54,7 @@ export class RdDItemCompetenceCreature extends Item {
/* -------------------------------------------- */
static isCompetenceAttaque(item) {
if (item.type == TYPES.competencecreature) {
if (item.type == ITEM_TYPES.competencecreature) {
switch (item.system.categorie) {
case "melee":
case "tir":
@ -68,7 +68,7 @@ export class RdDItemCompetenceCreature extends Item {
}
static getCategorieAttaque(item) {
if (item.type == TYPES.competencecreature) {
if (item.type == ITEM_TYPES.competencecreature) {
switch (item.system.categorie) {
case "melee":
case "tir":
@ -82,7 +82,7 @@ export class RdDItemCompetenceCreature extends Item {
return undefined
}
static isDommages(item) {
if (item.type == TYPES.competencecreature) {
if (item.type == ITEM_TYPES.competencecreature) {
switch (item.system.categorie) {
case "melee":
case "tir":
@ -94,7 +94,7 @@ export class RdDItemCompetenceCreature extends Item {
return false
}
static isParade(item) {
if (item.type == TYPES.competencecreature) {
if (item.type == ITEM_TYPES.competencecreature) {
switch (item.system.categorie) {
case "melee":
case "naturelle":