Browse Source

fixes #214

tags/v0.1.9^2
Big Bad Waffle 6 years ago
parent
commit
d2dfd1b56e
1 changed files with 18 additions and 4 deletions
  1. +18
    -4
      src/server/components/gatherer.js

+ 18
- 4
src/server/components/gatherer.js View File

@@ -36,6 +36,24 @@ define([

if (firstNode.resourceNode.nodeType == 'fish') {
var rod = this.obj.equipment.eq.tool;
if (!rod) {
process.send({
method: 'events',
data: {
'onGetAnnouncement': [{
obj: {
msg: 'You need a fishing rod to fish'
},
to: [this.obj.serverId]
}]
}
});

this.gathering = null;

return;
}

rod = this.obj.inventory.findItem(rod);

var statCatchSpeed = Math.min(150, this.obj.stats.values.catchSpeed);
@@ -288,10 +306,6 @@ define([
}
});

nodes.splice(i, 1);
i--;
nLen--;

if (this.gathering == node) {
if (this.gathering.resourceNode.nodeType == 'fish')
this.obj.syncer.set(true, 'gatherer', 'action', 'Fishing');


Loading…
Cancel
Save