瀏覽代碼

Adding in Linene's house

Nusha 6 年之前
父節點
當前提交
d7f928bf23
共有 1 個文件被更改,包括 30 次插入0 次删除
  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;
+	}
+};