From b4f70f3dfa527fd51625aa8b52aadccef8ed84f3 Mon Sep 17 00:00:00 2001 From: Night-Pryanik Date: Wed, 9 Jan 2019 11:05:57 +0400 Subject: [PATCH] Fixed time cost for auto-mining --- 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() );