summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Apply caotto's neat patch to make toadstools grow on or around corpses.j-p-e-g2009-06-291-0/+15
| | | | | | | | Obviously, this might affect food balance and Necromancy. Tweaks may be necessary, but overall this looks good. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10077 c06c8d41-db1a-0410-9941-cceddc491573
* Apply commits r10013 and 10014 to trunk.j-p-e-g2009-06-211-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10015 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-151-1/+9
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9984 c06c8d41-db1a-0410-9941-cceddc491573
* * AutoID rings of teleport control after teleporting.j-p-e-g2009-05-301-0/+1
| | | | | | | | | | * Fix 2788773: Infinite scroll uses by clicking on a stack in tiles. * Fix 2792095: Tiled menus possibly containing more than 52 items. * Fix clicking on items not setting just_clicked_on_item until after the effect happened. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9853 c06c8d41-db1a-0410-9941-cceddc491573
* Xom doesn't even attempt to do the teleportation journey if the playerj-p-e-g2009-04-211-4/+2
| | | | | | | | | | is wearing a randart that prevents teleportation. Spells don't face any such restriction seeing as the direct call of your_spells() bypasses the randart check. Also, a few more spacing cleanups. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9673 c06c8d41-db1a-0410-9941-cceddc491573
* * Add stair repelling as a bad Xom effect.j-p-e-g2009-04-131-0/+2
| | | | | | | * Experimentally make tension increase the odds for good effects. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9600 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2744875 (mutation screen assert).j-p-e-g2009-04-111-2/+2
| | | | | | | | | | * Rename KeymapContext KC_* -> KMC_* to avoid overlap with kill_category KC_*. * Increase odds for chaos brands mimicking brands that hurt the defender. * Tweak chaos_affects_attacker(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9595 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-03-111-31/+26
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9411 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more minor cosmetic fixes.dolorous2009-03-081-7/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9382 c06c8d41-db1a-0410-9941-cceddc491573
* Change elemental type colour enum to use ETC_ prefix instead of EC_haranp2009-02-171-43/+43
| | | | | | | | prefix, which was conflicting with the Abyssal entry cause enum. Fixes [2605869]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9110 c06c8d41-db1a-0410-9941-cceddc491573
* Fix warning.haranp2009-02-151-30/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9096 c06c8d41-db1a-0410-9941-cceddc491573
* Various cleanups, mostly having to do with coord_def().haranp2009-02-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9086 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a great many cases where mgrd is accessed directly in favourharanp2009-02-131-9/+5
| | | | | | | | | | | 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
* Clean up acquirement subtype determination code. (Another goto bites the dust.)haranp2009-02-041-1/+1
| | | | | | | Be a bit more generous regarding books for Evoc and Invoc types. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8890 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up Animate Dead. Also fix messaging.haranp2009-01-301-6/+12
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8853 c06c8d41-db1a-0410-9941-cceddc491573
* During arena mode make random_in_bounds() return a point inside the view port.zelgadis2009-01-281-2/+11
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8835 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bounds checks for monsters' moving off the map to use map_bounds().dolorous2009-01-261-4/+22
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8793 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify monster_random_space().dolorous2009-01-261-10/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8790 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet another cosmetic fix.dolorous2009-01-261-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8787 c06c8d41-db1a-0410-9941-cceddc491573
* Remove now-unused redraw_gold flag.dolorous2009-01-201-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8618 c06c8d41-db1a-0410-9941-cceddc491573
* Typo fix.dolorous2009-01-071-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8288 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug #2489023: dismiss new-game LOS monster with MF_HARD_RESET to preventzelgadis2009-01-061-3/+5
| | | | | | | | | them from dropping items rather than making them summoned, so as to avoid any "disappears in a puff of smoke" message. And to avoid anything similar in the future make the monster_die() call a silent, wizard-mode one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8287 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Add arena mode, activated on the command-line by 'crawl -arena "monster v ↵dshaligram2008-12-311-1/+1
| | | | | | monster"' (eg: crawl -arena "Sigmund v Jessica") to let monsters fight each other undisturbed by the player. Good to examine monster AI and monster behaviour when the player is AWOL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8059 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2008-12-311-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8034 c06c8d41-db1a-0410-9941-cceddc491573
* Complete rewrite of the beam code, making it considerably saner.haranp2008-12-251-0/+10
| | | | | | | However, there might be quite a few bugs lurking in this rewrite. Sorry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7975 c06c8d41-db1a-0410-9941-cceddc491573
* Add another comment fix.dolorous2008-12-241-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7955 c06c8d41-db1a-0410-9941-cceddc491573
* Make enslaved souls the EC_UNHOLY color, and make zombies shovable.dolorous2008-12-231-20/+16
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7916 c06c8d41-db1a-0410-9941-cceddc491573
* Attempt to make stair-tagging of adjacent monsters work properly when dolorous2008-12-201-9/+15
| | | | | | | | monsters that can't use stairs are between them and the player. Be warned: this is somewhat hackish. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7878 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-12-081-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7791 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2008-12-081-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7789 c06c8d41-db1a-0410-9941-cceddc491573
* Attempt to place ziggurat loot vault inside the ziggurat. If the vault ↵dshaligram2008-11-261-1/+1
| | | | | | doesn't fit, we fall back to generating the loot in the open. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7639 c06c8d41-db1a-0410-9941-cceddc491573
* Ziggurat portals charge gold for entry.dshaligram2008-11-251-3/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7610 c06c8d41-db1a-0410-9941-cceddc491573
* Change floor_property (blood, sanctuary) to flags, and add two newj-p-e-g2008-11-071-1/+2
| | | | | | | | | | | | | | | settings: vault and highlight. Vault means a grid is part of a vault (set in dungeon.cc), and currently used to exempt vault grids when shifting labyrinths. Highlight is a meta flag currently only used to highlight labyrinth changes on the 'X' map in wizard mode, but I can think of a couple of other uses, mostly for debugging purposes. Also replace a few for loops in the lab shift function with rectangle_iterators. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7414 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-11-011-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7328 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow permanent abominations created via Twisted Resurrection from dolorous2008-11-011-16/+5
| | | | | | | | taking stairs, and consolidate the logic for this and other stair-ignoring undead in a monsters::can_use_stairs() function. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7323 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow zombified monsters' use of stairs.dolorous2008-10-311-3/+12
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7321 c06c8d41-db1a-0410-9941-cceddc491573
* For Yred worshippers, allow non-mindless undead to follow you if they're dolorous2008-10-301-2/+9
| | | | | | | | not adjacent. Mindless undead will still only follow you if they're adjacent. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7306 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2162827: tag length calculation was incorrect.haranp2008-10-131-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7230 c06c8d41-db1a-0410-9941-cceddc491573
* Increased Silence range from 6+0 to 6+1.haranp2008-10-121-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7222 c06c8d41-db1a-0410-9941-cceddc491573
* Redid monster death idiom so that monsters::hurt can implicitlyharanp2008-10-041-5/+5
| | | | | | | | call monster_die(). (This behaviour can be overriden.) Minor code cleanups elsewhere, removal of dead code from bolt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7123 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2134320: mummy curse had disappeared.haranp2008-09-291-1/+1
| | | | | | | | Did some more work along the lines of r6985, review by dolorous would be appreciated. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7068 c06c8d41-db1a-0410-9941-cceddc491573
* Vampire feeding changes:j-p-e-g2008-09-281-1/+1
| | | | | | | | | | | | | | | | | | * remove randomness and unify formulas for nutrition value of blood potions and corpses, so bottling potions can no longer be used to enforce greater nutrition: this means that draining corpses give more nutrition now * draining duration now matches nutrition more closely (the formulas used to be completely distinct, and quite complicated) * decrease blood potions' nutrition again (I'd increased it in my previous related commit), coagulated blood gives only 80% nutrition * blood potions last a bit longer (counter 2000 -> 2500) * healing from blood potions is impossible * healing from corpses is only possible while they're still fresh (i.e. won't start rotting soon, counter > 150) * remove unrotting etc. effects, decrease healing from human corpses git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7055 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes,dolorous2008-09-271-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7043 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor cleanups to prepare for the introduction of dolorous2008-09-251-0/+21
| | | | | | | | | | | Yred's injury mirroring: move the routine to make a visible monster flash a particular color into its own function, add an integer-based square root function based on Newton's method to stuff.cc, and adjust prayer lengths for Zin (1 turn), Yred (20 turns), Ely (same as Yred), and all gods who ignore prayers (same as Zin). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6982 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-7/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Warn the player if interlevel travel is going to take them to a level ↵dshaligram2008-08-041-2/+3
| | | | | | | | | outside the range [src,dest] (rax, doy). Add ^G as an alias for Escape in yesno and yesnoquit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6764 c06c8d41-db1a-0410-9941-cceddc491573
* More minor fixes.haranp2008-08-011-65/+52
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6747 c06c8d41-db1a-0410-9941-cceddc491573
* Massive overhaul to move towards coord_def().haranp2008-07-301-15/+8
| | | | | | | | | | This might have introduced some bugs: I now get intermittent crashes on startup (this might have to do with the changes to special_room.) Sorry about that - committing before I need to do any more big conflict resolutions. Fixes coming later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6732 c06c8d41-db1a-0410-9941-cceddc491573
* More cleanups.haranp2008-07-241-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6669 c06c8d41-db1a-0410-9941-cceddc491573