MCPcopy Create free account
hub / github.com/crawl/crawl / _vortex_age

Function _vortex_age

crawl-ref/source/spl-vortex.cc:218–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static int _vortex_age(const actor *caster)
219{
220 const string name = POLAR_VORTEX_KEY;
221 if (caster->props.exists(name.c_str()))
222 return you.elapsed_time - caster->props[name.c_str()].get_int();
223 return 100; // for permanent vortices
224}
225
226// time needed to reach the given radius
227static int _age_needed(int r)

Callers 1

polar_vortex_damageFunction · 0.85

Calls 2

existsMethod · 0.80
get_intMethod · 0.80

Tested by

no test coverage detected