-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hub timers #71370
Fix hub timers #71370
Conversation
@@ -261,7 +261,7 @@ | |||
"text": "How are my armor repairs coming?", | |||
"condition": { | |||
"and": [ | |||
{ "math": [ "time_since(u_timer_hub_rnd_u_waiting_on_hub)", "<", "time('1 d')" ] }, | |||
{ "math": [ "time_since(u_timer_hub_rnd_u_waiting_on_hub)", ">", "time('1 d')" ] }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for "it's not ready yet" so the sign is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the second commit correct? I assume the idea is to have separate timers for weapon and for armor, but didn't dig deep enough
I didn't notice you had already put up a PR. There are a couple of other errors there that I've addressed in #71374 |
Nevertheless, it'd be easier to close it in favor of #71374 |
Summary
None
Purpose of change
Attempt to fix #71331 and fix #71366
Describe the solution
Swapped checks to return true when it passed more than X days, not less
replace waiting_on_gun with waiting_on_hub variable, because it looks like the second should respond for your armor crafting
Testing
I opened prototypes menu before the fix, confirmed i can finish it instantly
I applied fix, i tried again, and i can't do this anymore
Additional context
I don't really know is it suffisient fix, #71331 meniton error in Line 24, but i don't see how it may cause issues, and i am not entirely sure i undersand the logic behind all the dialogues