Skip to content

Commit

Permalink
Merge pull request #24001 from Vasyan2006/dairy-farm
Browse files Browse the repository at this point in the history
Bugfixes for dairy farms.
  • Loading branch information
Rivet-the-Zombie authored Jun 15, 2018
2 parents 0c37294 + 595173f commit 63ff4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/json/overmap_specials.json
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@
{ "point":[1,1,0], "overmap": "dairy_farm_SE"}
],
"connections" : [
{ "point" : [1,-1,0], "terrain" : "road" }
{ "point" : [0,2,0], "terrain" : "road" }
],
"locations" : [ "wilderness" ],
"city_distance" : [5, 10],
Expand Down
2 changes: 1 addition & 1 deletion src/monexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void monexamine::milk_source( monster &source_mon )
debugmsg( "milked item must be a liquid" );
} else {

const time_duration milk_per_day = 1_days / HOURS( milked_item.begin()->second );
const time_duration milk_per_day = 1_days / milked_item.begin()->second;

if( !source_mon.has_effect( effect_milked ) ) {
g->handle_liquid( milk, nullptr, 0, nullptr, nullptr, &source_mon );
Expand Down

0 comments on commit 63ff4d3

Please sign in to comment.