-
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
More obvious hint before going to sleep (UPDATED) #38722
Conversation
Perhaps change the default selection to No as well? |
I like the idea. Makes it even safer. Any idea where or how to implement your idea? |
Add this to trying to sleep with mp3 on, i always forget to turn it off before. |
Same here. Thank you. |
src/handle_action.cpp
Outdated
|
||
// List all active items, bionics or mutations so player can deactivate them | ||
std::vector<std::string> active; | ||
for( auto &it : u.inv_dump() ) { | ||
if( it->active && ( it->charges > 0 || it->units_remaining( u ) > 0 ) && | ||
it->is_transformable() ) { | ||
it->is_tool() ) { |
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.
Fun thing: a lit cigar is not a tool and would also not pass this test because it does not have charges, I think (just tested, got everything on fire).
Since the other day I read on reddit that someone started bionic operation (ie: anesthesia) while smoking a lit cigar and that caused them to start a fire, for this reason I think that we should also consider lit items as things to notify:
So I think we should do something like
it->has_flag( flag_LITCIG ) || ( it->active && ( it->charges > 0 || it->units_remaining( u ) > 0 ) && it->is_tool() )
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.
The only items that have destructive effect that are not tools that I found were, besides cigarettes, non-lethal grenades (insecticide, fungicide, smoke).
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.
Good thinking!!! Added your idea.
I'm not at home right now, so a new screenshot will have to wait til tomorrow.
The only bad thing is:
Now I have to think of a new sentence that fits the lit cigar ;-)
--> You may want to turn off:
Any suggestions?
Can't think of anything good.
-> You may want to take care of:
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.
I think that "You may want to take care of:" is great. Alternativaly, something like "You may want to put out the following:" or "It might be safer to shut off the following before sleeping:"
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.
I think I'll go with "The following may have slipped your mind:". What do you think?
BTW - Tests fail. I'll take a closer look tomorrow.
|
You are right. thank you. You wanne PR it yourself? |
I was thinking of... |
I have not created and configured fork. It would be nice if you made changes 🙂 |
Of course! An idea? Maybe: |
unnecessary second check
That sounds good. But English is not my native) |
Thank you! |
Summary
SUMMARY: Interface "Small sleep menu improvement"
Purpose of change
In a nutshell: Help players with a more obvious hint before they try to sleep.
And as @Leland suggested the default sleep-option is now NO.
This PR has improved significantly thanks to: @Shibimon and @umamaistempo
Thank you all!!!
Hope you like it.
Screenshot(s)
Final version: