From 79140a8c4bb8103850e3844b6b9ab97100907bb6 Mon Sep 17 00:00:00 2001 From: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:31:26 -0400 Subject: [PATCH] Select meal size at camp --- src/faction_camp.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/faction_camp.cpp b/src/faction_camp.cpp index df4c93a03c1d7..829c78d495085 100644 --- a/src/faction_camp.cpp +++ b/src/faction_camp.cpp @@ -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 ) {