Skip to content

Commit

Permalink
Freeze burn does not cause insta-rot (#36644)
Browse files Browse the repository at this point in the history
  • Loading branch information
1n17 authored and kevingranade committed Jan 5, 2020
1 parent 7810b06 commit 3829c9f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ void item::food_info( const item *food_item, std::vector<iteminfo> &info,
if( food_item->has_flag( "MUSHY" ) && !food_item->rotten() ) {
info.emplace_back( "DESCRIPTION",
_( "* It was frozen once and after thawing became <bad>mushy and "
"tasteless</bad>. It will rot if thawed again." ) );
"tasteless</bad>. It will rot quickly if thawed again." ) );
}
if( food_item->has_flag( "NO_PARASITES" ) && g->u.get_skill_level( skill_cooking ) >= 3 ) {
info.emplace_back( "DESCRIPTION",
Expand Down Expand Up @@ -4817,6 +4817,9 @@ void item::calc_rot( time_point time, int temp )
if( is_corpse() && has_flag( "FIELD_DRESS" ) ) {
factor = 0.75;
}
if( item_tags.count( "MUSHY" ) ) {
factor = 3.0;
}

if( item_tags.count( "COLD" ) ) {
temp = temperatures::fridge;
Expand Down Expand Up @@ -8167,8 +8170,6 @@ void item::apply_freezerburn()
}
if( !item_tags.count( "MUSHY" ) ) {
item_tags.insert( "MUSHY" );
} else {
set_relative_rot( 1.01 );
}
}

Expand Down

0 comments on commit 3829c9f

Please sign in to comment.