Skip to content

Commit

Permalink
Merge pull request #61310 from irwiss/hotwire-train-mechanics
Browse files Browse the repository at this point in the history
Make hotwiring train mechanics
  • Loading branch information
Rivet-the-Zombie authored Sep 28, 2022
2 parents 5542e8a + 0b331ae commit bf9ca7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ void hotwire_car_activity_actor::start( player_activity &act, Character & )
act.moves_left = moves_total;
}

void hotwire_car_activity_actor::do_turn( player_activity &act, Character & )
void hotwire_car_activity_actor::do_turn( player_activity &act, Character &who )
{
map &here = get_map();
if( calendar::once_every( 1_minutes ) ) {
Expand All @@ -920,6 +920,9 @@ void hotwire_car_activity_actor::do_turn( player_activity &act, Character & )
act.set_to_null();
debugmsg( "Lost ACT_HOTWIRE_CAR target vehicle" );
}
if( calendar::once_every( 5_minutes ) ) {
who.practice( skill_mechanics, 1, 2, true );
}
}
}

Expand Down

0 comments on commit bf9ca7c

Please sign in to comment.