init: add workspace files
This commit is contained in:
17
world/obj/sp/dizi.js
Normal file
17
world/obj/sp/dizi.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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>。");
|
||||
}
|
||||
Reference in New Issue
Block a user