require("./obj.js"); CONTAINER = function () { this.count = 1; this.combined = false; } CONTAINER.inherits(OBJ); CONTAINER.prototype.is_container = true; CONTAINER.prototype.on_get = function () { return false; } CONTAINER.prototype.set_items = function () { for (var i = 0; i < arguments.length; i++) { var item = arguments[i]; if (item) { if (typeof item == "string") { OBJ.clone_to(item, this); } else if (item.length) { OBJ.clone_to(item[0], this,item[1]); } } } } CONTAINER.prototype.query_items = function () { return this.items; } //这个单纯的字符串描述 CONTAINER.prototype.get_desc = function (me) { var str = [this.color_name, this.desc]; var items = this.query_items(me); if (items && items.length) { str.push("它里面有:"); for (var i = 0; i