Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Fix hub timers #71370

wants to merge 2 commits into from

Conversation

GuardianDll
Copy link
Member

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

@github-actions github-actions bot added [JSON] Changes (can be) made in JSON <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Jan 30, 2024
@GuardianDll
Copy link
Member Author

GuardianDll commented Jan 30, 2024

with #71373 i finally understood what the Line 24 issue was, and #71373 very luckily cover the part i don't do in this pr

@@ -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')" ] },
Copy link
Contributor

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

Copy link
Member Author

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

@andrei8l
Copy link
Contributor

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

@GuardianDll
Copy link
Member Author

Nevertheless, it'd be easier to close it in favor of #71374

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jan 31, 2024
@GuardianDll GuardianDll deleted the hub_timers branch January 31, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hub prototype system broken hub01 will provide prototype armor at no cost.
2 participants