summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-wpnench.h
Commit message (Collapse)AuthorAgeFilesLines
* Symbolise.Shmuale Mark2014-07-041-0/+2
|
* Don't crash when unwielding a temp-branded weapon.Neil Moore2014-06-121-1/+1
|
* Allow temporary branding to go over a permanent brand.Shmuale Mark2014-06-121-0/+2
| | | | | | | Toting around an unbranded weapon just to be able to swap to it is no fun, and not even that much more of a difficulty; maybe it just means getting pain out takes 0.7 more turns or so. You still can't overwrite artefacts, of course.
* Don't miscast when the spell can still be aborted (#4281).Raphael Langella2011-07-211-3/+4
| | | | | | | | | | | | | | | | This is a significant refactoring. All the spells now return a spret_type and take a boolean which tells if the spell has actually failed. Also some code clean up in _do_cast(). All spells have their own function now. Also fix the following bugs: * Properly abort fire storm if forced casting on a wall with '!'. Also put a message for forced out of range casting (like cloud spells). * Casting summon elemental on an invisible monster aborted with no cost. * if a summoning spell aborts because create_monster fails, you don't lose a turn. You still get a chance of miscast in this rare case. * s2s, tukima and branding spells abort properly instead of consuming turn and MP when player is not wielding appropriate object. * s2s abort message when wielding a non-snakable.
* Redistribute ench. spell code into self/wpn enchantment.Johanna Ploog2010-08-221-0/+12
Remove spells1.* and spells2.*.