Skip to content

Commit

Permalink
really just clarification (#54996)
Browse files Browse the repository at this point in the history
  • Loading branch information
bombasticSlacks authored Feb 3, 2022
1 parent 9949aa3 commit f7e93ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2011,11 +2011,12 @@ int npc::max_willing_to_owe() const

void npc::shop_restock()
{
if( ( restock != calendar::turn_zero ) && ( ( calendar::turn - restock ) < 3_days ) ) {
// NPCs refresh every week, since the last time you checked in
if( ( restock != calendar::turn_zero ) && ( ( calendar::turn - restock ) < 0_days ) ) {
return;
}

restock = calendar::turn + 3_days;
restock = calendar::turn + 6_days;
if( is_player_ally() ) {
return;
}
Expand Down

0 comments on commit f7e93ba

Please sign in to comment.