fix: ajout du context au constructeur
This commit is contained in:
parent
84e4581b34
commit
8756dde4e6
@ -39,11 +39,11 @@ export const defaultItemImg = {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
export class RdDItem extends Item {
|
export class RdDItem extends Item {
|
||||||
|
|
||||||
constructor(data) {
|
constructor(data, context) {
|
||||||
if (!data.img) {
|
if (!data.img) {
|
||||||
data.img = defaultItemImg[data.type];
|
data.img = defaultItemImg[data.type];
|
||||||
}
|
}
|
||||||
super(data);
|
super(data, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
static getTypeObjetsEquipement() {
|
static getTypeObjetsEquipement() {
|
||||||
|
Loading…
Reference in New Issue
Block a user