Skip to content

Commit

Permalink
Merge pull request #56189 from dseguin/fix_app_remove_prompt
Browse files Browse the repository at this point in the history
Fix missing appliance removal prompt
  • Loading branch information
ZhilkinSerg authored Mar 20, 2022
2 parents d2dd947 + ca694c5 commit 9da10a0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/veh_appliance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,17 +365,11 @@ void veh_app_interact::remove()
bool can_remove = reqs.can_make_with_inventory( inv, is_crafting_component );
if( !can_remove ) {
msg += _( "Insufficient components/tools!\n" );
}
for( const auto &sk : vpinfo.removal_skills ) {
if( you.get_knowledge_level( sk.first ) < sk.second ) {
can_remove = false;
//~ 1$ = skill name (ex: mechanics), 2$ = skill level
msg += string_format( _( "Removal requires %1$s %2$d!\n" ), sk.first->name(), sk.second );
}
msg += reqs.list_missing();
}

int time = vpinfo.removal_time( you );
if( trait_DEBUG_HS ) {
if( you.has_trait( trait_DEBUG_HS ) ) {
can_remove = true;
time = 1;
}
Expand Down

0 comments on commit 9da10a0

Please sign in to comment.