summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
Commit message (Collapse)AuthorAgeFilesLines
* Corruption changes (dpeg). Corruption is now usable only once-per-level, but ↵Darshan Shaligram2010-01-021-24/+43
| | | | | | produces only neutrals, no hostiles, and applies all corruption effects close to the player instead of using random seed points scattered over the level. The Zot orb antechambers get a little more protection from being short-circuited completely by Corruption.
* Allow Corruption to be used in Hells and Pan.Darshan Shaligram2010-01-021-6/+1
|
* Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-3/+1
| | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* Reduce dependency on travel.hMatthew Cline2009-11-291-0/+1
| | | | | | | | Removed inclusion of travel.h from most .h files to reduce the number of .cc files dependant on it. This involved moving the level_pos declaration to externs.h, moving the flood_find template to it's own header file, and moving two typedefs from travel.h to travel_defs.h because typedefs can't be forward declared (argh).
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+2
|
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Create areas.cc and move sanctuary code there.Robert Vollmert2009-11-211-0/+1
| | | | | areas.cc is meant to collect all area effects like sanctuary, silence, halo, pending future unification.
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-0/+1
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Wrap view flashing in flash_view.Robert Vollmert2009-11-161-2/+1
| | | | This also removes env.show updates when flashing.
* Remove one version of get_screen_glyph.Robert Vollmert2009-11-151-1/+1
|
* Move mtransit to mon-transit.Vsevolod Kozlov2009-11-141-1/+1
|
* Add more env.pgrid initialization.Robert Vollmert2009-11-121-0/+1
| | | | | Two places: startup (probably already handeld by dgn_reset_level) and in abyss new area generation.
* Add summoner and non_actor_summoner to mgen_dataStefan O'Rear2009-11-121-1/+4
| | | | | Monsters now know who summoned them. This will be important later. Probably breaks something; saves are not one of them.
* Portals to Pan and empty arches in the Abyss.Adam Borowski2009-11-121-0/+15
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-1/+1
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Convert another 45 monster loops to monster_iterator.Robert Vollmert2009-11-111-18/+10
| | | | | | | A total of 53 have been converted; 39 left, of which some should stay. Now at a net loss of lines of code for monster_iterator. Occurrences of MAX_MONSTERS down to 65 from 116 in *.cc.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-1/+0
| | | | Also add a few previously indirect includes.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-2/+2
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-3/+3
| | | | | | | | 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.
* Convert a few read-only uses of actor::position to actor::pos().Robert Vollmert2009-11-061-1/+1
|
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split get_symbol from view.cc.Robert Vollmert2009-11-061-0/+1
|
* 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().
* Splitting up stuff.cc.Robert Vollmert2009-10-301-2/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Create l_defs.h and move stuff there.Robert Vollmert2009-10-211-0/+1
| | | | | l_defs.h contains headers for things defined in the Lua functions but used elsewhere. This should probably not exist long-term.
* 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-3/+3
| | | | | | | | | 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-5/+5
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Split and correct grid_see_grid.Robert Vollmert2009-10-081-1/+1
| | | | | | | | | | | | | | | There's now cell_see_cell which tests for visibility correctly, albeit slowly. That's only used for placing features in the abyss currently, but needs to be improved if it gets used more. The second function used in monster movement was left as is, but renamed to can_go_straight. This remains unreliable but probably serves its purpose. The grid_see_grid test is adapted to cell_see_cell; the grid_see_grid lua binding is now actually useful. Also reduce the number of tests in los_csc and los_symm.
* 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
|
* Make screen color flashes from god effects more consistent.David Lawrence Ramsey2009-09-251-5/+4
|
* Forward-port 0.5 r10472 to trunk.dolorous2009-08-011-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10473 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2822832: temporary brands not being removed when thrown with LRET_FUMBLEDj-p-e-g2009-07-201-2/+2
| | | | | | | | | | | | | | plus: thrown weapon permabrand being removed when DUR_WEAPON_BRAND is active plus: double messaging of "You are now empty-handed." Fix 2810517: Added a pre-ability requirements check that handles Lugonu's enter/exit abyss, berserking, recite, breath attacks and some more. If the requirements aren't met, the check fails before the success check, thus no turn is wasted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10360 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation (oops).dolorous2009-07-191-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10334 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet more Jiyva-related cleanups. Make sure his altars are never dolorous2009-07-191-1/+3
| | | | | | | | | | | generated if the royal jelly is dead, you don't worship Jiyva, and you're not under penance from Jiyva; don't destroy Jiyva's altars if the royal jelly dies after you start worshipping him or go under penance from him; and clean up the alternate method for unlocking the Slime Pits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10332 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-07-191-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10318 c06c8d41-db1a-0410-9941-cceddc491573
* Revert r10315, as there should be a better way to eliminate Jiyva altars dolorous2009-07-191-2/+1
| | | | | | | in the Abyss once the royal jelly is dead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10317 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow Jiyva altars in the Abyss.dolorous2009-07-191-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10315 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
* * Fix non-prompting when firing through allies.j-p-e-g2009-04-201-9/+11
| | | | | | | | | * Don't autopickup chunks if starving. (Yes, I died because of that. Xom was very much amused...) * Some spacing fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9668 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-02-241-4/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9196 c06c8d41-db1a-0410-9941-cceddc491573
* Change elemental type colour enum to use ETC_ prefix instead of EC_haranp2009-02-171-2/+2
| | | | | | | | 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
* 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-2/+3
| | | | | | | | | | | 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
* Call mons_clear_trapping_net() in monsters::moveto(), so it shouldn'tharanp2009-02-121-3/+3
| | | | | | | be needed in other places. Should fix [2456879]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9051 c06c8d41-db1a-0410-9941-cceddc491573
* Store level generation information in env.properties, so that it can bezelgadis2009-01-301-0/+5
| | | | | | | | included in a crash dump even if the crash happens after level generation is complete. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8849 c06c8d41-db1a-0410-9941-cceddc491573
* [2496621] Fixing view recentering on abyss shifts. Shifts now preserve any ↵ennewalker2009-01-211-1/+1
| | | | | | scrolling that had occured. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8641 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug #2517795: debug_item_scan() errors when the Abyss shifts.zelgadis2009-01-191-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8571 c06c8d41-db1a-0410-9941-cceddc491573