Skip to content

Commit

Permalink
Fixed time cost for auto-mining (CleverRaven#27517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik authored and kevingranade committed Jan 9, 2019
1 parent f8c9edc commit de3b5c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10275,7 +10275,8 @@ bool game::plmove( int dx, int dy, int dz )
if( u.weapon.ammo_sufficient() ) {
turns = MINUTES( 30 );
u.weapon.ammo_consume( u.weapon.ammo_required(), u.pos() );
u.assign_activity( activity_id( "ACT_JACKHAMMER" ), turns, -1, u.get_item_position( &u.weapon ) );
u.assign_activity( activity_id( "ACT_JACKHAMMER" ), turns * 100, -1,
u.get_item_position( &u.weapon ) );
u.activity.placement = dest_loc;
add_msg( _( "You start breaking the %1$s with your %2$s." ),
m.tername( dest_loc ).c_str(), u.weapon.tname().c_str() );
Expand Down

0 comments on commit de3b5c8

Please sign in to comment.