diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-01-30 19:18:48 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-01-30 19:18:48 -0800 |
commit | 8f820735e5cfb8b96bd9f0218d9f70afecf6364a (patch) | |
tree | b468e901707b04dabecc37e86c96c205ad5da22a | |
parent | Fix the kindred patch so that the npc actually spawns. (diff) | |
download | cataclysm-bn-8f820735e5cfb8b96bd9f0218d9f70afecf6364a.tar.xz |
Fix more patch fuzz warnings in fix malnourishment patch.
-rw-r--r-- | jc_stop-non-faction-npc-malnourishment.patch | 6 |
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 ) { |