This commit is contained in:
Kim Ravn Hansen
2025-10-21 11:20:41 +02:00
parent e62c34e69e
commit 8a8434f5ac
6 changed files with 67 additions and 46 deletions

View File

@@ -1,5 +1,3 @@
import * as roll from "../utils/dice.js";
import * as id from "../utils/id.js";
import { Item } from "./item.js";
/**
@@ -68,7 +66,7 @@ export class Character {
/**
* @param {string} name The name of the character
*/
constructor(name, initialize) {
constructor(name) {
this.name = name;
}

View File

@@ -102,7 +102,7 @@ export class Game {
const existing = this._itemBlueprints.get(blueprintId);
if (existing) {
console.debug("we tried to create the same item blueprint more than once", blueprintId, attributes);
console.warn("we tried to create the same item blueprint more than once", blueprintId, attributes);
return existing;
}

View File

@@ -72,7 +72,7 @@ export class ItemBlueprint extends ItemAttributes {
o.itemSlots = Number(o.itemSlots);
for (const [key, _] of Object.entries(this)) {
for (const [key] in this) {
if (o[key] !== "undefied") {
this[key] = o[key];
}