Explorar el Código

Fixes #516

tags/v0.1.10^2
Big Bad Waffle hace 6 años
padre
commit
520de627fe
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  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 fichero

@@ -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 fichero

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


Cargando…
Cancelar
Guardar