MCPcopy Create free account
hub / github.com/NetHack/NetHack / hellish_smoke_mesg

Function hellish_smoke_mesg

src/do.c:2002–2012  ·  view source on GitHub ↗

give a message when entering a Gehennom level other than the Valley; also given if restoring a game in that situation */

Source from the content-addressed store, hash-verified

2000/* give a message when entering a Gehennom level other than the Valley;
2001 also given if restoring a game in that situation */
2002void
2003hellish_smoke_mesg(void)
2004{
2005 if (svl.level.flags.temperature)
2006 pline("It is %s here.",
2007 svl.level.flags.temperature > 0 ? "hot" : "cold");
2008
2009 if (In_hell(&u.uz) && svl.level.flags.temperature > 0)
2010 You("%s smoke...",
2011 olfaction(gy.youmonst.data) ? "smell" : "sense");
2012}
2013
2014/* give a message when the level temperature is different from previous */
2015staticfn void

Callers 2

welcomeFunction · 0.85
temperature_change_msgFunction · 0.85

Calls 4

In_hellFunction · 0.85
YouFunction · 0.85
olfactionFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected