@@ -100,7 +100,6 @@ static const efftype_id effect_nausea( "nausea" );
100
100
static const efftype_id effect_paincysts ( " paincysts" );
101
101
static const efftype_id effect_poison ( " poison" );
102
102
static const efftype_id effect_tapeworm ( " tapeworm" );
103
- static const efftype_id effect_took_thorazine ( " took_thorazine" );
104
103
static const efftype_id effect_visuals ( " visuals" );
105
104
106
105
static const flag_id json_flag_ALLERGEN_CHEESE ( " ALLERGEN_CHEESE" );
@@ -181,7 +180,6 @@ static const trait_id trait_PROJUNK2( "PROJUNK2" );
181
180
static const trait_id trait_RUMINANT ( " RUMINANT" );
182
181
static const trait_id trait_SAPROPHAGE ( " SAPROPHAGE" );
183
182
static const trait_id trait_SAPROVORE ( " SAPROVORE" );
184
- static const trait_id trait_SCHIZOPHRENIC ( " SCHIZOPHRENIC" );
185
183
static const trait_id trait_SLIMESPAWNER ( " SLIMESPAWNER" );
186
184
static const trait_id trait_SPIRITUAL ( " SPIRITUAL" );
187
185
static const trait_id trait_STIMBOOST ( " STIMBOOST" );
@@ -1173,9 +1171,7 @@ static bool eat( item &food, Character &you, bool force )
1173
1171
you.add_msg_player_or_npc ( _ ( " You assimilate your %s." ), _ ( " <npcname> assimilates a %s." ),
1174
1172
food.tname () );
1175
1173
} else if ( drinkable ) {
1176
- if ( you.has_trait ( trait_SCHIZOPHRENIC ) &&
1177
- !you.has_effect ( effect_took_thorazine ) && one_in ( 50 ) && !spoiled && food.goes_bad () &&
1178
- you.is_avatar () ) {
1174
+ if ( you.is_avatar () && you.schizo_symptoms ( 50 ) && !spoiled && food.goes_bad () ) {
1179
1175
1180
1176
add_msg ( m_bad, _ ( " Ick, this %s (rotten) doesn't taste so good…" ), food.tname () );
1181
1177
add_msg ( _ ( " You drink your %s (rotten)." ), food.tname () );
@@ -1184,9 +1180,7 @@ static bool eat( item &food, Character &you, bool force )
1184
1180
food.tname () );
1185
1181
}
1186
1182
} else if ( chew ) {
1187
- if ( you.has_trait ( trait_SCHIZOPHRENIC ) &&
1188
- !you.has_effect ( effect_took_thorazine ) && one_in ( 50 ) && !spoiled && food.goes_bad () &&
1189
- you.is_avatar () ) {
1183
+ if ( you.is_avatar () && you.schizo_symptoms ( 50 ) && !spoiled && food.goes_bad () ) {
1190
1184
1191
1185
add_msg ( m_bad, _ ( " Ick, this %s (rotten) doesn't taste so good…" ), food.tname () );
1192
1186
add_msg ( _ ( " You eat your %s (rotten)." ), food.tname () );
0 commit comments