1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- module.exports = class ZebedeeWestGate {
- constructor() {
- this.id = this.constructor.name;
- this.name = "Zebedee West Gate";
- this.description = "A tall arched gate made out of smooth gray stone blocks guards the exit to the village.";
- this.filename = "zebedee/westgate.js";
- this.type = "room";
- this.items = [];
- this.mobiles = [];
- this.roomExpires = 0;
- this.resetDelay = 6000000;
- this.roomExits = ["leave", "east"];
- }
- mud_reset(time) {
- libs.Output.toRoom(this.id, "The street bustles with foot traffic.");
- this.roomExpires = time + this.resetDelay;
- }
- mud_tick(time) {
- if(time >= this.roomExpires) {
- this.mud_reset(time);
- }
- }
- mud_getName() {
- return this.name;
- }
- mud_getDescription() {
- return this.description;
- }
- east(room, mobile, input) {
- world.mud_moveMobile(mobile.id, this.id, "ZebedeeCormallenRoad3", "leaves east");
- return true;
- }
- leave(room, mobile, input) {
- world.mud_moveMobile(mobile.id, this.id, "DirtRoad2", "leaves through the gate");
- return true;
- }
- west(room, mobile, input) {
- return this.leave(room, mobile, input);
- }
- };
|