From a09894839ccba98dd8cd2a15cfe09cb75de18125 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 13 Mar 2023 10:30:52 -0700 Subject: Update to 0.G Port patches back to DDA. --- src-12_fix-food-supply-calculations.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src-12_fix-food-supply-calculations.patch (limited to 'src-12_fix-food-supply-calculations.patch') diff --git a/src-12_fix-food-supply-calculations.patch b/src-12_fix-food-supply-calculations.patch new file mode 100644 index 0000000..15ee206 --- /dev/null +++ b/src-12_fix-food-supply-calculations.patch @@ -0,0 +1,20 @@ +--- a/src/faction.cpp ++++ b/src/faction.cpp +@@ -323,7 +323,7 @@ + std::string faction::food_supply_text() + { + //Convert to how many days you can support the population +- int val = food_supply / ( size * 288 ); ++ int val = food_supply / ( size * 2500 ); + if( val >= 30 ) { + return pgettext( "Faction food", "Overflowing" ); + } +@@ -341,7 +341,7 @@ + + nc_color faction::food_supply_color() + { +- int val = food_supply / ( size * 288 ); ++ int val = food_supply / ( size * 2500 ); + if( val >= 30 ) { + return c_green; + } else if( val >= 14 ) { -- cgit v1.2.1