Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress update while heating food #57598

Merged
merged 1 commit into from
May 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/player_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static const activity_id ACT_GAME( "ACT_GAME" );
static const activity_id ACT_GUNMOD_ADD( "ACT_GUNMOD_ADD" );
static const activity_id ACT_HACKSAW( "ACT_HACKSAW" );
static const activity_id ACT_HAND_CRANK( "ACT_HAND_CRANK" );
static const activity_id ACT_HEATING( "ACT_HEATING" );
static const activity_id ACT_JACKHAMMER( "ACT_JACKHAMMER" );
static const activity_id ACT_MIGRATION_CANCEL( "ACT_MIGRATION_CANCEL" );
static const activity_id ACT_NULL( "ACT_NULL" );
Expand Down Expand Up @@ -201,7 +202,8 @@ cata::optional<std::string> player_activity::get_progress_message( const avatar
type == ACT_FILL_PIT ||
type == ACT_CHOP_TREE ||
type == ACT_CHOP_LOGS ||
type == ACT_CHOP_PLANKS
type == ACT_CHOP_PLANKS ||
type == ACT_HEATING
) {
const int percentage = ( ( moves_total - moves_left ) * 100 ) / moves_total;

Expand Down