Skip to content

Commit

Permalink
better milking: have milking take time
Browse files Browse the repository at this point in the history
Milking takes 2 minutes per 10 units of milk transferred.

This isn't an entirely satisfactory solution, but redoing the
handle_liquid interface and adding a milking activity is beyond
the scope of this PR.
  • Loading branch information
mlangsdorf committed Aug 7, 2018
1 parent c048b6a commit 9a02468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/monexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "messages.h"
#include "mtype.h"
#include "calendar.h"
#include "player.h"
#include <utility>

const efftype_id effect_milked( "milked" );
Expand All @@ -27,6 +28,7 @@ void monexamine::milk_source( monster &source_mon )
add_msg( _( "You milk the %s." ), source_mon.get_name().c_str() );
long transferred_milk = remaining_milk - milk.charges;
source_mon.add_effect( effect_milked, milking_freq * transferred_milk );
g->u.mod_moves( -to_moves<int>( transferred_milk * 1_minutes / 5 ) );
}
} else {
add_msg( _( "The %s's udders run dry." ), source_mon.get_name().c_str() );
Expand Down

0 comments on commit 9a02468

Please sign in to comment.