summaryrefslogtreecommitdiff
path: root/jc_stop-non-faction-npc-malnourishment.patch
diff options
context:
space:
mode:
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 ) {