Shoals Surfer
Posts: 257
Joined: Tuesday, 24th September 2013, 17:52
Questions, Explanations, Howtos
Shoals Surfer
Posts: 257
Joined: Tuesday, 24th September 2013, 17:52
Pandemonium Purger
Posts: 1298
Joined: Wednesday, 11th April 2012, 02:42
Location: Sydney, Australia
static void _describe_glow(status_info* inf)
{
const int cont = get_contamination_level();
if (cont > 0)
{
inf->light_colour = DARKGREY;
if (cont > 1)
inf->light_colour = _bad_ench_colour(cont, 3, 4);
if (cont > 1
#if TAG_MAJOR_VERSION == 34
|| you.species != SP_DJINNI
#endif
)
inf->light_text = "Contam";
}
if (cont > 0)
{
inf->short_text =
(cont == 1) ? "very slightly " :
(cont == 2) ? "slightly " :
(cont == 3) ? "" :
(cont == 4) ? "moderately " :
(cont == 5) ? "heavily "
: "really heavily ";
inf->short_text += "contaminated";
inf->long_text = describe_contamination(cont);
}
}
static void _describe_glow(status_info* inf)
{
const int cont = get_contamination_level();
if (cont > 0)
{
inf->light_colour = DARKGREY;
if (cont > 1)
inf->light_colour = _bad_ench_colour(cont, 3, 4);
if (cont > 1
#if TAG_MAJOR_VERSION == 34
|| you.species != SP_DJINNI
#endif
)
inf->light_text = make_stringf("Contam %d", (int)you.magic_contamination);
}
if (cont > 0)
{
inf->short_text =
(cont == 1) ? "very slightly " :
(cont == 2) ? "slightly " :
(cont == 3) ? "" :
(cont == 4) ? "moderately " :
(cont == 5) ? "heavily "
: "really heavily ";
inf->short_text += "contaminated";
inf->long_text = describe_contamination(cont);
}
}
Shoals Surfer
Posts: 257
Joined: Tuesday, 24th September 2013, 17:52
Pandemonium Purger
Posts: 1298
Joined: Wednesday, 11th April 2012, 02:42
Location: Sydney, Australia
skjarl wrote:That gave me precisely what I wanted and it's awesome. Thank you, Patashu. I'm not sure how I missed that in player.cc. I think I had my case sensitivity turned on when I was searching.
Pandemonium Purger
Posts: 1337
Joined: Saturday, 7th July 2012, 02:28
Location: Limbo
Shoals Surfer
Posts: 257
Joined: Tuesday, 24th September 2013, 17:52
Users browsing this forum: No registered users and 3 guests