unassumingkey.js 589 B

12345678910111213141516171819202122232425262728293031
  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. mud_getName() {
  21. return this.name;
  22. }
  23. mud_getDescription() {
  24. return this.description;
  25. }
  26. }