diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-03-13 10:30:52 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-03-13 10:30:52 -0700 |
commit | a09894839ccba98dd8cd2a15cfe09cb75de18125 (patch) | |
tree | 39300c2fabf6d202f199a9441a3e8466c8770b16 /src-12_fix-food-supply-calculations.patch | |
parent | Update to 0.F.3 (diff) | |
download | cataclysm-dda-a09894839ccba98dd8cd2a15cfe09cb75de18125.tar.xz |
Port patches back to DDA.
Diffstat (limited to 'src-12_fix-food-supply-calculations.patch')
-rw-r--r-- | src-12_fix-food-supply-calculations.patch | 20 |
1 files changed, 20 insertions, 0 deletions
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 ) { |