unassumingkey.js 493 B

1234567891011121314151617181920212223
  1. module.exports = class UnassumingKey {
  2. constructor() {
  3. this.id = 0;
  4. this.name = "an unassuming key";
  5. this.description = "A small key that belongs to an unassuming house.";
  6. this.type = "item";
  7. this.keywords = ["key", "unassuming key"];
  8. this.resetDelay = 12000000;
  9. this.mud_reset(0);
  10. this.filename = "unassumingkey.js";
  11. }
  12. mud_reset(time) {
  13. this.itemExpires = time + this.resetDelay;
  14. }
  15. mud_tick(time) {
  16. if(time >= this.itemExpires) {
  17. this.mud_reset(time);
  18. }
  19. }
  20. }