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

Function _setup_prism_explosion

crawl-ref/source/mon-explode.cc:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static void _setup_prism_explosion(bolt& beam, const monster& origin)
148{
149 _setup_base_explosion(beam, origin);
150 beam.flavour = BEAM_MMISSILE;
151 beam.damage = prism_damage(origin.get_hit_dice(), origin.prism_charge == 2);
152 beam.name = "blast of energy";
153 beam.colour = MAGENTA;
154 beam.ex_size = origin.prism_charge;
155 beam.origin_spell = SPELL_FULMINANT_PRISM;
156 dprf("prism hd: %d, damage: %dd%d", origin.get_hit_dice(),
157 beam.damage.num, beam.damage.size);
158}
159
160static void _setup_shadow_prism_explosion(bolt& beam, const monster& origin)
161{

Callers

nothing calls this directly

Calls 4

_setup_base_explosionFunction · 0.85
prism_damageFunction · 0.85
dprfFunction · 0.85
get_hit_diceMethod · 0.45

Tested by

no test coverage detected