-
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
Auto eat and drink from auto-zones during long activities/waiting #36543
Conversation
I dont know how to read the changes and you probably thought of it but for being extra sure, do check it specially gives priority to eating food in already open presserving containers before opening more. |
Does it understand morale effects of food yet? If a player has heaps of different food types stashed they want to be eating different ones every time because of the stacking morale bonus decay. Morale (focus) are especially important for long-term projects. |
This isnt designed to optimise focus, its designed to stop people starving, and to stop annoying pauses in long activities to eat and drink and then resume it. If it gets smarter in the future, thta would be best served by a rules-based UI like the autopickup manager. |
Well, one nice touch would be automatically using a hotplate or hobo stove or whatever if the food is better hot. Also if it's frozen and needs warming to be eaten, as I imagine many would like to utilise this with a freezer. |
aa39539
to
9761f13
Compare
924f105
to
39e00e3
Compare
ad63e77
to
8e68539
Compare
621a68e
to
b7106d0
Compare
0f30a43
to
d432807
Compare
Co-Authored-By: BevapDin <tho_ki@gmx.de>
Co-Authored-By: BevapDin <tho_ki@gmx.de>
Rebased, cleaned, retested - working. |
Summary
SUMMARY: Features "Auto eat and drink from auto-zones during long activities/waiting"
Purpose of change
Fixes #30415
Auto eat and drink from auto-zones during long activities/waiting
Describe the solution
Added two new zones : auto_eat and auto_drink.
Items placed here are considered by the player to be available for autoconsuming, it could be placed over loot zones to make your own food zone also an autoeat zone etc.
Then during a long activity, same as with refuelling fires, it will check for significant thirst or hunger, and if need be will find the nearest autoconsume zone, and consume a valid comestible there, and subtract a small number of moves to abstract the fetching of the item, same as loot sorting does, then continues the main activity.
This will help with long-term activities like reading, long crafting sessions etc, no need to stop and start so much to get some food/drink.
Also if for some reason you just want to wait for a long time, thisll make it easier to do so.
Describe alternatives you've considered
N/A
Testing
New character, added zones, added different types of food and drink to the autoconsume zones.
waited for days until got very hungry ( got thirsty enough every few hours ), bottles of water were drunk and empty bottles placed back on the map, no infinite drinking loops or anything weird.
Food in containers were handled properly, raw meat wasnt eaten, rotten food wasnt eaten etc.
Additional context
I tried to be as smart as I could with the filtering of what items were considered good to eat, in the list of things it checks for before choosing the item to eat, but if ive forgotten anything please let me know.
Also next up, but probably needs some different handling of the context of when itd be useful, is autosleep too - automatically pathing to the nearest bed and going to sleep , durng long activities, then waking up, eating, drinking, and resuming activity etc.