Home
last modified time | relevance | path

Searched refs:effect_sleep (Results 1 – 25 of 38) sorted by relevance

12

/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tools/clang-tidy-plugin/test/
H A Dstatic-string_id-constants.cpp33 const efftype_id effect_sleep( "sleep" ); variable
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tools/clang-tidy-plugin/test/
H A Dstatic-string_id-constants.cpp33 const efftype_id effect_sleep( "sleep" ); variable
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/
H A Dsuffer.cpp99 static const efftype_id effect_sleep( "sleep" ); variable
374 if( one_turn_in( 6_hours ) && !has_effect( effect_sleep ) ) { in suffer_from_chemimbalance()
616 ( has_effect( effect_sleep ) ? 10 : 1 ) ) ) { in suffer_from_asthma()
666 if( has_effect( effect_sleep ) ) { in suffer_from_asthma()
895 if( has_effect( effect_sleep ) ) { in suffer_from_sunburn()
1297 if( one_turn_in( 15_seconds ) && !has_effect( effect_sleep ) ) { in suffer_from_stimulants()
1676 if( has_effect( effect_sleep ) ) { in mend()
H A Dplayer_hardcoded_effects.cpp94 static const efftype_id effect_sleep( "sleep" ); variable
392 if( !msg.empty() && !u.has_effect( effect_sleep ) && one_in( msg_chance ) ) { in apply()
468 if( !u.has_effect( effect_sleep ) && one_in( 2400 ) ) { in eff_fun_hot()
528 bool sleeping = has_effect( effect_sleep ); in hardcoded_effects()
1277 } else if( id == effect_sleep ) { in hardcoded_effects()
1485 const bool asleep = has_effect( effect_sleep ); in hardcoded_effects()
H A Dtalker_npc.cpp48 static const efftype_id effect_sleep( "sleep" ); variable
149 if( me_npc->has_effect( effect_sleep ) || me_npc->has_effect( effect_lying_down ) ) { in get_topics()
H A Dweather.cpp51 static const efftype_id effect_sleep( "sleep" ); variable
438 if( !player_character.has_effect( effect_sleep ) && !player_character.is_deaf() ) { in weather_sound()
H A Dsounds.cpp76 static const efftype_id effect_sleep( "sleep" ); variable
453 if( p->has_effect( effect_sleep ) ) { in process_sound_markers()
501 if( !p->has_effect( effect_sleep ) && p->has_effect( effect_alarm_clock ) && in process_sound_markers()
H A Davatar.cpp89 static const efftype_id effect_sleep( "sleep" ); variable
1003 if( has_effect( effect_sleep ) ) { in wake_up()
1004 if( calendar::turn - get_effect( effect_sleep ).get_start_time() > 2_hours ) { in wake_up()
H A Dnpctalk_funcs.cpp89 static const efftype_id effect_sleep( "sleep" ); variable
436 p.remove_effect( effect_sleep ); in wake_up()
H A Dactivity_actor.cpp80 static const efftype_id effect_sleep( "sleep" ); variable
1526 if( who.has_effect( effect_sleep ) ) { in do_turn()
1531 if( !who.has_effect( effect_sleep ) ) { in do_turn()
1549 if( !who.has_effect( effect_sleep ) ) { in finish()
H A Dcharacter.cpp205 static const efftype_id effect_sleep( "sleep" ); variable
938 if( has_effect( effect_sleep ) && !has_effect( effect_narcosis ) ) { in react_to_felt_pain()
5868 effect &sleep = get_effect( effect_sleep ); in update_needs()
5990 const effect &sleep = get_effect( effect_sleep ); in calc_needs_rates()
6376 return has_effect( effect_sleep ) && get_kcal_percent() > 0.8f && in is_hibernating()
6440 const bool has_sleep = has_effect( effect_sleep ); in update_bodytemp()
7917 return has_effect( effect_sleep ) ? 1.0f : 0.0f; in rest_quality()
9070 if( has_effect( effect_sleep ) ) { in wake_up()
9072 get_effect( effect_sleep ).set_duration( 0_turns ); in wake_up()
10230 if( has_effect( effect_sleep ) ) { in on_hurt()
[all …]
H A Dplayer.cpp91 static const efftype_id effect_sleep( "sleep" ); variable
341 !has_effect( effect_sleep ) && !has_effect( effect_narcosis ) ) { in process_turn()
H A Dcreature.cpp74 static const efftype_id effect_sleep( "sleep" ); variable
1552 return has_effect( effect_sleep ) || has_effect( effect_lying_down ) || in in_sleep_state()
H A Dbionics.cpp113 static const efftype_id effect_sleep( "sleep" ); variable
2280 patient.add_effect( effect_sleep, duration ); in uninstall_bionic()
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/
H A Dsuffer.cpp99 static const efftype_id effect_sleep( "sleep" ); variable
374 if( one_turn_in( 6_hours ) && !has_effect( effect_sleep ) ) { in suffer_from_chemimbalance()
616 ( has_effect( effect_sleep ) ? 10 : 1 ) ) ) { in suffer_from_asthma()
666 if( has_effect( effect_sleep ) ) { in suffer_from_asthma()
895 if( has_effect( effect_sleep ) ) { in suffer_from_sunburn()
1297 if( one_turn_in( 15_seconds ) && !has_effect( effect_sleep ) ) { in suffer_from_stimulants()
1676 if( has_effect( effect_sleep ) ) { in mend()
H A Dplayer_hardcoded_effects.cpp94 static const efftype_id effect_sleep( "sleep" ); variable
392 if( !msg.empty() && !u.has_effect( effect_sleep ) && one_in( msg_chance ) ) { in apply()
468 if( !u.has_effect( effect_sleep ) && one_in( 2400 ) ) { in eff_fun_hot()
528 bool sleeping = has_effect( effect_sleep ); in hardcoded_effects()
1277 } else if( id == effect_sleep ) { in hardcoded_effects()
1485 const bool asleep = has_effect( effect_sleep ); in hardcoded_effects()
H A Dtalker_npc.cpp48 static const efftype_id effect_sleep( "sleep" ); variable
149 if( me_npc->has_effect( effect_sleep ) || me_npc->has_effect( effect_lying_down ) ) { in get_topics()
H A Dweather.cpp51 static const efftype_id effect_sleep( "sleep" ); variable
438 if( !player_character.has_effect( effect_sleep ) && !player_character.is_deaf() ) { in weather_sound()
H A Dsounds.cpp76 static const efftype_id effect_sleep( "sleep" ); variable
453 if( p->has_effect( effect_sleep ) ) { in process_sound_markers()
501 if( !p->has_effect( effect_sleep ) && p->has_effect( effect_alarm_clock ) && in process_sound_markers()
H A Davatar.cpp89 static const efftype_id effect_sleep( "sleep" ); variable
1003 if( has_effect( effect_sleep ) ) { in wake_up()
1004 if( calendar::turn - get_effect( effect_sleep ).get_start_time() > 2_hours ) { in wake_up()
H A Dnpctalk_funcs.cpp89 static const efftype_id effect_sleep( "sleep" ); variable
436 p.remove_effect( effect_sleep ); in wake_up()
H A Dactivity_actor.cpp80 static const efftype_id effect_sleep( "sleep" ); variable
1526 if( who.has_effect( effect_sleep ) ) { in do_turn()
1531 if( !who.has_effect( effect_sleep ) ) { in do_turn()
1549 if( !who.has_effect( effect_sleep ) ) { in finish()
H A Dcharacter.cpp205 static const efftype_id effect_sleep( "sleep" ); variable
938 if( has_effect( effect_sleep ) && !has_effect( effect_narcosis ) ) { in react_to_felt_pain()
5868 effect &sleep = get_effect( effect_sleep ); in update_needs()
5990 const effect &sleep = get_effect( effect_sleep ); in calc_needs_rates()
6376 return has_effect( effect_sleep ) && get_kcal_percent() > 0.8f && in is_hibernating()
6440 const bool has_sleep = has_effect( effect_sleep ); in update_bodytemp()
7917 return has_effect( effect_sleep ) ? 1.0f : 0.0f; in rest_quality()
9070 if( has_effect( effect_sleep ) ) { in wake_up()
9072 get_effect( effect_sleep ).set_duration( 0_turns ); in wake_up()
10230 if( has_effect( effect_sleep ) ) { in on_hurt()
[all …]
H A Dplayer.cpp91 static const efftype_id effect_sleep( "sleep" ); variable
341 !has_effect( effect_sleep ) && !has_effect( effect_narcosis ) ) { in process_turn()
H A Dcreature.cpp74 static const efftype_id effect_sleep( "sleep" ); variable
1552 return has_effect( effect_sleep ) || has_effect( effect_lying_down ) || in in_sleep_state()

12