Files
wsmud/world/obj/sp/tool/sm.js
2026-05-26 16:41:20 +08:00

21 lines
525 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
this.inherits(OBJ);
this.set({
unit: "个",
name: "师门令牌",
desc: "可以用来完成师门交给你的任务限制30难度以前",
grade: 1,
value: 0
});
this.on_create = function (path, par) {
if (!par) {
this.path = path + "#1";
return;
}
par = par.substr(1);
var lv = parseInt(par);
if (!(lv > 0 && lv < 6)) return;
this.grade = lv;
this.desc = "可以用来完成师门交给你的任务,限制" + (10 + this.grade * 20) + "难度以前";
}