Browse Source

Merge remote-tracking branch 'upstream/staging' into staging

tags/v0.1.2^2
Rylee George 7 years ago
parent
commit
e7e5f202a0
8 changed files with 13 additions and 17 deletions
  1. +0
    -3
      src/client/plugins/pixi.particles.js
  2. +1
    -1
      src/server/components/dialogue.js
  3. +7
    -2
      src/server/components/extensions/factionVendor.js
  4. +2
    -5
      src/server/components/stats.js
  5. +2
    -2
      src/server/components/trade.js
  6. +0
    -1
      src/server/config/spells/spellSlowBlast.js
  7. +0
    -2
      src/server/config/spells/spellWarnBlast.js
  8. +1
    -1
      src/server/world/map.js

+ 0
- 3
src/client/plugins/pixi.particles.js View File

@@ -630,9 +630,6 @@ if (!Array.prototype.random) {
this.rawPosition.x += this.velocity.x * delta;
this.rawPosition.y += this.velocity.y * delta;

//if (isNaN(this.velocity.x))
// console.log(this.startSpeed + ' ' + this.endSpeed);

this.position.x = ~~(this.rawPosition.x / 2) * 2;
this.position.y = ~~(this.rawPosition.y / 2) * 2;
}


+ 1
- 1
src/server/components/dialogue.js View File

@@ -86,7 +86,7 @@ define([
console.log('NO DIALOGUE STATES?!?!??!');
console.log('NO DIALOGUE STATES?!?!??!');
console.log('NO DIALOGUE STATES?!?!??!');
console.log(this.obj);
console.log(this.obj);
return null;
}
var stateConfig = this.states[state];


+ 7
- 2
src/server/components/extensions/factionVendor.js View File

@@ -140,8 +140,13 @@ define([
}
},

canBuy: function(itemId, requestedBy) {
var item = this.findItem(itemId, requestedBy.name);
canBuy: function(itemId, requestedBy, action) {
var item = null;
if (action == 'buy')
item = this.findItem(itemId, requestedBy.name);
else if (action == 'buyback')
item = this.findBuyback(itemId, requestedBy.name);
var result = requestedBy.reputation.canEquipItem(item);

if (!result) {


+ 2
- 5
src/server/components/stats.js View File

@@ -232,11 +232,8 @@ define([

if (a.obj.stats)
a.obj.stats.getXp(inc);
else {
console.log('give xp to???');
console.log(a.obj);
}

a.obj.fireEvent('afterKillMob', target);
}



+ 2
- 2
src/server/components/trade.js View File

@@ -134,7 +134,7 @@ define([
return;
}

if (!targetTrade.canBuy(msg.itemId, this.obj)) {
if (!targetTrade.canBuy(msg.itemId, this.obj, msg.action)) {
this.resolveCallback(msg);
return;
}
@@ -262,7 +262,7 @@ define([
return this.items;
},

canBuy: function(itemId, requestedBy) {
canBuy: function(itemId, requestedBy, action) {
return true;
},



+ 0
- 1
src/server/config/spells/spellSlowBlast.js View File

@@ -128,7 +128,6 @@ define([
},

cast: function(action) {
console.log(1);
this.castingEffect = this.obj.effects.addEffect({
type: 'casting'
});


+ 0
- 2
src/server/config/spells/spellWarnBlast.js View File

@@ -82,8 +82,6 @@ define([
}]
};

console.log(this.particles);

syncer.queue('onGetObject', effect);

this.queueCallback(this.onWarningOver.bind(this, x, y), this.delay * 350);


+ 1
- 1
src/server/world/map.js View File

@@ -87,7 +87,7 @@ define([

mapFile = require('../config/maps/' + this.name + '/map');
this.mapFile = mapFile;
this.mapFile.properties = this.mapFile.properties || {};
mapScale = mapFile.tilesets[0].tileheight;

this.instanced = mapFile.properties.instanced;


Loading…
Cancel
Save