-
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
Update to sleep menu 2 #38768
Update to sleep menu 2 #38768
Conversation
Instead of moving the code blocks around (that add the menu entries), you can set the initially selected item of the menu via |
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.
Just fix/add comments
Change comment Co-Authored-By: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Can you fix it flaring up with gas masks? you cant actually turn those off either. |
Sounds good. Can you help me with that? |
This also just makes where yes is inconsistent, did we really need to babyproof falling asleep with a flashlight on in the first place? |
I feel like it might help new players. Don't you? |
|
Thank you akirashirosawa! |
It would be nice to filter things like gas masks, glowstick, but I don't know what |
Maybe -> "use_action": "GASMASK". |
I feel new players should learn from mistakes instead of having their hand held. |
You are welcome) I don’t know how to make such big suggestion in review, sorry, but, I just copied diff again. |
I understand your point. |
I feel that I went to sleep with mp3 player on like 1000 times. And I am very happy about this change! It just makes the game more convenient, not more easy. |
We cannot hardcode such things. A gas mask and a glowstick are what came to mind now. There may be more items, may appear more items. Need to find or add a |
|
You're right. We should consider adding a FLAG to filter those things. |
Already created issue with gas mask 🙂 |
924f105
to
39e00e3
Compare
So, should I change anything else? I will post three more comments. Please vote with 👍and 👎. So we could find a way to deal with it. By the way - I will vote well. OK? And please let me know if I missed anything else. |
I could offer to remove the whole sentence ("You may want to take care of:"). _I would remove the sentence. |
I could create a "WARN_ON_SLEEP" flag and mark all the items that should be on the waring list. I don't mind. So I don't vote. |
About the flag, I would say that even if we consider doing it, it does not have to be shipped along with this PR, so don't worry. About the message, having any message is better than none; so between removing it and keeping it, keeping seems to me like the safest choice. I think that we could have a more explicit message on what are the problems and solutions (ie: "turn off electronics to avoid wasting power and extinguish fires to avoid ... fires ?"). |
Thanks. |
ad63e77
to
8e68539
Compare
621a68e
to
b7106d0
Compare
0f30a43
to
d432807
Compare
Need help resolving conflicting files src/cata_string_consts.h. Is it enough to move to src\handle_action.cpp cause there is no "src/cata_string_consts.h" anymore. |
Yes. |
Summary
SUMMARY: None
Purpose of change
This fixes #38785.
Hope you like it.
Screenshot(s)