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 tilling #25125
Conversation
Robik81
added some commits
Aug 13, 2018
This comment has been minimized.
This comment has been minimized.
|
What you do is amazing. Haven't had time yet to test automatic-sorting #24488 and I don't want to get into compiling, so haven't tested that yet as well, but it sounds amazing! |
This comment has been minimized.
This comment has been minimized.
|
Btw, this should resolve all the "hoe is now worse since it can dig" type of issues, if there are any. |
ZhilkinSerg
self-assigned this
Aug 26, 2018
This comment has been minimized.
This comment has been minimized.
|
Looks really great :) |
ZhilkinSerg
merged commit a58b380
into
CleverRaven:master
Aug 26, 2018
ZhilkinSerg
removed their assignment
Aug 26, 2018
This comment has been minimized.
This comment has been minimized.
|
Damn, you people are on the roll. That was what, 50 PRs merged in last two days or something? @Brambor Thank you, I sincerely hope the feature will serve well all aspiring farmers in this great game. |
Robik81
referenced this pull request
Aug 26, 2018
Closed
Error on using mouse to move character #25153
Robik81
deleted the
Robik81:farm_till
branch
Aug 27, 2018
ZhilkinSerg
reviewed
Aug 30, 2018
| return; | ||
| } else { // we are at destination already | ||
| p->add_msg_if_player( _( "You churn up the earth here." ) ); | ||
| p->moves = -300; |
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
Aug 30, 2018
Contributor
I believe this line should be:
p->moves -= 300; - i.e. subtract 300 from player moves.
Now it sets player moves to -300 which makes following check (if( p->moves <= 0 ) {) redundant as this expression will always be true.
This comment has been minimized.
This comment has been minimized.
Robik81
Aug 30, 2018
Author
Contributor
Yeah, I think you are correct, that was my intended behavior... not that I came with the formula, I stole these 3 lines from iuse::makemound and I did not check them properly I guess. I think it should be changed in both places. I would normally not duplicate the code, but I did, as this was only 3 lines.
Should I make a PR to add a cost to game_constants.h and use the value in both places? I think it is better than making extra function with just 3 lines of code.
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
Aug 30, 2018
Contributor
No new function is necessary right now and you can simply change values in existing places.
Btw, you can also use following syntax: p->mod_moves( -300 );
This comment has been minimized.
This comment has been minimized.
Robik81
Aug 30, 2018
Author
Contributor
Fix is in #25253 , tested both manual and automatic tilling.
Robik81 commentedAug 25, 2018
Summary
SUMMARY: Features "adds new Farm: Plot zone and an activity to till it"Purpose of change
As outlined in #24826 , this PR aims at reducing tedium of farming. Tilling is first activity for Farm: Plot zone, planting etc. will follow in separate PRs.
Describe the solution
Additional context
Also contains code infrastructure for future fixing of #25116