blob: 096a5a8d2158aad4cf163f91e1072c5fbefe2e96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- a/src/npcmove.cpp
+++ b/src/npcmove.cpp
@@ -116,6 +116,14 @@
static const itype_id itype_oxygen_tank( "oxygen_tank" );
static const itype_id itype_UPS( "UPS" );
+const vitamin_id vitamin_calcium( "calcium" );
+const vitamin_id vitamin_iron( "iron" );
+const vitamin_id vitamin_vitA( "vitA" );
+const vitamin_id vitamin_vitB( "vitB" );
+const vitamin_id vitamin_vitC( "vitC" );
+const vitamin_id vitamin_mutant_toxin( "mutant_toxin" );
+const vitamin_id vitamin_bad_food( "bad_food" );
+
static constexpr float NPC_DANGER_VERY_LOW = 5.0f;
static constexpr float NPC_DANGER_MAX = 150.0f;
static constexpr float MAX_FLOAT = 5000000000.0f;
@@ -3856,6 +3864,13 @@
// TODO: Remove this and let player "exploit" hungry NPCs
set_hunger( 0 );
set_thirst( 0 );
+ vitamin_set( vitamin_calcium, 0 );
+ vitamin_set( vitamin_iron, 0 );
+ vitamin_set( vitamin_vitA, 0 );
+ vitamin_set( vitamin_vitB, 0 );
+ vitamin_set( vitamin_vitC, 0 );
+ vitamin_set( vitamin_mutant_toxin, 0 );
+ vitamin_set( vitamin_bad_food, 0 );
}
} else {
for( const auto &food_item : inv_food ) {
|