Skip to content

Commit

Permalink
Merge pull request #31293 from KorGgenT/mana-regen-fix
Browse files Browse the repository at this point in the history
Magiclysm: update mana regen less often
  • Loading branch information
ZhilkinSerg authored Jun 10, 2019
2 parents 7cceebd + fa82dec commit 49253fc
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 49253fc

Please sign in to comment.