summaryrefslogtreecommitdiff
path: root/jc_stop-non-faction-npc-malnourishment.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-01-30 19:18:48 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-01-30 19:18:48 -0800
commit8f820735e5cfb8b96bd9f0218d9f70afecf6364a (patch)
treeb468e901707b04dabecc37e86c96c205ad5da22a /jc_stop-non-faction-npc-malnourishment.patch
parentFix the kindred patch so that the npc actually spawns. (diff)
downloadcataclysm-bn-8f820735e5cfb8b96bd9f0218d9f70afecf6364a.tar.xz
Fix more patch fuzz warnings in fix malnourishment patch.
Diffstat (limited to 'jc_stop-non-faction-npc-malnourishment.patch')
-rw-r--r--jc_stop-non-faction-npc-malnourishment.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/jc_stop-non-faction-npc-malnourishment.patch b/jc_stop-non-faction-npc-malnourishment.patch
index e197713..096a5a8 100644
--- a/jc_stop-non-faction-npc-malnourishment.patch
+++ b/jc_stop-non-faction-npc-malnourishment.patch
@@ -17,7 +17,7 @@
static constexpr float MAX_FLOAT = 5000000000.0f;
@@ -3856,6 +3864,13 @@
// TODO: Remove this and let player "exploit" hungry NPCs
- set_stored_kcal( max_stored_kcal() );
+ set_hunger( 0 );
set_thirst( 0 );
+ vitamin_set( vitamin_calcium, 0 );
+ vitamin_set( vitamin_iron, 0 );
@@ -27,5 +27,5 @@
+ vitamin_set( vitamin_mutant_toxin, 0 );
+ vitamin_set( vitamin_bad_food, 0 );
}
- return false;
- }
+ } else {
+ for( const auto &food_item : inv_food ) {