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