Skip to content

Commit

Permalink
Select meal size at camp
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Jun 4, 2024
1 parent 3629722 commit 79140a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/faction_camp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,14 @@ void basecamp::choose_new_leader()

void basecamp::player_eats_meal()
{
int kcal_to_eat = 3000;
uilist smenu;
smenu.text = _( "Have a meal?" );
int i = 1;
smenu.addentry( i++, true, '1', _( "Snack" ) );
smenu.addentry( i++, true, '2', _( "Meal" ) );
smenu.addentry( i++, true, '3', _( "Just stuff your face. You're hungry!" ) );
smenu.query();
int kcal_to_eat = smenu.ret * 750 - 250; // 500, 1250, 2000 kcal
Character &you = get_player_character();
const int &food_available = fac()->food_supply.kcal();
if( food_available <= 0 ) {
Expand Down

0 comments on commit 79140a8

Please sign in to comment.