summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove tabs, and add minor cosmetic fixes.David Lawrence Ramsey2009-10-201-6/+8
|
* win32: eliminate need for WIN32TILES/WIN32CONSOLE macrosSteven Noonan2009-10-191-1/+1
| | | | | | | | | | | | | | Instead of defined(WIN32CONSOLE) we should use: defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) As well as replace defined(WIN32TILES) with: defined(TARGET_OS_WINDOWS) && defined(USE_TILE) Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Split dgn_lib out of luadgn.cc; rename luadgn to dlua.Robert Vollmert2009-10-191-1/+1
|
* Add compilation information to Version namespaceMatthew Cline2009-10-181-1/+13
| | | | | | | | | | The Version namespace now provides the compiler which was used, the OS, machine type and processor type the compilation was done on, and the CFLAGS, CFLAGS_L and LDFLAGS which were used. If GCC was the compiler, it also provides the compiler version. This information is included in crash reports, and can be dumped using the new command line option "-version".
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add test for monster placement.Darshan Shaligram2009-10-181-0/+5
| | | | | | Adds test/monplace.lua to test placing monsters using the Lua direct monster creation binding (does not exercise all the map code). Allow choosing what tests to run with "crawl -test test1,test2".
* Make default LOS configurable.Robert Vollmert2009-10-171-2/+2
| | | | | | Setting LOS_RADIUS in defines.h now works. Fixed a couple of things to allow this, including an apparent off-by-one error in crawl_view -- not quite sure this doesn't break anything.
* New option explore_delay, which lets you make the delay between auto-exploreMatthew Cline2009-10-131-0/+10
| | | | | | moves be different than the delay between the moves of other types of travel. By default (explore_delay == -1) the auto-explore delay is the same as travel_delay, preserving the old behaviour.
* Append currently processed init filename and line number to the end of initMatthew Cline2009-10-131-23/+52
| | | | file parsing error/warning messages.
* initfile.cc: use new platform identification macros in find_executable_path()Steven Noonan2009-10-131-3/+3
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Bug 2877419: do error checking on autoinscribe initfile lines, toMatthew Cline2009-10-131-0/+41
| | | | prevent the game from crashing.
* 8 color terminal: check whether getenv() returns null before string compareSteven Noonan2009-10-121-3/+4
| | | | | | Oops. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* 8 color terminals: switch to conditional usage based on terminal typeSteven Noonan2009-10-121-8/+14
| | | | | | | | | | | | Apple's Terminal.app sets a TERM_PROGRAM environment variable to "Apple_Terminal". This gives us a good way to detect at runtime whether or not the terminal supports more than 8 colors. The main reason for checking at runtime is that Mac users are able to run other terminal apps (xterm, rxvt, etc), and should expect to see more than 8 colors in terminals that support it. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: fix msvc compile breakageSteven Noonan2009-10-121-10/+10
| | | | | | MSVC is like a chimp with Down's syndrome. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Make gods that take corpse offerings do so without the butchery step,David Lawrence Ramsey2009-10-111-1/+0
| | | | | | i.e., allow merely praying over said corpses. Now, the only gods that pay attention to butchery are Kikubaaqudgha and Elyvilon. Also, add several miscellaneous fixes.
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-5/+5
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* readlink does not NULL-terminate, must terminate explicitly.Darshan Shaligram2009-10-021-1/+4
|
* Replace extraneous tabs with spaces.David Lawrence Ramsey2009-10-011-14/+14
|
* move 'Kills.h' -> 'kills.h', 'Kills.cc' -> 'kills.cc' for file naming ↵Steven Noonan2009-09-291-1/+1
| | | | | | consistency Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* initfile.cc: move 'saves' and 'morgue' to appropriate Mac locations on Mac OS XSteven Noonan2009-09-251-1/+5
| | | | | | | The '~/Library/Application Support/<Application Name>' path is widely used as a settings or save folder for Mac applications. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Fix MinGW build.Darshan Shaligram2009-09-241-0/+1
| | | | #include <windows.h> without WIN32_LEAN_AND_MEAN includes winsock.h, which defines AF_CHAOS as an int constant.
* Ignore unused return codes in find_executable_path.Darshan Shaligram2009-09-251-2/+2
|
* Set up a basic testing framework for LOS. ./crawl -test with a full debug ↵Darshan Shaligram2009-09-241-10/+8
| | | | build will run the test.
* Add spelling fixes.David Lawrence Ramsey2009-09-231-2/+2
|
* initfile.cc: improve accuracy of crawl_base variableSteven Noonan2009-09-231-1/+48
| | | | | | | | | | | | Windows, Mac OS X and Linux all provide handy ways to retrieve the absolute path of the running executable. This is especially useful since argv[0] can be a relative path. This fixes a bug on the Mac OS X build where the app cannot locate the graphics resources when when they're needed, so the application bombs out instead. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Adapt Matthew's new memorisation interface for tiles, using the samej-p-e-g2009-09-121-1/+1
| | | | | | | | display as for spellcasting. Also force a redraw() if the player clicked on a spell. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10661 c06c8d41-db1a-0410-9941-cceddc491573
* Add an inventory-like region for the Tiles version to make spellsj-p-e-g2009-09-101-0/+1
| | | | | | | | 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 2824637 by Trent Buck: making save_dir and morgue_dirj-p-e-g2009-07-251-2/+3
| | | | | | | include "/saves" and "/morgue", respectively. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10404 c06c8d41-db1a-0410-9941-cceddc491573
* Use ETC_MAGIC for beam animations with unknown effect, so we don't j-p-e-g2009-07-201-2/+2
| | | | | | | | accidentally leak information about unID'd wands etc. Some additional space fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10358 c06c8d41-db1a-0410-9941-cceddc491573
* Change part of the z/Z handling:j-p-e-g2009-07-181-0/+6
| | | | | | | | * added option darken_beyond_range (defaults to true) * Z doesn't show the spell list anymore git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10278 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix centaur/naga tiles not being displayed correctly in the characterj-p-e-g2009-07-031-24/+34
| | | | | | | | | | | | | | | | | selection menu. * Add dolls_data to player_save_info struct, to make it easier to read in per-character doll information once we get around to that. Including the tiledef files in externs.h is probably overkill, though, so we might want to move player_save_info into another header file. * Fix Xom's repel stair effect moving shops. * Fix decks granting permanent summons at low power (and only at low power). * Make default settings of the brand options consistent between init.txt and initfile.cc. * Update FAQ. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10086 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my previous commit to trunk.j-p-e-g2009-06-241-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10029 c06c8d41-db1a-0410-9941-cceddc491573
* Apply commits r10013 and 10014 to trunk.j-p-e-g2009-06-211-1/+3
| | | | 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-141-20/+23
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9978 c06c8d41-db1a-0410-9941-cceddc491573
* Since fixed artefacts are going to be folded into unrandarts, and unrandartszelgadis2009-06-081-2/+2
| | | | | | | | | | | have already become almost identical to randarts, change "randart" to "artefact" everywhere except for things that deal exclusively with randarts. Artefact related files will be renamed later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9921 c06c8d41-db1a-0410-9941-cceddc491573
* Add an option that controls whether the tiles build displays tiles inj-p-e-g2009-05-231-0/+2
| | | | | | | | | | menus or not. (Defaults to true.) Tiled menus may seem like a great feature (and I love them) but they can also be a bit confusing/distracting (though much less so now than they used to be), and I respect that. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9799 c06c8d41-db1a-0410-9941-cceddc491573
* Fix warning.dolorous2009-05-061-2/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9740 c06c8d41-db1a-0410-9941-cceddc491573
* * Replace the range_view_annotator loop with an simple check for thej-p-e-g2009-05-051-0/+2
| | | | | | | | | | | | | | current range, which if set to a value > 0 will cause viewwindow to colour all grids not in los or not in range to be coloured grey. Has the side effect to also work for Tiles. :) * Change THELM_DESC_JEWELLED to golden, do as to avoid overlap with the randart description. * Make porridge sometimes brown and blood potions sometimes viscous/sedimented. (Yes, these don't really fit but I don't like the fixed descriptions.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9735 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-04-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9709 c06c8d41-db1a-0410-9941-cceddc491573
* Change Options.autopickup_on from boolean to 3-state: 1 (autopick up), 0j-p-e-g2009-04-241-2/+8
| | | | | | | | (autopickup off), -1 (autopickup turned off automatically). Only in the latter case does killing an invisible monster turn autopickup (back) on. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9691 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak Xom's ideas about what makes a funny or boring death.j-p-e-g2009-04-221-17/+25
| | | | | | | | | * Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
* * Properly print (non-spoily) resists descriptions for ghosts/pandemoniumj-p-e-g2009-04-191-2/+4
| | | | | | | | | | | | lords, using mons_class_resists (currently only poison) instead of mons_resists(). * Add option note_xom_effects (defaults to true) that causes note-taking for all Xom effects, hopefully spoiler free. * Autoinscribe hides from unique monsters' corpses with the monster name, as suggested on rgrm. Currently only applies to Snorg and Tiamat. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9652 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Xom's piety wrapping around from 0 -> 255.j-p-e-g2009-04-181-1/+1
| | | | | | | | | | | | | | | | * Fix Xom piety 100 (initial state) favouring bad effects. * Limit tension bonus for good effects to 199. * Add penalty for tension 0, so bad effects become more likely without tension. * Revert order of Xom's amusement to actually match the amusement gain. (Was getting "roars with laughter" for gain of 2, etc.) * Add damage shaving to Deep Dwarf ghosts. * Add 'o' to pickup list commands -> stop prompting, start autoexplore. * Default menu_colour_item_class to true in initfile.cc. * Allow autopickup of chunks in Lich form. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9634 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow viewing known items from "Use on what item?" scroll prompt.j-p-e-g2009-04-111-0/+4
| | | | | | | | * Default use_fake_cursor to true on Unix, else false. * Tweak some descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9594 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak FAQ and change log some more.j-p-e-g2009-04-051-1/+1
| | | | | | | | | | * Default use_fake_cursor to true since it appears to be a common enough problem that we regularly get bug reports about the cursor disappearing in X mode. * Add altars to the list of features displayed in V. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9585 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2093461: add player + allies FRIENDLY_PICKUP modej-p-e-g2009-03-121-0/+2
| | | | | | | | | Make Roxanne immune to disintegration (like ice statues). Move rock worms a bit lower in the dungeon and increase their damage (a tiny bit). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9428 c06c8d41-db1a-0410-9941-cceddc491573
* Various documentation tweaks. Among others, replace all references toj-p-e-g2009-03-121-8/+8
| | | | | | | | "class" with "job", and "race" with "species" because that comes much closer to what they actually are. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9425 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-03-061-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9353 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2661474]: note_all_skill_levels was being ignored.haranp2009-03-041-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9327 c06c8d41-db1a-0410-9941-cceddc491573