diff --git a/server.js b/server.js index 9f2632a..630da15 100644 --- a/server.js +++ b/server.js @@ -179,6 +179,7 @@ var itemAttrs = { lvl: 1, }, "item_item_schatz": { + changeMovementSpeed: -0.5, lvl: -1, }, "item_consumable_fish1": { @@ -189,10 +190,6 @@ var itemAttrs = { lvl: 1, hp: 10 }, - "item_item_dimond1": { - lvl: 10, - changeMovementSpeed: -0.5 - }, "item_item_woods1": { lvl: 1, //changeMovementSpeed: -0.5 @@ -624,7 +621,7 @@ setInterval(function () { player["mvnt"] = mvnt; } - if (player["slots"]["item"] && player["slots"]["item"]["changeMovementSpeed"]) { + if (player["slots"]["item"] && itemAttrs[player["slots"]["item"]] && itemAttrs[player["slots"]["item"]]["changeMovementSpeed"]) { player["mvnt"] = mvnt + itemAttrs[player["slots"]["item"]]["changeMovementSpeed"]; }