17 lines
457 B
JavaScript
17 lines
457 B
JavaScript
this.inherits(OBJ);
|
|
this.set({
|
|
unit: "个",
|
|
name: "首席弟子称号",
|
|
desc: "",
|
|
grade:1,
|
|
value: 1000
|
|
});
|
|
this.on_create = function (path, par) {
|
|
if (!par) return;
|
|
this.family = FAMILIES[par.substr(1)];
|
|
}
|
|
this.on_receive = function (me) {
|
|
if (!this.family || !this.family.top_name) return;
|
|
me.add_title(this.family.top_name,"family");
|
|
me.notify("<hig>你获得了称号:" + this.family.top_name +"</hig>。");
|
|
} |