movementspeed dimond

This commit is contained in:
Raphael 2025-02-13 13:49:46 +01:00
parent 342611819e
commit 10c426d18d

View File

@ -179,6 +179,7 @@ var itemAttrs = {
lvl: 1, lvl: 1,
}, },
"item_item_schatz": { "item_item_schatz": {
changeMovementSpeed: -0.5,
lvl: -1, lvl: -1,
}, },
"item_consumable_fish1": { "item_consumable_fish1": {
@ -189,10 +190,6 @@ var itemAttrs = {
lvl: 1, lvl: 1,
hp: 10 hp: 10
}, },
"item_item_dimond1": {
lvl: 10,
changeMovementSpeed: -0.5
},
"item_item_woods1": { "item_item_woods1": {
lvl: 1, lvl: 1,
//changeMovementSpeed: -0.5 //changeMovementSpeed: -0.5
@ -624,7 +621,7 @@ setInterval(function () {
player["mvnt"] = mvnt; 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"]; player["mvnt"] = mvnt + itemAttrs[player["slots"]["item"]]["changeMovementSpeed"];
} }