@zardoy/flying-squid 0.0.109 → 0.0.111
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.
|
@@ -164,15 +164,20 @@ const player = function (player, serv, { version }) {
|
|
|
164
164
|
const DIG_TIME_ALLOWED_THRESHOLD = 50;
|
|
165
165
|
const tooFast = digTimeDiff > DIG_TIME_ALLOWED_THRESHOLD;
|
|
166
166
|
const tooFar = player.position.distanceTo(location) > MAX_DIG_DISTANCE;
|
|
167
|
-
if (
|
|
167
|
+
if (tooFar) {
|
|
168
168
|
stop = true;
|
|
169
169
|
await player.behavior('suspiciousDigStopped', {
|
|
170
170
|
tooFast,
|
|
171
171
|
digTimeDiff,
|
|
172
172
|
tooFar,
|
|
173
173
|
location,
|
|
174
|
-
digTimeAllowedThreshold: DIG_TIME_ALLOWED_THRESHOLD
|
|
175
|
-
|
|
174
|
+
digTimeAllowedThreshold: DIG_TIME_ALLOWED_THRESHOLD,
|
|
175
|
+
actualDiggingTime: diggingTime,
|
|
176
|
+
expectedDiggingTime,
|
|
177
|
+
stop
|
|
178
|
+
}, (data) => {
|
|
179
|
+
stop = data.stop;
|
|
180
|
+
}, () => {
|
|
176
181
|
stop = false;
|
|
177
182
|
});
|
|
178
183
|
}
|