12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- module.exports = class PhandalinRoad11 {
- constructor() {
- this.id = this.constructor.name;
- this.name = "Phandalin Road";
- this.description = "A well worn dirt road.";
- this.filename = "phandalin/road11.js";
- this.type = "room";
- this.items = [];
- this.mobiles = [];
- this.roomExits = [];
- this.roomExpires = 0;
- this.resetDelay = 12000000;
- this.roomExits = ["north", "west", "south", "enter"];
- }
- mud_reset(time) {
- libs.Output.toRoom(this.id, "One of the townsfolk smiles as she passes by.");
- this.roomExpires = time + this.resetDelay;
- }
- mud_tick(time) {
- if(time >= this.roomExpires) {
- this.mud_reset(time);
- }
- }
- north(room, mobile, input) {
- world.mud_moveMobile(mobile.id, this.id, "PhandalinRoad46");
- return true;
- }
- west(room, mobile, input) {
- world.mud_moveMobile(mobile.id, this.id, "PhandalinRoad12");
- return true;
- }
- south(room, mobile, input) {
- world.mud_moveMobile(mobile.id, this.id, "PhandalinRoad10");
- return true;
- }
- enter(room, mobile, input) {
- world.mud_moveMobile(mobile.id, this.id, "PhandalinBarthenProvisions");
- return true;
- }
- };
|