Browse Source

fixes #400

tags/v0.1.8^2
big bad waffle 6 years ago
parent
commit
8175fbc86a
3 changed files with 7 additions and 3 deletions
  1. +1
    -1
      src/client/css/main.less
  2. +1
    -0
      src/server/components/auth.js
  3. +5
    -2
      src/server/components/trade.js

+ 1
- 1
src/client/css/main.less View File

@@ -73,4 +73,4 @@ body {
-webkit-border-radius: 10px;
border-radius: 0px;
background: @lightGray;
}
}

+ 1
- 0
src/server/components/auth.js View File

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

var character = JSON.parse(result || '{}');

//Hack for old characters
if (!character.skinId) {
character.skinId = character.class + ' 1';


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

@@ -295,10 +295,13 @@ define([

var reputation = this.obj.reputation;

var itemList = this.obj.inventory.items
.filter(i => ((i.worth > 0) && (!i.eq)));
itemList = extend(true, [], itemList);

this.obj.syncer.set(true, 'trade', 'sellList', {
markup: target.trade.markup.buy,
items: this.obj.inventory.items
.filter(i => ((i.worth > 0) && (!i.eq)))
items: itemList
.map(function (i) {
if (i.factions) {
i.factions = i.factions.map(function (f) {


Loading…
Cancel
Save