MCPcopy Index your code
hub / github.com/NetHack/NetHack / temperature_change_msg

Function temperature_change_msg

src/do.c:2015–2028  ·  view source on GitHub ↗

give a message when the level temperature is different from previous */

Source from the content-addressed store, hash-verified

2013
2014/* give a message when the level temperature is different from previous */
2015staticfn void
2016temperature_change_msg(schar prev_temperature)
2017{
2018 if (prev_temperature != svl.level.flags.temperature) {
2019 if (svl.level.flags.temperature)
2020 hellish_smoke_mesg();
2021 else if (prev_temperature > 0)
2022 pline_The("heat %s gone.",
2023 In_hell(&u.uz0)
2024 ? "and smoke are" : "is");
2025 else if (prev_temperature < 0)
2026 You("are out of the cold.");
2027 }
2028}
2029
2030/* usually called from goto_level(); might be called from Sting_effects() */
2031void

Callers 1

goto_levelFunction · 0.85

Calls 4

hellish_smoke_mesgFunction · 0.85
pline_TheFunction · 0.85
In_hellFunction · 0.85
YouFunction · 0.85

Tested by

no test coverage detected