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 upZone activity - farm plot planting #25181
Conversation
Robik81
force-pushed the
Robik81:farm_plant
branch
Aug 27, 2018
This comment has been minimized.
This comment has been minimized.
|
I'm still planning to separate >Watering, weeding and fertilizing into new functions, so you will be able to use your tumba-jumba zone magic and apply them over every tile. I suppose it will be faster to commit such changes into your branch rather then opening new PR. |
This comment has been minimized.
This comment has been minimized.
I think if you'l make tiny PR only with refactoring of a function into two, @ZhilkinSerg can review and merge something like this quite fast? |
Robik81
reviewed
Aug 27, 2018
|
|
||
| // if true, it works fine for normal planting, but closes immediately if called | ||
| // from parent uimenu when adding new planting zone | ||
| smenu.return_invalid = false; |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Qrox
Aug 28, 2018
•
Contributor
I guess it is because there's a timeout set in the input manager (for blinking), so when the timeout is triggered in the submenu, it thinks it is an unbound key, and returns because return_invalid is true.
I'll let uimenu handle it properly in my PR. For now you may want to temporarily disable the timeout before calling up the submenu.
This comment has been minimized.
This comment has been minimized.
Robik81
Aug 28, 2018
Author
Contributor
Your guess was correct. That was indeed a problem.
Thank you very much for helping me out.
(I see you are going to handle it on the uimenu side, cool.)
Vasyan2006
referenced this pull request
Aug 28, 2018
Merged
Move plant care actions to new functions. #25202
This comment has been minimized.
This comment has been minimized.
|
#25204 is merged |
Robik81
force-pushed the
Robik81:farm_plant
branch
Aug 28, 2018
This comment has been minimized.
This comment has been minimized.
|
Thank you guys. On the weeding I go... it will be in separate PR though, this one is big enough as it is. |
Robik81
added some commits
Aug 14, 2018
Robik81
force-pushed the
Robik81:farm_plant
branch
to
252883e
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
|
Given that PR #24291 was rolled back, I updated this PR to work with the old planting system. |
ZhilkinSerg
self-assigned this
Aug 29, 2018
ZhilkinSerg
reviewed
Aug 29, 2018
| g->m.add_item_or_charges( examp, used_seed.front() ); | ||
| g->m.set( examp, t_dirt, f_plant_seed ); | ||
| p.moves -= 500; | ||
| add_msg( _( "Planted %s" ), item::nname( seed_id ).c_str() ); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
No feedback for player (in message log or popup) when |
This comment has been minimized.
This comment has been minimized.
Robik81
added some commits
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
New commits changes
|

Robik81 commentedAug 27, 2018
•
edited
Summary
SUMMARY: Features "adds new option for Farm: Plot zone to attach specific seed and new activity to plant in nearby plot zones"Purpose of change
As outlined in #24826 , this PR aims at reducing tedium of farming. Follow up of #25125 . Planting activity for Farm: Plot zone. Watering, weeding and fertilizing will follow in separate PRs.
Describe the solution
Update
Watering, weeding and fertilizing will follow if / when the improved crop farming is implemented again.