From 10c426d18d27746fc26f8ded7f79f64bb5a7a200 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 13 Feb 2025 13:49:46 +0100 Subject: [PATCH] movementspeed dimond --- server.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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"]; }