Skip to content

Commit

Permalink
Update player.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Feb 11, 2020
1 parent 5cd6a61 commit ea07fa5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4155,8 +4155,10 @@ void player::gunmod_add( item &gun, item &mod )

const int moves = !has_trait( trait_DEBUG_HS ) ? mod.type->gunmod->install_time : 0;

assign_activity( activity_id( "ACT_GUNMOD_ADD" ), moves, -1, get_item_position( &gun ), tool );
activity.values.push_back( get_item_position( &mod ) );
assign_activity( activity_id( "ACT_GUNMOD_ADD" ), moves, -1, 0, tool );
activity.targets.push_back( item_location( *this, &gun ) );
activity.targets.push_back( item_location( *this, &mod ) );
activity.values.push_back( 0 ); // dummy value
activity.values.push_back( roll ); // chance of success (%)
activity.values.push_back( risk ); // chance of damage (%)
activity.values.push_back( qty ); // tool charges
Expand Down

0 comments on commit ea07fa5

Please sign in to comment.