Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
fix(game): comestibles are now autoremoved
Browse files Browse the repository at this point in the history
closes #43
  • Loading branch information
Rabrennie committed Dec 2, 2015
1 parent 605ed41 commit e3ec6da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/rogue/definitions/equipment.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class Special extends Item {}
@material(Materials.Food)
export class Comestible extends Item {
constructor(opts = {}) {
opts.autoRemove = true;
opts.symbol = Glyphs.Comestible;
super(opts);
}
Expand Down Expand Up @@ -174,4 +175,4 @@ export class Tool extends Item {
opts.symbol = Glyphs.Tool;
super(opts);
}
}
}

0 comments on commit e3ec6da

Please sign in to comment.