summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Move see_cell_no_trans into player.Robert Vollmert2009-11-081-3/+3
| | | | Also collect actor/player LOS code in actor-los.cc.
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-5/+6
| | | | | | | | map_cell no longer has the field "properties", which has been replaced by the unsigned long array env.pgrid. env.map has been renamed to env.map_knowledge. It should really be moved into player.
* Remove mons_is_holy(), as it's redundant.David Lawrence Ramsey2009-11-071-1/+1
|
* Fix the vestibule exit portalCharles Otto2009-11-071-2/+4
|
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Rename purple smoke to clouds of translocational energyStefan O'Rear2009-11-061-1/+1
|
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-2/+2
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-11/+11
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Unify mesmerisation code.Robert Vollmert2009-11-051-5/+1
| | | | | | | | There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc.
* Replace mons_is_caught with monsters::caught.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace uses of player_is_airborne with you.airborne.Vsevolod Kozlov2009-11-051-6/+6
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+2
|
* Fix player bloodspatterStefan O'Rear2009-11-041-1/+1
|
* Disintegration can be very messy.Stefan O'Rear2009-11-041-0/+33
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Fix bug [2890062] zot exit portals not working.Charles Otto2009-10-311-2/+4
|
* Combine mons_is_submerged(monsters *m) into monsters::submerged()abrahamwl2009-10-311-1/+1
| | | | | | ...and replace all references to mons_is_submerged() with submerged(). It's a dirty job, but someone's got to do it. (Thank God for regex!)
* Combine mons_is_sleeping(monsters *m) into monsters::asleep()abrahamwl2009-10-301-1/+1
| | | | ...and replace all references to mons_is_sleeping with asleep.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Add whitespace fixes.David Lawrence Ramsey2009-10-291-1/+1
|
* FR 2017276: '<' and '>' both work for portal/shopMatthew Cline2009-10-291-2/+27
| | | | Up and down ('<' and '>') now both work for entering shops and portals.
* Slow down the monster spawn rate in the Abyss for worshippers of Cheibriados.Adam Borowski2009-10-291-0/+3
| | | | Currently, this god makes Abyss a hell, let's let him compensate a bit...
* Move autoexclude code from misc.cc to exclude.cc.Robert Vollmert2009-10-271-60/+0
|
* Convert some ints to monster_type.Robert Vollmert2009-10-271-8/+8
| | | | | | | | | There's a whole lot of places that pass monster_type as int, often with varying meanings for the value -1. This moves some of these to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as new invalid special values. Also improve on the autoexclude descriptions.
* Add spacing fixes.David Lawrence Ramsey2009-10-251-2/+2
|
* 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.
* Add missing Chronos conducts for hasting yourself, casting swiftness,Adam Borowski2009-10-211-0/+1
| | | | using weapons of speed and boots of running.
* FPROP_NO_CLOUD_GEN, stop specific lava and shallow water grids generating ↵Jude Brown2009-10-211-0/+3
| | | | | | relevant clouds. Signed-off-by: Adam Borowski <kilobyte@angband.pl>
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* More renaming and reorganization of feature checks.Robert Vollmert2009-10-171-5/+5
| | | | | | | | | There were a couple of functions is_something(dgn_feature_type feat) defined in travel.cc that were otherwise independent of travel. For consistency, move these to terrain.cc and rename to feat_is_something. One might also consider renaming the various feat_is_whatever functions to just is_whatever.
* Naming consistency.Robert Vollmert2009-10-171-20/+20
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-3/+3
|
* Rewrite part of the exclusion code.Robert Vollmert2009-10-151-3/+3
| | | | | | | | | | | | * Exclusion radius 0 no longer encodes "no exclusion". * toggle_exclusion split into set_exclusion and del_exclusion: It was never used as a toggle. * Exclusion updates for changed cells unified in void update_exclusion_los(std::vector coord_def changed). Now doesn't leave invalidly non-uptodate exclusions laying around. Still need to find out why off-level exclusions aren't updated after restore.
* platform detection: clean up abuse of '_MSC_VER' macroSteven Noonan2009-10-131-1/+1
| | | | | | | Use TARGET_COMPILER_VC instead, unless you need to find the Visual C++ version information. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-2/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-1/+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.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Applying Kiku patch by Alex MacDonald (timecircuits). Kiku now has an ↵evktalo2009-10-021-0/+6
| | | | | | | | invocation to provide corpses, provides (partial) torment resistance, provides torment when butchering while praying, and gifts Necromancy books. As the final gift, the player can choose between blessing the wielded weapon with Pain brand, or Necronomicon. Flavour and help texts haven't been altered yet. Signed-off-by: evktalo <evktalo@users.sourceforge.net>
* Add spelling fixes.David Lawrence Ramsey2009-09-231-6/+6
|
* Add more minor cosmetic fixes.dolorous2009-09-231-2/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10778 c06c8d41-db1a-0410-9941-cceddc491573
* Don't treat electric eels as safe just because they're aquatic.j-p-e-g2009-09-181-3/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10711 c06c8d41-db1a-0410-9941-cceddc491573
* Add a check for whether a monster with water habitat can reach thej-p-e-g2009-09-171-4/+8
| | | | | | | | | player and only consider such monster unsafe if there is a path. Replace the old runrest_ignore_monster checks for aquatic monsters with this one, which has the side effect of being nicer to Merfolk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10701 c06c8d41-db1a-0410-9941-cceddc491573
* Add the most recent version of Adam's kraken patch into trunk.j-p-e-g2009-09-171-0/+1
| | | | | | | | | Might still need some tweaks but overall looks great! And... we need more tiles (kraken head + tentacles). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10691 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
* Fix [2832760]: Don't remove the rock walls in Slime:6 unless the player dolorous2009-08-091-1/+6
| | | | | | | is worshipping Jiyva. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10511 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's patch in [2827204] to finish the plant god, with some dolorous2009-07-281-1/+2
| | | | | | | cleanups added by me. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10442 c06c8d41-db1a-0410-9941-cceddc491573
* Apply zebez' patch to differentiate gates some more from stairs.j-p-e-g2009-07-251-8/+23
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10403 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2825414]: Leave the proper hide type when bottling blood from a dolorous2009-07-221-2/+4
| | | | | | | corpse as a vampire. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10371 c06c8d41-db1a-0410-9941-cceddc491573
* Fix some warnings for gcc 4.4 as per trentbuck's patch 2824633.j-p-e-g2009-07-211-8/+41
| | | | | | | | Add flavour messages to opening the gate to Zot. Really, we'd need something like that for winning the game, but what? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10365 c06c8d41-db1a-0410-9941-cceddc491573