Skip to content

Commit

Permalink
Flu vaccine expires based on creation time, not start of cataclysm (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Salty-Panda authored May 3, 2021
1 parent 850039f commit 935b5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ cata::optional<int> iuse::vaccine( player *p, item *it, bool, const tripoint & )
cata::optional<int> iuse::flu_vaccine( player *p, item *it, bool, const tripoint & )
{
p->add_msg_if_player( _( "You inject the vaccine." ) );
time_point expiration_date = calendar::start_of_cataclysm + 24_weeks;
time_point expiration_date = it->birthday() + 24_weeks;
time_duration remaining_time = expiration_date - calendar::turn;
// FIXME Removing feedback and visible status would be more realistic
if( remaining_time > 0_turns ) {
Expand Down

0 comments on commit 935b5c8

Please sign in to comment.