Skip to content

Commit

Permalink
Only call do_skill_rust() once every 6s
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Jan 19, 2020
1 parent cd4c687 commit 959a97e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2756,7 +2756,7 @@ void Character::do_skill_rust()
// this point, but print a message about it now and
// then.
//
// 13 combat skills, 600 turns/hr, 7800 tests/hr.
// 13 combat skills, 3600 turns/hr, 1 test/6s, 7800 tests/hr.
// This means PRED2/PRED3/PRED4 think of hunting on
// average every 8/4/3 hours, enough for immersion
// without becoming an annoyance.
Expand Down Expand Up @@ -3960,8 +3960,11 @@ void Character::update_body( const time_point &from, const time_point &to )
}
}
}
//skill rust was first balanced for 6s/turn
if( calendar::once_every( 6_seconds ) ) {
do_skill_rust();
}

do_skill_rust();
}

void Character::update_stomach( const time_point &from, const time_point &to )
Expand Down

0 comments on commit 959a97e

Please sign in to comment.