Skip to content

Commit

Permalink
oh you dont actually need has_charges
Browse files Browse the repository at this point in the history
  • Loading branch information
marilynias committed Jan 10, 2025
1 parent 9344b15 commit ce6d2ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3578,8 +3578,7 @@ void activity_handlers::fertilize_plot_do_turn( player_activity *act, Character
itype_id fertilizer;

auto have_fertilizer = [&]() {
return !fertilizer.is_empty() && ( you->has_charges( fertilizer, 1 ) ||
you->has_amount( fertilizer, 1 ) );
return !fertilizer.is_empty() && you->has_amount( fertilizer, 1 );
};

auto check_fertilizer = [&]( bool ask_user = true ) -> void {
Expand Down

0 comments on commit ce6d2ae

Please sign in to comment.