summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add spacing fixes.dolorous2008-06-111-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5721 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few more cosmetic fixes.dolorous2008-06-111-6/+7
| | | | | | | | | Regarding fire vortices: after some thought, I'm not marking them as god gifts, as they're created by the clouds created by Fire Storm, as opposed to Fire Storm itself, which makes it an indirect result. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5720 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-06-101-2/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5717 c06c8d41-db1a-0410-9941-cceddc491573
* Add comments documenting exceptions to the general rule of making dolorous2008-06-101-0/+2
| | | | | | | | | monster-creating spell (mis)casts produce god gifts. The exceptions are all natural phenomena treated as monsters: ball lightning, spatial vortices, and fire vortices. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5708 c06c8d41-db1a-0410-9941-cceddc491573
* Clean-up (renaming static methods and comments) in a number of files.j-p-e-g2008-06-101-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5703 c06c8d41-db1a-0410-9941-cceddc491573
* Modify Evaporate and Stinking Cloud to prompt when firing throughj-p-e-g2008-06-101-57/+55
| | | | | | | | allies. Note: This does still not handle the actual clouds, just the basic beam. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5701 c06c8d41-db1a-0410-9941-cceddc491573
* Bug 1987918: make hellfire and magma produce steam when over water.zelgadis2008-06-091-4/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5617 c06c8d41-db1a-0410-9941-cceddc491573
* Modify Portal Projectile to use the quiver interface, so you can nowj-p-e-g2008-06-081-1/+1
| | | | | | | | choose your projectiles and are no longer prompted when "firing through" friendlies. (FR 1816789) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5615 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up handling of angered monsters.dolorous2008-06-081-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5579 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1986252: double "Blech! You need xy!" messagej-p-e-g2008-06-061-5/+5
| | | | | | | | | | | | | | Fix 1966204: make non-amphibious undead capable of drowning or the equivalent thereof When you see a weapon with the returning ego return (to you or a monster) set the properties known along with the brand (because artefacts can't be id'd by throwing alone, anyway). This helps alleviate BR 1958616, but doesn't solve the problem with the curse status being unknown. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5499 c06c8d41-db1a-0410-9941-cceddc491573
* Fix mimics not teleporting when attacked by reaching or airstrike, and aj-p-e-g2008-06-051-3/+6
| | | | | | | few (really) minor adjustments on monster pathfinding. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5487 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-06-041-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5469 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-06-041-0/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5468 c06c8d41-db1a-0410-9941-cceddc491573
* Don't display the warning prompt for firing a charming beam (from e.g. a dolorous2008-06-041-5/+5
| | | | | | | | wand of enslavement) at a non-holy monster, since it doesn't generate negative conducts then. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5467 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2008-06-031-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5458 c06c8d41-db1a-0410-9941-cceddc491573
* Fix summoned monsters spattering blood.j-p-e-g2008-06-031-2/+3
| | | | | | | Fix menu colouring giving away unknown evil items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5456 c06c8d41-db1a-0410-9941-cceddc491573
* Fix a recent bug of mine that blocked the friendly fire prompts.j-p-e-g2008-06-021-32/+26
| | | | | | | | | | | | | | | | | | Fix 1943573: Weird message order when attacking charmed monsters. Fix 1826896: NOTE_ID could have line breaks in mid-word Modify the "This feature has more information" hint to mention mouseclicking for Tiles players rather than 'v' like for purists. Oh, and when trying to look into BR 1952908 (buggy trap in the Abyss) I found that traps can be generated in the Abyss after all. I don't know when that was changed but the last time I checked I remember seeing something like "if (level == ABYSS) return false" in a "Can there be traps here?" check. Is my memory playing tricks on me or was that really changed, and if so, was it intentional? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5445 c06c8d41-db1a-0410-9941-cceddc491573
* Fix a stupid bug I'd introduced when fixing another one.j-p-e-g2008-06-021-28/+37
| | | | | | | | | | | | | | | Fix 1939901: Weapon listing not updated right away after being cursed. Put the code to colour arbitrary substrings of a message according to the menu_colour settings into a function of its own, and use it for pick up and eating prompts (currently from floor only) as well as for the "Things that are here" listing. Could be overly spammy, thus needs testing. If all works well, we can remove the "msg =" settings in food_colouring.txt that currently don't do anything anyway, or reuse them for non-prompt messages like "You see here a green rat corpse." git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5436 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1962147: Move the comments on the food you eat at the end of DELAY_EAT.j-p-e-g2008-05-311-9/+17
| | | | | | | | | | | | | | | | Fix 1971216: Kills by confused undead use LIVING_KILLED_BY_SERVANT instead because the message ("collateral kill") fits better and, though it's basically a hack, the distinction does fit somehow. Fix 1914948: Tweak message when you resist a spell cast by an invisible monster. Fix 1946608: Print "Nothing appears to happen." if reading ?EWI when unarmed. I guess that's it, plus probably some more cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5378 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-05-291-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5324 c06c8d41-db1a-0410-9941-cceddc491573
* Add more noise-related cleanups.dolorous2008-05-281-4/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5318 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate a bit more.dolorous2008-05-251-11/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5241 c06c8d41-db1a-0410-9941-cceddc491573
* And name the consolidated function properly.dolorous2008-05-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5239 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate the setting of the "standard" attack conducts.dolorous2008-05-251-11/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5238 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate the attack warning prompts for both melee and beams, and use dolorous2008-05-251-52/+2
| | | | | | | | | the prompts properly with Burn/Freeze, Smite, and Airstrike. Also, move the now-single function for this into misc.cc, since I can't think of a better location right now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5235 c06c8d41-db1a-0410-9941-cceddc491573
* Mention named orcs' base type in the monster descriptions.j-p-e-g2008-05-251-11/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5231 c06c8d41-db1a-0410-9941-cceddc491573
* And put it back in, in the proper place.dolorous2008-05-241-7/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5220 c06c8d41-db1a-0410-9941-cceddc491573
* Revert previous change, as it's in the wrong place.dolorous2008-05-241-5/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5219 c06c8d41-db1a-0410-9941-cceddc491573
* Account for sanctuaries in the "Really fire through..." prompt.dolorous2008-05-241-2/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5217 c06c8d41-db1a-0410-9941-cceddc491573
* Update change log once again.j-p-e-g2008-05-241-14/+25
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5216 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate player tracer messages.j-p-e-g2008-05-231-77/+49
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5196 c06c8d41-db1a-0410-9941-cceddc491573
* Revert being more forgiving about making unchivalric attacks by zapping dolorous2008-05-231-1/+3
| | | | | | | unknown wands, since there's a warning prompt for it now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5194 c06c8d41-db1a-0410-9941-cceddc491573
* Apply beam tracer prompt to helpless/fleeing etc. creatures whenj-p-e-g2008-05-231-47/+138
| | | | | | | | | | | | | worshipping an appropriate god. I'm simply reusing dolorous unchivalric methods here. :) Also, don't prompt for harmless beams. Still TODO: Make the message differentiate between target and obstacles, and clean up the code a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5193 c06c8d41-db1a-0410-9941-cceddc491573
* Be a bit more forgiving of zapping unidentified wands that your god dolorous2008-05-231-3/+1
| | | | | | | | dislikes the effects of (e.g. for good gods, unidentified wands of draining), and properly handle inadvertent unchivalric attacks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5186 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-231-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5185 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-05-221-7/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5184 c06c8d41-db1a-0410-9941-cceddc491573
* Improve player beam tracer for firing through friendlies:j-p-e-g2008-05-221-120/+603
| | | | | | | | | | | | | | * name the monster you're firing through ("your goblin zombie") * use maximum possible range * make it work for spells and abilities, as well Still todo: * apply the same logic to firing missiles * don't prompt for monsters that wouldn't be harmed (e.g. living allies for Dispel Undead, etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5177 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1941612: Zapping wands known to be empty shouldn't cost a turn, butj-p-e-g2008-05-211-16/+35
| | | | | | | | | | | | | | empty wands with unknown charges should cost a turn. Experimentally add a "Really fire through friendly creature?" prompt when a beam tracer passes through a friend. This currently uses the existing monster tracer and probably has huge problems because of this. In any case, it appears to only work sometimes, though consistently for wands in my testing, possibly because the range is fixed (?) when compared to spells. (This is part of FR 1962548.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5171 c06c8d41-db1a-0410-9941-cceddc491573
* Add various attitude- and alignment-related fixes.dolorous2008-05-201-9/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5156 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2008-05-201-3/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5153 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-201-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5152 c06c8d41-db1a-0410-9941-cceddc491573
* Add more consistency fixes: the conduct for melee attacks on holy beings dolorous2008-05-191-2/+2
| | | | | | | | | now uses their hit dice, as beams do, and conducts for stabbing and unchivalrous attacks give 4 points instead of 5 again, for consistency with e.g. necromancy and unholy attacks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5135 c06c8d41-db1a-0410-9941-cceddc491573
* Revert the always-annoying change to Burn/Freeze, for consistency with dolorous2008-05-191-11/+17
| | | | | | | offensive beams as opposed to enchantment beams. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5129 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes, and make sure Burn/Freeze always annoys dolorous2008-05-191-5/+5
| | | | | | | the monster, for consistency with beams. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5127 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-191-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5126 c06c8d41-db1a-0410-9941-cceddc491573
* Pull code from mon->can_see(target) into a new function mon->see_grid()j-p-e-g2008-05-181-3/+3
| | | | | | | | | | | | | and use it in the checks for monster/monster visibility. I didn't have the time to test it but it should at least solve part of the problem of monsters firing through walls (if monster visibility is even checked there, which I don't know). Also (as usually), more code cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5117 c06c8d41-db1a-0410-9941-cceddc491573
* Enable handling of long-distance unchivalric attacks, and increase the dolorous2008-05-171-1/+7
| | | | | | | | penalty from 4 to 5 for consistency with similar attacks frowned upon by the good gods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5100 c06c8d41-db1a-0410-9941-cceddc491573
* Add a tutorial hint for encountering an invisible monster and offer a j-p-e-g2008-05-151-0/+8
| | | | | | | | | | | different healing message if you recently met an invisible monster, as suggested in FR 1964267. Killing an invisible monster does not yet reset the counter, though I guess it should. Also, disallow randart weapons to be named after Sif Muna. (Vehumet, too, maybe?) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5052 c06c8d41-db1a-0410-9941-cceddc491573
* Remove unneeded blank line.dolorous2008-05-151-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5047 c06c8d41-db1a-0410-9941-cceddc491573
* Add sanity checks.dolorous2008-05-141-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5042 c06c8d41-db1a-0410-9941-cceddc491573