monsters::lose_energy() now takes optional paramaters to multiply and/or

divide (rounded up) the amount of energy lost.

When a monster's attack is warded off the energy consumed is half that of what the attack would normally have taken, a change from it not taking any energy at all.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5249 c06c8d41-db1a-0410-9941-cceddc491573

Created by  zelgadis  on May 25, 2008
U5E476KITX52LCQEDW7OYSEJJS3B7624LHAUFENVMNZM76OAFJ6QC
Change contents