Stuff ad things

This commit is contained in:
Kim Ravn Hansen
2026-02-12 16:54:27 +01:00
parent de96d45ade
commit 7ecb4f724b
5 changed files with 274 additions and 251 deletions

View File

@@ -41,6 +41,9 @@ export class ItemAttributes {
/** @constant @readonly @type {string[]} Type of ammo that this item is, or that this item uses */
skills = [];
/** @constant @readonly @type {boolean} Can a person wearing this armor be stealthy? */
sneak;
}
/**
@@ -53,7 +56,7 @@ export class ItemBlueprint extends ItemAttributes {
/**
* Constructor
*
* @param {object} o Object whose attributes we copy
* @param {ItemAttributes} o Object whose attributes we copy
*/
constructor(o) {
super();
@@ -106,4 +109,4 @@ export class ItemBlueprint extends ItemAttributes {
* arrows that are consumed. In this case, each individual arrow is not tracked
* as its own entity, only the quiver is tracked.
*/
export class Item extends ItemAttributes {}
export class Item extends ItemAttributes { }