浏览代码

Fixes #516

tags/v0.1.10^2
Big Bad Waffle 6 年前
父节点
当前提交
520de627fe
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. +2
    -0
      src/server/components/stats.js
  2. +1
    -1
      src/server/config/quests/templates/questTemplate.js

+ 2
- 0
src/server/components/stats.js 查看文件

@@ -212,6 +212,8 @@ define([
this.obj.syncer.setObject(true, 'stats', 'values', 'xpMax', this.values.xpMax);
},

//Source is the object that caused you to gain xp (mostly yourself)
//Target is the source of the xp (a mob or quest)
getXp: function (amount, source, target) {
var obj = this.obj;
var values = this.values;


+ 1
- 1
src/server/config/quests/templates/questTemplate.js 查看文件

@@ -66,7 +66,7 @@ define([
this.obj.inventory.getItem(r);
}, this);

this.obj.stats.getXp(this.xp || 10, this);
this.obj.stats.getXp(this.xp || 10, this.obj, this);
},

simplify: function (self) {


正在加载...
取消
保存