Skip to content

Commit

Permalink
_lastPracticed for debuged skill is set as the time of debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Jan 21, 2020
1 parent 133d8e3 commit e45db8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/skill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ time_duration rustRate( int level )
// 2^n

unsigned const n = clamp( 0, level, 7 );
return time_duration::from_turns( 1 << ( 16 - n ) );
return time_duration::from_turns( 1 << ( 17 - n ) );
}
} //namespace

Expand All @@ -253,7 +253,7 @@ bool SkillLevel::rust( bool charged_bio_mem, float character_rate )
return one_in( 5 );
}

_exercise -= _level * 30;
_exercise -= _level;

if( _exercise < 0 ) {
if( rust_type == "vanilla" || rust_type == "int" ) {
Expand Down
1 change: 1 addition & 0 deletions src/wish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ void debug_menu::wishskill( player *p )
skmenu.entries[skill_id + skoffset].txt = string_format( _( "@ %d: %s " ),
p->get_skill_level( skill.ident() ),
skill.name() );
p->get_skill_level_object( skill.ident() ).practice();
skmenu.entries[skill_id + skoffset].text_color =
p->get_skill_level( skill.ident() ) == origskills[skill_id] ? skmenu.text_color : c_yellow;
}
Expand Down

0 comments on commit e45db8e

Please sign in to comment.