void2.js 666 B

12345678910111213141516171819202122232425262728293031
  1. module.exports = class Void2 {
  2. constructor() {
  3. this.id = this.constructor.name;
  4. this.name = "room 1";
  5. this.description = "A dark mist-filled void.";
  6. this.filename = "void2.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, "The mists swirl\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. east(room, mobile, input) {
  25. world.mud_moveMobile(mobile.id, this.id, "Void1");
  26. return true;
  27. };
  28. };