Skip to content

Commit

Permalink
update mana regen less often
Browse files Browse the repository at this point in the history
this allows for larger chunks of mana to be regenerated at a time
  • Loading branch information
KorGgenT committed Jun 10, 2019
1 parent 37a6167 commit fa82dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3952,8 +3952,8 @@ void player::update_body( const time_point &from, const time_point &to )
{
update_stamina( to_turns<int>( to - from ) );
update_stomach( from, to );
if( ticks_between( from, to, 10_turns ) > 0 ) {
magic.update_mana( *this, to_turns<float>( 10_turns ) );
if( ticks_between( from, to, 3_minutes ) > 0 ) {
magic.update_mana( *this, to_turns<float>( 3_minutes ) );
}
const int five_mins = ticks_between( from, to, 5_minutes );
if( five_mins > 0 ) {
Expand Down

0 comments on commit fa82dec

Please sign in to comment.