Add applyEffect

This commit is contained in:
2021-05-25 18:47:09 -07:00
parent ccd4974266
commit cc306dbf87
9 changed files with 169 additions and 45 deletions

View File

@ -10,10 +10,6 @@ export default class Player extends Vessel<VesselProperties> {
this.#effects = effects;
}
get effects() {
return this.#effects;
}
look(): string {
const description = super.description(this._properties.items || []);
@ -28,4 +24,8 @@ export default class Player extends Vessel<VesselProperties> {
if (!this._properties.items) this._properties.items = [];
this._properties.items.push(item);
}
get inventory(): Item[] | null {
return this._properties.items || null;
}
}