summaryrefslogtreecommitdiff
path: root/faction-03_fix-food-supply-calculations.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-04-11 12:52:36 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-04-11 12:52:36 -0700
commit418ea37a0e8461b13d675692d13174c69a07d2f6 (patch)
treee3988f88a6b4c68e62d46ad29e08856a40459834 /faction-03_fix-food-supply-calculations.patch
parentFix nurse patch. (diff)
downloadcataclysm-bn-418ea37a0e8461b13d675692d13174c69a07d2f6.tar.xz
Updated to 2022-04-06-1910
Add patch to fix faction food supply calculations. -The game still fails to track the size of the player faction, but at least this enables manual faction size editing to provide proper estimates. Add patch to fix inconsistent monster references during npx mission combat encounters.
Diffstat (limited to 'faction-03_fix-food-supply-calculations.patch')
-rw-r--r--faction-03_fix-food-supply-calculations.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/faction-03_fix-food-supply-calculations.patch b/faction-03_fix-food-supply-calculations.patch
new file mode 100644
index 0000000..54e62ae
--- /dev/null
+++ b/faction-03_fix-food-supply-calculations.patch
@@ -0,0 +1,20 @@
+--- a/src/faction.cpp
++++ b/src/faction.cpp
+@@ -292,7 +292,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" );
+ }
+@@ -310,7 +310,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 ) {