cormallenroad1.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module.exports = class ZebedeeCormallenRoad1 {
  2. constructor() {
  3. this.id = this.constructor.name;
  4. this.name = "Cormallen Road West";
  5. this.description = "The wide main road stretches straight through the town, but the massive temple to the north draws your attention. Seven spires stretch towards the heavens, glinting in the sunlight. The temple is made of pure white marble blocks, and covered in ornate carvings of various birds. The windows are tall and narrow, and each has a stylized dove somewhere on it's ledge.";
  6. this.filename = "zebedee/cormallenroad1.js";
  7. this.type = "room";
  8. this.items = [];
  9. this.mobiles = [];
  10. this.roomExpires = 0;
  11. this.resetDelay = 6000000;
  12. this.roomExits = ["east", "west", "north"];
  13. }
  14. mud_reset(time) {
  15. libs.Output.toRoom(this.id, "The street bustles with foot traffic.");
  16. this.roomExpires = time + this.resetDelay;
  17. }
  18. mud_tick(time) {
  19. if(time >= this.roomExpires) {
  20. this.mud_reset(time);
  21. }
  22. }
  23. mud_getName() {
  24. return this.name;
  25. }
  26. mud_getDescription() {
  27. return this.description;
  28. }
  29. north(room, mobile, input) {
  30. world.mud_moveMobile(mobile.id, this.id, "ZebedeeTemple", "reverently enters the temple");
  31. return true;
  32. }
  33. east(room, mobile, input) {
  34. world.mud_moveMobile(mobile.id, this.id, "ZebedeeCormallenRoad2", "leaves east");
  35. return true;
  36. }
  37. west(room, mobile, input) {
  38. world.mud_moveMobile(mobile.id, this.id, "ZebedeeCormallenRoad3", "leaves west");
  39. return true;
  40. }
  41. };