Skip to content

Commit

Permalink
Adjusts the player modifications in dig_channel_activity_actor::finish
Browse files Browse the repository at this point in the history
to take into account npc helpers
To make it synchronize with dig_activity_actor::finish
  • Loading branch information
rsulli55 committed May 7, 2020
1 parent 58a8ed4 commit e7646a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ void dig_channel_activity_actor::finish( player_activity &act, Character &who )
calendar::turn ) );
}

who.mod_hunger( 5 );
who.mod_thirst( 5 );
who.mod_fatigue( 10 );
const int helpersize = g->u.get_num_crafting_helpers( 3 );
who.mod_stored_nutr( 5 - helpersize );
who.mod_thirst( 5 - helpersize );
who.mod_fatigue( 10 - ( helpersize * 2 ) );
who.add_msg_if_player( m_good, _( "You finish digging up %s." ),
g->m.ter( location ).obj().name() );

Expand Down

0 comments on commit e7646a6

Please sign in to comment.