weststacks1.js 893 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. module.exports = class LibraryWestStacks1 {
  2. constructor() {
  3. this.id = this.constructor.name;
  4. this.name = "Library Stacks";
  5. this.description = "The tall shelves are covered in various sized books. To the east you can see a large desk.";
  6. this.filename = "library/weststacks1.js";
  7. this.type = "room";
  8. this.items = [];
  9. this.mobiles = [];
  10. this.roomExits = [];
  11. this.roomExpires = 0;
  12. this.resetDelay = 12000000;
  13. this.roomExits = ["east"];
  14. }
  15. mud_reset(time) {
  16. libs.Output.toRoom(this.id, "A page turns in the utter silence.\n");
  17. this.roomExpires = time + this.resetDelay;
  18. }
  19. mud_tick(time) {
  20. if(time >= this.roomExpires) {
  21. this.mud_reset(time);
  22. }
  23. }
  24. mud_getName() {
  25. return this.name;
  26. }
  27. mud_getDescription() {
  28. return this.description;
  29. }
  30. east(room, mobile, input) {
  31. world.mud_moveMobile(mobile.id, this.id, "LibraryBookReturn");
  32. return true;
  33. }
  34. };