Twerks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user