Skip to content

Commit

Permalink
Tell players about autoclaves (#35646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman authored and ZhilkinSerg committed Nov 22, 2019
1 parent 64d7f6c commit 226cce1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ class bionic_install_preset: public inventory_selector_preset
return _( "/!\\ CBM is highly contaminated. /!\\" );
} else if( it->has_flag( "NO_STERILE" ) ) {
// NOLINTNEXTLINE(cata-text-style): single space after the period for symmetry
return _( "/!\\ CBM is not sterile. /!\\" ) ;
return _( "/!\\ CBM is not sterile. /!\\ Please use autoclave to sterilize." ) ;
} else if( it->has_fault( fault_id( "fault_bionic_salvaged" ) ) ) {
return _( "CBM already deployed. Please reset to factory state." );
} else if( pa.has_bionic( bid ) ) {
Expand Down
7 changes: 6 additions & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2894,8 +2894,13 @@ void item::final_info( std::vector<iteminfo> &info, const iteminfo_query *parts,
}
insert_separation_line( info );

const bionic_id bid = type->bionic->id;
if( is_bionic() && has_flag( "NO_STERILE" ) ) {
info.push_back( iteminfo( "DESCRIPTION",
_( "* This bionic is <bad>not sterile</bad>, use an <info>autoclave</info> and an <info>autoclave pouch</info> to sterilize it. " ) ) );
}
insert_separation_line( info );

const bionic_id bid = type->bionic->id;
const std::vector<itype_id> &fuels = bid->fuel_opts;
if( !fuels.empty() ) {
const int &fuel_numb = fuels.size();
Expand Down

0 comments on commit 226cce1

Please sign in to comment.