summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-goditem.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename antimagic() -> debuff_player().Shmuale Mark2014-07-061-1/+1
|
* Partially refactor cast_healing()Nicholas Feinberg2014-06-261-3/+6
|
* The great mon-stuff migration.Shmuale Mark2014-06-221-0/+1
| | | | | | | | | A good deal of functions move to the two new files, mon-poly and mon-message. Of the others, some go to where they are used, some to mon-util, and a few are made member methods of monster. This probably breaks Xcode compilation, and I'm not able to test the changes I made to MSVC that will (hopefully) keep it working.
* Staticalise identify()Neil Moore2014-05-021-1/+0
|
* Remove another unused argument to item scroll functions.Neil Moore2014-05-021-2/+1
|
* Remove an unused argument from identify().Shmuale Mark2014-05-021-1/+1
|
* Make curse armour/jewellery always work as if worshipping AshenzariChris Campbell2014-03-031-1/+1
| | | | Since Ashenzari should be the only way to get hold of them now.
* Finish making all scrolls read ID.Steve Melenchuk2014-03-011-1/+2
| | | | | | This includes identify, enchant armour, and recharging. A lot of now-unnecessary code goes away with this.
* Use std namespace.Raphael Langella2012-08-261-3/+3
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Remove scrolls of detect curse.elliptic2012-06-091-1/+0
| | | | | | | | | | | | | | | These scrolls simultaneously encouraged scummy behavior (collecting dozens of weapons/armour to detect curses on all of them at once) and were pretty much junk after early game (because remove curse is common and you probably don't actually want to try out every weapon in the game because of distortion anyway). I tried to change other scroll generation probabilities as little as possible, but this means something like a 3-5% increase for most scrolls, and about 15% for remove curse (as very partial compensation). The scroll generation code is a bit cleaner now. Upgraded games have detect curse converted to remove curse.
* Remove now-unused detect_secret_doors().David Lawrence Ramsey2012-03-131-1/+0
|
* Added more descriptive messages for failing to pacify, as detailed in #0004591Matthew A. Burton2012-03-101-1/+1
|
* Tweak cast_detect_secret_doors() into detect_secret_doors().David Lawrence Ramsey2012-02-271-1/+1
| | | | This makes it consistent with the other detect_* functions.
* Ely targetting: Target wounded friends and hostiles that can be pacified.ldierk2011-09-251-0/+1
|
* Don't miscast when the spell can still be aborted (#4281).Raphael Langella2011-07-211-1/+0
| | | | | | | | | | | | | | | | 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.
* Fix some messages for scrolls of RC and curse foo.Raphael Langella2011-04-201-2/+2
|
* Allow Ashenzarites to choose which piece of armour/jewellery to curse.Raphael Langella2011-04-011-0/+1
| | | | | | Only once the scroll is known. They can also cancel it and it does automatically if you're not wearing any elligible item. Non-Ash worshippers can still use them any time to victory dance spellcasting.
* Allow Ashenzarites to cancel scrolls of remove curse.Raphael Langella2011-04-011-1/+1
| | | | | | | | But only once the scroll is known. When unknown, you can't choose anymore. Behaviour is the same as non-Ash worshippers. Allowing to choose even with unknown scrolls was problematic. If you had no cursed items and read remove curse, you got a message about not wearing any cursed items, but the scroll remained unidentified.
* Remove the Stonemail spell.David Lawrence Ramsey2011-03-141-2/+0
|
* Clean up smiting code to match the interface elsewhere.David Lawrence Ramsey2011-02-241-1/+1
| | | | | | | It now uses a monster directly instead of a position. Also, move messages about invisible/submerged monsters' not being there (used in smiting and elsewhere) to the canned message list.
* Allow cancelling some scrolls without consuming themArxale2011-01-261-1/+1
|
* Make the prototype for cast_smiting() match the function.David Lawrence Ramsey2010-11-041-1/+1
|
* Ashenzari: for scrolls of Remove Curse, ask for a set of worn items to uncurse.Adam Borowski2010-10-111-1/+1
|
* Rename class "monsters" to "monster".Robert Vollmert2010-09-051-1/+1
|
* Rename variables named "monster" to "mons" or similar.Robert Vollmert2010-09-051-1/+1
|
* Redistribute ench. spell code into self/wpn enchantment.Johanna Ploog2010-08-221-0/+1
| | | | Remove spells1.* and spells2.*.
* Slight changes in the spell code grouping.Johanna Ploog2010-08-221-0/+2
| | | | | Move Stonemail (currently Xom-only) -> spl-goditem.cc, and Abjuration -> spl-summoning.cc.
* For clarity, rename spl-other -> spl-goditem.Johanna Ploog2010-08-221-0/+23