fix: travel now takes X steps
authorxangelo <git@xangelo.ca>
Tue, 25 Jul 2023 17:47:04 +0000 (13:47 -0400)
committerxangelo <git@xangelo.ca>
Tue, 25 Jul 2023 17:47:14 +0000 (13:47 -0400)
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.

src/events/travel/server.ts

index b0353bb696b56dd02e34249e96fc7d2f5a8a678a..72a4e82c77c6fef4d561229f456c5504b6f77bdf 100644 (file)
@@ -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);