From de3b5c81d108fd66e45da5d172de2d3cc848203a Mon Sep 17 00:00:00 2001 From: Anton Burmistrov Date: Wed, 9 Jan 2019 12:00:28 +0300 Subject: [PATCH] Fixed time cost for auto-mining (#27517) --- src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game.cpp b/src/game.cpp index 14ee6ddd137fa..ab1ebd98da5be 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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() );