From: xangelo Date: Tue, 25 Jul 2023 17:47:04 +0000 (-0400) Subject: fix: travel now takes X steps X-Git-Tag: v0.2.0~10 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=c4f9b81840aac6f51744edcd591578a2cdc1ddd3;p=risinglegends.git fix: travel now takes X steps X is some random number between 150-200, but this will eventually be set based on the "paths" between towns and then randomized a bit. --- diff --git a/src/events/travel/server.ts b/src/events/travel/server.ts index b0353bb..72a4e82 100644 --- a/src/events/travel/server.ts +++ b/src/events/travel/server.ts @@ -70,7 +70,6 @@ export const nextStep: SocketEvent = { } travelPlan.current_position++; - travelPlan.current_position += travelPlan.total_distance; if(travelPlan.current_position >= travelPlan.total_distance) { const travel = await completeTravel(api.player.id);