this.inherits(OBJ); this.unit = "颗"; this.name = "美容丸"; this.value = 1280000; this.desc = "这是一颗女士梦寐以求的美容神丹,食用后会使你更加漂亮"; this.grade = 5; this.transable = true; this.on_use = function (me) { if (me.per < 25) return me.notify_fail("你的底子太差,还是先用初级美容丸提升一下吧。"); if (me.per > 41) return me.notify_fail("你已经很漂亮了。"); me.per += 1; me.notify("你吞下一颗美容丸,感觉自己又漂亮了一些。"); }