summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Move *_res(ist)_magic to relevant classes, provide actor interface.Vsevolod Kozlov2009-11-051-3/+3
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Disintegration can be very messy.Stefan O'Rear2009-11-041-11/+44
|
* Move random_near_space into new teleport.cc.Robert Vollmert2009-11-021-0/+1
|
* Split up monstuff.ccMatthew Cline2009-11-011-1/+1
| | | | | | | A lot of monstuff.cc was moved into mon-abil.cc (monster abilities), mon-act.cc (the main monster loop), mon-behv.cc (monster behaviour) and mon-cast.cc (monster spells). mstuff2.cc was completely merged into other files.
* Merge mons_holiness() into monster::holiness(), and add an is_unholy()David Lawrence Ramsey2009-10-311-2/+2
| | | | convenience function.
* Combine mons_res_foo(monsters *m) into monsters::res_foo()abrahamwl2009-10-311-3/+3
| | | | | | | | | | ...and replace all references to mons_res_foo() with res_foo(). Where "foo" is one of the many different things monsters can resist that happened to have a function of that format. TGfR! (Thank God for Regex!) Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-241-5/+5
|
* Also briefly flash red when Igniting Poison.Adam Borowski2009-10-251-0/+9
|
* Give a message when a monster is affected by Ignite Poison.Adam Borowski2009-10-251-0/+1
|
* Move player_see_invis into player class.Robert Vollmert2009-10-221-2/+2
|
* Remove tabs, and add minor cosmetic fixes.David Lawrence Ramsey2009-10-201-22/+20
|
* gods: added "Chronos", the slow godSteven Noonan2009-10-201-0/+26
| | | | | Signed-off-by: Brendan Hickey <brendan@bhickey.net> Acked-by: Steven Noonan <steven@uplinklabs.net>
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Naming consistency.Robert Vollmert2009-10-171-3/+3
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-161-1/+1
|
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-3/+3
|
* Some find_ray related cleanup.Robert Vollmert2009-10-161-2/+1
| | | | | Introduce a function exists_ray when the ray is not actually needed. Also factor out part of _blocked_ray from directn.cc to ray_blocker.
* Fix bug [2874791], Merfolk stat change issuesCharles Otto2009-10-161-4/+9
| | | | | | | | | | | | | Fix some conditions causing permanent stat loss or gain for Mf with stat modifying boots. Unmerge boots when the player starts levitating or flying on a water square. Use move_player_to_grid in blink, semi-controlled blink, and teleportation. Also fix a bug where Mf could random teleport into solid walls.
* Protect features from damage with marker propsMatthew Cline2009-10-161-0/+12
| | | | | | | | | | | | | | | | A marker can protect the feature it's on from damage by: * Setting property "veto_fragmentation" to "veto" to protect it from fragmentation (Lee's Rapid Deconstruction spell). * Setting property "veto_shattering" to "veto" to protect it from shattering (Shattering spell). * Setting property "veto_disintegration" to "veto" to protect it from disintegration and nuking. TODO: Document this. I'm not sure where to put info on this in docs/develop/level_design.txt
* Remove fallback calculation from find_ray.Robert Vollmert2009-10-151-1/+1
| | | | | | | | | | There is now a separate fallback_ray() that needs to be called explicitly. I've manually converted uses of find_ray with allow_fallback == true. find_ray with allow_fallback set always returned true, yet there were a number of places that used the return value, in particular in directn.cc. I'll check these later.
* Rename giant brown frog to giant toad (Eronarn). Tiles build not tested.Eino Keskitalo2009-10-151-1/+1
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-2/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.
* Split LOS code from view.cc.Robert Vollmert2009-10-081-0/+1
| | | | | | | | | los.cc: basic raycasting algorithm; losight(), see_grid() etc. ray.cc: ray_def implementation. mon-los.cc: monster_los This includes adding a bunch of #includes; there's probably some obsolete includes of view.h now.
* Mutagenic fog. Comes from Evaporate and fog generators. (due)Adam Borowski2009-10-071-0/+9
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* * Also allow Maurice to steal the occasional spellbook or piece ofj-p-e-g2009-09-241-0/+3
| | | | | | | | | | | | | jewellery. * As per FR 1937144, leave a purple cloud if the player or a monster blinks or teleports away. For some reason this doesn't yet work correctly with scrolls of blinking, even though wizard blink (which uses the same function) does work. -- (from svn) Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* * Fix 2862312: examination of items in shops not working after buyingj-p-e-g2009-09-211-1/+7
| | | | | | | | | | | | | | | something * FR 2836364 : Make controlled blink contaminate the player. * Fix 2841232: display "very slow" in the % screen. * FR 2858960 : Re-add mouseover descriptions for previously seen (but not detected) features out of sight, and for plain floor the stash description like when using 'x'. * Disallow placement of corpses within walls, and allow rock worms to leave corpses elsewhere. * Minor tweaks to the documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10766 c06c8d41-db1a-0410-9941-cceddc491573
* Smarter exclusions, yay!j-p-e-g2009-09-151-1/+1
| | | | | | | | | | | | | | | | | | * Exclusions are now treated similarly to annotations and automatically added to the overmap (with the monster name if centered on a monster). * Exclusions remember whether they were placed automatically and if so, what monster triggered it. * If a grid that was previously autoexcluded comes back into sight and no longer contains the monster that triggered the autoexclusion (dead, moved away or invisible), the autoexclusion is removed again. I updated the tags, so it should be save compatible but I'm not making any promises. Also fix the Wild magic card not being documented correctly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10679 c06c8d41-db1a-0410-9941-cceddc491573
* Use Jude's nicer messages for the Phase Shift spell.j-p-e-g2009-08-161-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10555 c06c8d41-db1a-0410-9941-cceddc491573
* As per FR 2837779, change Forescry to Phase Shift (Trl). Same level,j-p-e-g2009-08-141-8/+8
| | | | | | | | | | same effect, but different name, description, and messages. Also, See Invisible is now pure Ench, and has been moved into the Book of Enchantments. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10548 c06c8d41-db1a-0410-9941-cceddc491573
* * Add support for packaging save files with tar. (Patch by Trent W. Buck.)j-p-e-g2009-07-251-1/+1
| | | | | | | | * Fix random blink placing the player in dangerous clouds. * Fix message when trying to place Conjure Flame in a wax wall. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10397 c06c8d41-db1a-0410-9941-cceddc491573
* Detected secret doors are now treated as a distinct new door type, soj-p-e-g2009-07-111-0/+2
| | | | | | | | | | | | that stupid monsters will continue to ignore them as long as they've never been opened. Shifts wall and door types of existing save files. Also apply patch by one the "nobodies" to make bloody tiles show up again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10167 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2815574: Venom card not waking monsters.j-p-e-g2009-07-041-1/+9
| | | | | | | | | | | | | Fix 2815185: Not updating wield display for rotting chunks. Fix 2812496: Wrong message when attempting to chop with unwieldable weapons. (Small patch by rafalmaj.) Fix 2811476: Turn autopickup back on when gaining see invisible (mutation, ring, artefact, spell). Fix 2806314: Remove coinflip() for Sandblast range. Wielding rocks now guarantees range of 2. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10096 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more minor cosmetic fixes.dolorous2009-05-151-5/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9773 c06c8d41-db1a-0410-9941-cceddc491573
* Display a message when renewing TSO's divine shield, and redraw armor dolorous2009-05-151-2/+4
| | | | | | | class when doing so in case it's begun to fade. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9772 c06c8d41-db1a-0410-9941-cceddc491573
* Remove handling of unseen horror corpses in Fulsome Distillation, as dolorous2009-04-231-1/+0
| | | | | | | unseen horrors don't leave corpses. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9683 c06c8d41-db1a-0410-9941-cceddc491573
* Per jpeg's suggestion, add a "desecrate orcish remains" conduct for dolorous2009-03-151-0/+5
| | | | | | | | | | | Beogh. This will cause a small piety hit, but no penance, for butchering orc corpses, or for using non-area necromantic spells on orcish remains which can (a) destroy them without creating zombified orcs, or (b) turn them non-orcish (Fulsome Distillation, Sublimation of Blood, Bone Shards, and Twisted Resurrection). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9498 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2009-03-141-17/+16
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9482 c06c8d41-db1a-0410-9941-cceddc491573
* Remove unused god abilities.dolorous2009-03-121-24/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9421 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more minor cosmetic fixes.dolorous2009-03-111-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9420 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak duration messages a bit, and mention the risk of magic dolorous2009-03-091-1/+1
| | | | | | | | contamination in the description of the Extension spell, as suggested in [1946662]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9405 c06c8d41-db1a-0410-9941-cceddc491573
* FR [2163236]: Passwall should wake monsters it displaces.haranp2009-03-061-1/+1
| | | | | | | Fix Passwall instadeaths not working for deep dwarves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9344 c06c8d41-db1a-0410-9941-cceddc491573
* Remove more unused static functions.dolorous2009-02-281-31/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9277 c06c8d41-db1a-0410-9941-cceddc491573
* Axe some more obsolete functions as well as the rotting ability thatj-p-e-g2009-02-271-387/+0
| | | | | | | isn't used anywhere. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9256 c06c8d41-db1a-0410-9941-cceddc491573
* Remove all traces of TRAN_AIR and TRAN_SERPENT_OF_HELL, the latterj-p-e-g2009-02-271-2/+0
| | | | | | | together with the corresponding unused ability. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9244 c06c8d41-db1a-0410-9941-cceddc491573
* Change Transmutation -> Transmutations for consistency withj-p-e-g2009-02-221-1/+1
| | | | | | | Translocations and because it sounds a bit better. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9150 c06c8d41-db1a-0410-9941-cceddc491573
* Lots more cleanups. haranp2009-02-151-21/+18
| | | | | | | | | Remove the sound-strength #defines because they're not used anymore (except for SL_SPLASH, which has been replaced by its value.) Change some #defines to const variables. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9087 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a great many cases where mgrd is accessed directly in favourharanp2009-02-131-130/+102
| | | | | | | | | | | of monster_at(). The hope is to eventually remove mgrd completely (in favour of scanning through the monster list, or a different datastructure which gets updated automatically when monsters move), and thus fix all the mgrd-out-of-sync bugs in one fell swoop. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9056 c06c8d41-db1a-0410-9941-cceddc491573