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