var Cell = require('./Cell');

function PlayerCell() {
    Cell.apply(this, Array.prototype.slice.call(arguments));
    
    this.cellType = 0;
    this._speed = null;
    this._canRemerge = false;
}

module.exports = PlayerCell;
PlayerCell.prototype = new Cell();

// Main Functions

PlayerCell.prototype.canEat = function (cell) {
    return true; // player cell can eat anyone
};

PlayerCell.prototype.getSpeed = function () {
    var speed = 2.1106 / Math.pow(this._size, 0.449);
    // tickStep = 40ms
    this._speed = speed * 40 * this.gameServer.config.playerSpeed;
    return this._speed;
};

PlayerCell.prototype.onAdd = function (gameServer) {
    // Gamemode actions
    gameServer.gameMode.onCellAdd(this);
};

PlayerCell.prototype.onRemove = function (gameServer) {
    // Remove from player cell list
    var index = this.owner.cells.indexOf(this);
    if (index != -1) {
        this.owner.cells.splice(index, 1);
    }
    // Gamemode actions
    gameServer.gameMode.onCellRemove(this);
};

@@ -438,21 +438,25 @@
 nction (
+dist
 ) %7B%0D%0A
-
     var 
@@ -498,24 +498,75 @@
 e, 0.449);%0D%0A
+    var normalizedDist = Math.min(dist, 32) / 32;%0D%0A
     // tickS
@@ -645,16 +645,16 @@
 Speed;%0D%0A
-
     retu
@@ -667,16 +667,33 @@
 s._speed
+ * normalizedDist
 ;%0D%0A%7D;%0D%0A%0D

Update PlayerCell.js