git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7232 c06c8d41-db1a-0410-9941-cceddc491573
ZZCDMQ2W5QDHGTW3SA2PCMXIBBDMMTUBO4NHGYHXGXRBU4BO3CKAC
TGJZXTUIAKCFZQJ54ZQEBGFBVZSJCAX6AWDRSH3TP7UJRLGUM5SAC
PI5BATR2SER3RFE76IUGHM2AGXVFOUM3PLU7WC2K2Q2BA5K2E73QC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
KAOE5HB3THUKVGFZRO5EZESHEB3Q34WUO5DFMLWIKOBF47LZTIYAC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
FLAGBNUNSIQNFDN53CDWABJRTTFWDL4PG34AI474ZKPXDEPYHOAQC
GSJA56E3ORVIBCBA6T6WU2HE4DCLJ6NZPW76O7L54N4CYPKLJOWQC
QS3ZRS3E6KL3YJHPKYEWCWJYRBJSXD5OOYF6Y25HZVECGPJRDB5QC
// Simple cases for scroll burns.
if (beam.flavour == BEAM_LAVA || beam.name == "hellfire")
expose_player_to_element(BEAM_LAVA, burn_power);
// More complex (geez..)
if (beam.flavour == BEAM_FIRE && beam.name != "ball of steam")
expose_player_to_element(BEAM_FIRE, burn_power);
// Potions exploding.
if (beam.flavour == BEAM_COLD)
expose_player_to_element(BEAM_COLD, burn_power);
if (beam.flavour == BEAM_ACID)
splash_with_acid(5);
if (affect_items)
{
// Simple cases for scroll burns.
if (beam.flavour == BEAM_LAVA || beam.name == "hellfire")
expose_player_to_element(BEAM_LAVA, burn_power);
// More complex (geez..)
if (beam.flavour == BEAM_FIRE && beam.name != "ball of steam")
expose_player_to_element(BEAM_FIRE, burn_power);
// Spore pops.
if (beam.in_explosion_phase && beam.flavour == BEAM_SPORE)
expose_player_to_element(BEAM_SPORE, burn_power);
// Potions exploding.
if (beam.flavour == BEAM_COLD)
expose_player_to_element(BEAM_COLD, burn_power);
if (beam.flavour == BEAM_ACID)
splash_with_acid(5);