Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter milking: make milking a long action that gets all the milk it can #24665
Conversation
mlangsdorf
added some commits
Aug 6, 2018
mlangsdorf
referenced this pull request
Aug 6, 2018
Open
Farming Improvements: QoL issues that need solving #24294
This comment has been minimized.
This comment has been minimized.
|
Compiled and tested successfully. Only issues I saw was that milking (regardless of amount milked) only processed a single turn / 6 seconds and perhaps due to the short length of the action, hostile enemies (even with SAFEMODE on) did not prompt any "You see the (monster) nearby! Start milking anyway? Y/N" or "You see the (monster) approaching! Stop milking? Y/N". Is the former simply for easier testing or intended to be that quick? |
DracoGriffin
added this to To do
in farming improvements
via automation
Aug 7, 2018
DracoGriffin
moved this from To do
to In progress
in farming improvements
Aug 7, 2018
This comment has been minimized.
This comment has been minimized.
|
No, ultra-short milking is not intended. |
This comment has been minimized.
This comment has been minimized.
|
Not a straightforward fix. I need to define a new activity. Grr, argh. |
This comment has been minimized.
This comment has been minimized.
Story of my github life. Sorry for off topic comment but that was on point. |
This comment has been minimized.
This comment has been minimized.
|
To do this right, I need to split the handle_liquid interface into two parts: one part that gets the destination, and another part that actually does the transfer/starts the fill liquid activity. handle_liquid would become a wrapper for the two parts. I'm not going to do all that in this PR, though I'm going to make that happen. This PR is sufficient for now and a proper milking activity will follow shortly. |
DracoGriffin
added
the
(P2 - High)
label
Aug 7, 2018
This comment has been minimized.
This comment has been minimized.
|
The full milking activity fix is waiting on #24684 and my willingness to dig back into the player_activity code. But mostly on the other part going in. |
mlangsdorf commentedAug 6, 2018
Reduce the redundant keypresses for milking a cow by turning the milking action into a long action
and transferring as much milk into the container as either the container will hold or the cow holds.
Also, canceling out of the container selection menu without selecting a container will no longer consume
milk.