summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.h
Commit message (Collapse)AuthorAgeFilesLines
* Chance function(void) to function()reaverb2014-05-241-2/+2
|
* Remove `drop_mode` setting and in-game toggle for `single` behaviorChris Oelmueller2014-02-081-6/+0
| | | | | | | | | | | The setting itself went largely unused with a few exceptions for bot configurations, and the toggle (either @ or Ctrl-D in the drop menu) added nothing to the interface: It was intransparent and probably not known to a single player out there. Like with the pickup menu, what was old `multi` is the far superior interface, and unlike with pickup it also has been the default for a long time. For quickly (interface-wise) dropping items, there still exists `D` to drop your last pickup, but even that is rather prone to input errors.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Make list_opt = foo reset the list, not append.Neil Moore2013-05-261-1/+0
| | | | | | | We have been warning of the impending change since 0.11. Also remove the warn_list_append list and associated lua function, since it was used only to implement the aforementioned warning.
* Remove some prototypes for extinct functions (blackcustard)Neil Moore2013-03-231-4/+0
|
* Allow running --mapstat on only a selection of levels.Adam Borowski2013-03-111-0/+3
|
* Handle resetting, subtracting for Lua list options.Neil Moore2012-09-161-0/+1
| | | | | In particular, handle runrest_{ignore,stop}_message and runrest_ignore_monster{,_moving}.
* Use std namespace.Raphael Langella2012-08-261-30/+30
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* A skill training simulator in Lua.Raphael Langella2011-06-231-0/+2
| | | | | | | | You pass it a combo abbreviation (like MiFi) and an optional weapon skill, and it gives the skill progression. I've implemented 3 scenarii for Fi, FE and Cr, but more can be added easily (and they can be changed too). The goal is to evaluate the impact of changing the skill cost.
* Merge branch 'unicode'.Adam Borowski2011-04-011-32/+3
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Merge branch 'master' into unicodeAdam Borowski2011-03-131-1/+1
| |\
| * | Rename TextFileReader to FileLineInput I didn't notice, use it for config files.Adam Borowski2010-12-161-32/+3
| | |
* | | Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| |/ |/| | | | | | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* | Add spacing fixes.David Lawrence Ramsey2011-02-071-1/+1
|/
* Get rid of MULTIUSER logic.Adam Borowski2010-12-021-1/+1
|
* Unify string_to_god() and str_to_god().Adam Borowski2010-09-071-1/+0
|
* Fix macro_dir handling (Napkin).Darshan Shaligram2010-07-171-0/+1
|
* Fix compilation.David Lawrence Ramsey2010-06-271-0/+1
|
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-1/+1
|
* Allow starting the arena from the startup menu.Robert Vollmert2010-04-301-2/+0
| | | | | This adds a primitive arena team choice screen, and integrates arena team settings with newgame_def.
* Remove obsolete SysEnv.board_with_nail.Robert Vollmert2010-04-301-1/+0
|
* Unify startup menu with rest of character choice.Robert Vollmert2010-04-271-2/+5
| | | | | | | | | Game type is now also stored in newgame_def, and crawl remembers the last choice. We could now easily add a Tab key to the startup menu that functions like the species choice Tab but that includes filling out the same name.
* Regenerate lua cache when executable is rebuilt.Enne Walker2010-02-211-0/+1
| | | | | | | This should fix potential issues like [738], where stale cache files are using the wrong tiles in vaults after a change to the tiledef enums. This is currently only done for tiles builds.
* Code to alter/check feature properties in Lua.Jude Brown2010-01-171-1/+0
| | | | | | | | | | | | | This commit moves str_to_fprop from initfile.cc to fprop.cc. It also introduces two new dungeon Lua wrappers: fprop_changed(x, y, fprop), and fprop_at(x, y, fprop). fprop_at(x, y, fprop) will return testbits(coord_def(x, y), fprop). fprop_changed will either add the fprop to that location, or if it already exists there, it will remove it from that location. It will returrn a boolean value of true if it altered the location, and false if it did nothing.
* dLua "mark_summoned" wrapper for monsters.Jude Brown2009-12-041-0/+1
|
* Remove "called from:" comments.Vsevolod Kozlov2009-11-031-13/+0
| | | | | | These were of questionable use and freshness. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Splitting up stuff.cc.Robert Vollmert2009-10-301-3/+0
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Specify arbitrary options on the command lineMatthew Cline2009-10-231-0/+3
| | | | | | | | | | This introduces two new command line options, -extra-opt-first and -extra-opt-last, which make crawl think that the specified options were (respectively) at the start and end of the options file. For example: crawl -extra-opt-last wiz_mode=yes The two options can be used multiple times to specify multiple options.
* KPROP: assign feature properties in Lua vaults: FPROP_BLOODY, etc.Jude Brown2009-10-211-0/+1
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* FR 2533562: Move the CRAWL_PIZZA / -pizza options into the init filenlanza2009-02-271-1/+0
| | | | | | | so that they're more easily accessible in hosted games. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9250 c06c8d41-db1a-0410-9941-cceddc491573
* Add arena mode, activated on the command-line by 'crawl -arena "monster v ↵dshaligram2008-12-311-0/+2
| | | | | | 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
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-4/+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
* For functions that return char*'s, don't return a c_str() of an dolorous2008-06-251-3/+3
| | | | | | | | | | | | | | | std::string, since as soon as the function returns, the std::string goes out of scope, and the c_str() becomes a dangling pointer, which usually points to the same area as before, but occasionally points to garbage. Instead, make them return std::string's, and call c_str() on the return value outside the functions. Among other things, this should fix [1999515]. Note that I've only fixed direct c_str() returns for now. There might be some indirect ones that I missed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6139 c06c8d41-db1a-0410-9941-cceddc491573
* Better support for settings files that include other files:dshaligram2008-05-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | - Files can be included as "include foo" in .crawlrc instead of using the Lua call: : crawl.read_options('foo'). include foo and the Lua crawl.read_options('foo') are not equivalent - Lua only runs after the start of a new game, which is too late for some option settings. - Crawl searches for included files in this sequence: - Absolute paths: use the path directly (but not if DATA_DIR_PATH is set, since we don't want Crawl to read arbitrary files on multiuser systems). - Search relative to the including file. - Search relative to any -rcdir(s) provided. - Search in the data file search path. - The data file search path now includes settings/ for when we move rc stuff to settings/ .gitignore: ignore saves and morgue dirs correctly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5256 c06c8d41-db1a-0410-9941-cceddc491573
* [1852851] Fixed option aliases not being used inside Lua conditional blocks ↵dshaligram2007-12-281-1/+2
| | | | | | in .crawlrc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3139 c06c8d41-db1a-0410-9941-cceddc491573
* Added DGL_STARTUP_PREFS_BY_NAME to store new character options by usernamedshaligram2007-09-241-1/+1
| | | | | | | | | for dgamelaunch. Dropped ice statue hitpoints to compensate for their immunity to disintegration. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2195 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-0/+32
| | | | | | | | | | | | | crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
* Allow monster symbols to be customised using the mon_glyph option.dshaligram2007-07-231-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1916 c06c8d41-db1a-0410-9941-cceddc491573
* Remember choice of Beogh in character selection.dshaligram2007-06-141-2/+3
| | | | | | Some code reindenting and housekeeping. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1587 c06c8d41-db1a-0410-9941-cceddc491573
* Tutorial (JPEG) and some formatting cleanup.dshaligram2007-02-061-7/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@924 c06c8d41-db1a-0410-9941-cceddc491573
* Redid how the resists screen works (both in-game and in-dump.)haranp2006-11-291-0/+1
| | | | | | | | Minor notes refactoring. Added a basic notes browser on '_'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@528 c06c8d41-db1a-0410-9941-cceddc491573
* Merged stone_soup r15:451 into trunk.dshaligram2006-11-221-1/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+101
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573