Home
/
risinglegends.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
621c35b
)
fix: travel now takes X steps
author
xangelo
<git@xangelo.ca>
Tue, 25 Jul 2023 17:47:04 +0000
(13:47 -0400)
committer
xangelo
<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
patch
|
blob
|
history
diff --git
a/src/events/travel/server.ts
b/src/events/travel/server.ts
index b0353bb696b56dd02e34249e96fc7d2f5a8a678a..72a4e82c77c6fef4d561229f456c5504b6f77bdf 100644
(file)
--- 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);