Skip to content

Commit

Permalink
Merge pull request #34350 from Night-Pryanik/fit-transform
Browse files Browse the repository at this point in the history
Show correct info about transform target's fitness
  • Loading branch information
ZhilkinSerg authored Sep 30, 2019
2 parents d4061cf + 8d3a344 commit f833882
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iuse_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ void iuse_transform::finalize( const itype_id & )

void iuse_transform::info( const item &it, std::vector<iteminfo> &dump ) const
{
const item dummy( target, calendar::turn, std::max( ammo_qty, 1 ) );
item dummy( target, calendar::turn, std::max( ammo_qty, 1 ) );
if( it.has_flag( "FIT" ) ) {
dummy.item_tags.insert( "FIT" );
}
dump.emplace_back( "TOOL", string_format( _( "<bold>Turns into</bold>: %s" ),
dummy.tname() ) );
if( countdown > 0 ) {
Expand Down

0 comments on commit f833882

Please sign in to comment.