summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Make many checks for monster (non)existence on squares use monster_at().David Lawrence Ramsey2009-11-051-2/+2
| | | | | | | Not all are changed yet, as there are several index checks still needed for debugging purposes. Also, make many checks for player/monster (non)existence use actor_at().
* Sound overhaul: sound where spell hitsMatthew Cline2009-11-041-1/+5
| | | | | | | | | | Directed spells now do noise where they hit a monster/player, rather than where they're cast (enchantment spells have 0 noise when they hit); casting these spells generates a noise of loudness 1 where the spell caster is. The noise level is hard-coded in beam.cc's zap_data array (and setup by zapping()), and is constant regardless of the amount of damage done or the beam's power. Beam-ish spells generates a seperate sound event for each target hit. Spells which miss generate no noise.
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Make Chain Lightning a monster spell, add an user of it (Nikola).Adam Borowski2009-11-031-1/+1
|
* Greatly upgrade player hellfireStefan O'Rear2009-11-021-0/+5
| | | | It's now smite targetted with maximum 6d26 damage. Have fun.
* Rename "Fling Icicle" to "Throw Icicle".David Ploog2009-11-031-2/+2
|
* 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-1/+1
| | | | convenience function.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Bolt of Iron->Iron Shot, Ice Bolt->Fling Icicleabrahamwl2009-10-291-4/+4
| | | | | | | | | | | | | | | | | | | | Based on FR 1801710 Bolt of Iron and Ice Bolt were both mechanically different from the other "bolts" in that they didn't penetrate targets. In addition, Ice Bolt was very easy to confuse with Bolt of Cold. So they got their names changed to Iron Shot and Fling Icicle, respectively. This change is both external (in the game output) and internal (how the code refers to the spells). This commit also changes the names of the spells in the data files (ie. for tiles) and the names of some data files themselves (tile images). (See the file list.) Note that Lemuel's comment about the concept (and tile art)of "bolt" not fitting with the way the "bolt" spells behave is still valid, but that's another issue. I think this stems from a confusion between lightning "bolts" and crossbow "bolts." Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* (MONS_PROGRAM_BUG || -1) --> MONS_NO_MONSTERMatthew Cline2009-10-271-1/+1
| | | | | | | | | Change MONS_PROGRAM_BUG to MONS_NO_MONSTER when "no monster" is what was meant. Now all instances of MONS_PROGRAM_BUG should indicated some sort of failure or error. Also, fixed some places which were still using -1 instead of MONS_NO_MONSTER.
* Add stochastic torment resistance per dpegStefan O'Rear2009-10-261-1/+1
| | | | | | | | | The mutation comes in three levels and blocks 20%, 40%, or 60% (shown to the user) of torments. Right now, you can cast Symbol of Torment with it; I doubt this is too good. It is on the tier-1 list for demonspawn mutations, and I expect it to be balanced appropriately. Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Get rid of player_monster_visible.Robert Vollmert2009-10-221-1/+1
| | | | | | The special casing for drowning monsters appears to have been obsoloted by checking ENCH_SUBMERGED instead of calling mons_is_submerged.
* Yank some god invocations from religion.cc into godabil.ccAdam Borowski2009-10-221-0/+1
|
* Slightly reduce religion.cc by yanking item-handling stuff to goditem.ccAdam Borowski2009-10-211-0/+1
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Don't cap spell power for failure rate calculations.Robert Vollmert2009-10-181-3/+5
| | | | | | | This means that capped spells continue getting easier to cast after hitting the cap, which is probably how it should be. Fixes 2881204.
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-1/+1
|
* If Xom is making you blink, don't allow it to be a controlled blink.David Lawrence Ramsey2009-10-131-2/+2
|
* Rename Summon Wraiths to Haunt everywhere, for consistency, and adjustDavid Lawrence Ramsey2009-10-131-35/+35
| | | | the tiles accordingly.
* Rename Summon Wraiths to Haunt, make it a targetted spell, necro only,Adam Borowski2009-10-141-1/+1
| | | | that can summon multiple wraiths and ghosts (FR 2865657).
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-3/+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.
* Implement FR 2872334 'don't auto-target neutrals' by replacing most uses of ↵Charles Otto2009-10-061-1/+1
| | | | TARG_ENEMY with TARG_HOSTILE.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Generalize the check for Vehumet supported spells. Add Shatter and Lee's ↵evktalo2009-09-301-3/+2
| | | | | | Rapid Deconstruction (SPELL_FRAGMENTATION) to the list. Signed-off-by: evktalo <evktalo@users.sourceforge.net>
* Add whitespace fixes.David Lawrence Ramsey2009-09-291-1/+1
|
* make porkalator castable by wizardsAdam Borowski2009-09-291-0/+6
| | | | Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Apply anonymous patch in [2836447], with a few tweaks, to fix spellDavid Lawrence Ramsey2009-09-241-4/+9
| | | | hunger descriptions.
* Make "Alter Self" properly trigger the deliberate mutation conductDavid Lawrence Ramsey2009-09-241-1/+3
| | | | again, for the same amount as "Polymorph Other" when used on monsters.
* Since casting Polymorph Other or Alter Self now results in penance forDavid Lawrence Ramsey2009-09-241-11/+5
| | | | | | their being chaotic spells, as well as the original piety loss for mutating, remove the unconditional penalty for even attempting to cast them.
* Various religion-related fixes: Update the player's title when gainingDavid Lawrence Ramsey2009-09-241-1/+4
| | | | | | or losing piety or penance, so that Invocations-based titles are handled properly; don't display Zin's message about mutagenic glow if the player isn't glowing; and have Zin treat all chaotic spells consistently.
* Add more spelling fixes.David Lawrence Ramsey2009-09-241-3/+3
|
* A bug fix commit! (I didn't do one of these in a while...)j-p-e-g2009-09-131-0/+3
| | | | | | | | | | | * 2856912: being turned into a pig while berserk complaining about being "too berserk" when unequipping the weapon * 2849963: shields working even when melded * 2845355: melded equipment not being affected by remove curse * 2836148: disallow toggle_with_I if you've got a spell on 'I' git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10671 c06c8d41-db1a-0410-9941-cceddc491573
* Commit several patches:j-p-e-g2009-09-131-0/+4
| | | | | | | | | | | | * patch 2849505 by weyrava: make submerged monsters use the correct colour * patch 2857771 by caotto: another Feawn update * patch 2838771 by camedo: add potions of brilliance/agility * BR 2841651 by bookofjude: allow Merfolk to control-tele into deep water Now we need tiles for the new potions! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10669 c06c8d41-db1a-0410-9941-cceddc491573
* Display spell cost, success chance, schools, power, range, and hunger inj-p-e-g2009-09-101-13/+12
| | | | | | | | the new tiles display (in the title, quantity, mouse-over description, and right-click description). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10649 c06c8d41-db1a-0410-9941-cceddc491573
* Add an inventory-like region for the Tiles version to make spellsj-p-e-g2009-09-101-34/+37
| | | | | | | | clickable. '_' toggles between inventory and spell display. Actual tiles are still missing, but everything works as it should. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10648 c06c8d41-db1a-0410-9941-cceddc491573
* Apply patch by (?) to make Apportation autotarget the nearest object.j-p-e-g2009-08-281-4/+5
| | | | | | | Thanks! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10608 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-08-181-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10562 c06c8d41-db1a-0410-9941-cceddc491573
* Really fix compilation.dolorous2009-08-181-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10561 c06c8d41-db1a-0410-9941-cceddc491573
* As per FR 2837779, change Forescry to Phase Shift (Trl). Same level,j-p-e-g2009-08-141-2/+2
| | | | | | | | | | 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
* Improve comment.j-p-e-g2009-08-141-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10546 c06c8d41-db1a-0410-9941-cceddc491573
* Implement 2830788: Randomize the order of exercised skills forj-p-e-g2009-08-141-2/+13
| | | | | | | multischool spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10545 c06c8d41-db1a-0410-9941-cceddc491573
* Remove four scroll-duplicate spells: Detect Curse, Remove Curse, j-p-e-g2009-08-131-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | Magic Mapping, and Identify. [*] This leaves six spells in the Divinations school, of which Forescry and See Invisible could easily be moved to other schools; Detect Secret Doors could be removed; and Detect Traps/Items/Creatures should be moved to some kind of misc. item with charges (whether rechargeable or not). I didn't want to remove those until the replacement code is in. I added a hack to make sure the probabilities of Xom "casting" magic mapping remain the same. That will have to be repaired later, preferrably by handling it together with Detect Items/Creatures as a separate Xom effect. Shifts spells in saves and bones files. *) This is different from the recent addition of the scroll of silence in that these four spells pose no risk whatsoever and can be spammed safely, making even the food and magic costs negligible. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10542 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2819565: Abort when trying to read a known ?blinking or ?teleportation j-p-e-g2009-08-131-1/+18
| | | | | | | | | | | | | | or when zapping a known /teleportation at yourself if you know you have a -TELE artefact equipped. In the same situation, prompt when trying to evoke Blink or cast one of the teleportation spells, in case the player insists on training Evoc/Spellcasting/Translocations that way. Also, automatically update the autoinscriptions when tweaking artefact properties in wizard mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10532 c06c8d41-db1a-0410-9941-cceddc491573
* Forward-port 0.5 r10458 to trunk.dolorous2009-07-281-0/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10460 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow vaults placing shaft traps if shafts are disallowed on thatj-p-e-g2009-07-271-1/+2
| | | | | | | level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10427 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my previous two commits to trunk.j-p-e-g2009-07-231-3/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10390 c06c8d41-db1a-0410-9941-cceddc491573