terminal-mmo 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +0 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2182,7 +2182,6 @@ function runNetworked(url) {
|
|
|
2182
2182
|
let zone2 = localZone(zoneId);
|
|
2183
2183
|
let predicted = spawnAvatar(SPAWN.x, SPAWN.y);
|
|
2184
2184
|
const localCd = {};
|
|
2185
|
-
const RECONCILE = 3;
|
|
2186
2185
|
const SEND_INTERVAL = 1000 / 30;
|
|
2187
2186
|
let sendAcc = 0;
|
|
2188
2187
|
const chat = new ChatInput;
|
|
@@ -2240,12 +2239,6 @@ function runNetworked(url) {
|
|
|
2240
2239
|
predicted.hp = own.hp;
|
|
2241
2240
|
predicted.maxHp = own.maxHp;
|
|
2242
2241
|
predicted.hurtT = own.hurtT;
|
|
2243
|
-
if (Math.abs(own.x - predicted.x) > RECONCILE || Math.abs(own.y - predicted.y) > RECONCILE) {
|
|
2244
|
-
predicted.x = own.x;
|
|
2245
|
-
predicted.y = own.y;
|
|
2246
|
-
predicted.vx = 0;
|
|
2247
|
-
predicted.vy = 0;
|
|
2248
|
-
}
|
|
2249
2242
|
}
|
|
2250
2243
|
sendAcc += dt;
|
|
2251
2244
|
if (sendAcc >= SEND_INTERVAL) {
|