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

Function invoke_storm_spell

src/artifact.c:2039–2051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2037}
2038
2039staticfn int
2040invoke_storm_spell(struct obj *obj)
2041{
2042 const struct artifact *oart = get_artifact(obj);
2043 int storm = oart->inv_prop == SNOWSTORM ? SPE_CONE_OF_COLD : SPE_FIREBALL;
2044 int skill = spell_skilltype(storm);
2045 int expertise = P_SKILL(skill);
2046
2047 P_SKILL(skill) = P_EXPERT;
2048 (void) spelleffects(storm, FALSE, TRUE);
2049 P_SKILL(skill) = expertise;
2050 return ECMD_TIME;
2051}
2052
2053staticfn int
2054invoke_blinding_ray(struct obj *obj)

Callers 1

arti_invokeFunction · 0.85

Calls 3

get_artifactFunction · 0.85
spell_skilltypeFunction · 0.85
spelleffectsFunction · 0.85

Tested by

no test coverage detected