Parcourir la source

Adding in Linene's house

Nusha il y a 6 ans
Parent
commit
d7f928bf23
1 fichiers modifiés avec 30 ajouts et 0 suppressions
  1. 30 0
      world/rooms/phandalin/linenehouse.js

+ 30 - 0
world/rooms/phandalin/linenehouse.js

@@ -0,0 +1,30 @@
+module.exports = class PhandalinLineneHouse {
+	constructor() {
+		this.id = this.constructor.name;
+		this.name = "Linene Greywind's House";
+		this.description = "A cute cottage with rare goods. ";
+		this.filename = "phandalin/linenehouse.js";
+		this.type = "room";
+		this.items = [];
+		this.mobiles = [];
+		this.roomExpires = 0;
+		this.resetDelay = 12000000;
+		this.roomExits = ["leave"];
+	}
+
+	mud_reset(time) {
+		libs.Output.toRoom(this.id, "The house creaks.");
+		this.roomExpires = time + this.resetDelay;
+	}
+
+	mud_tick(time) {
+		if(time >= this.roomExpires) {
+			this.mud_reset(time);
+		}
+	}
+
+	leave(room, mobile, input) {
+		world.mud_moveMobile(mobile.id, this.id, "PhandalinRoad2");
+		return true;
+	}
+};