Ver a proveniência

Fixes #516

tags/v0.1.10^2
Big Bad Waffle há 6 anos
ascendente
cometimento
520de627fe
2 ficheiros alterados com 3 adições e 1 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

@@ -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) {


Carregando…
Cancelar
Guardar