summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
Commit message (Collapse)AuthorAgeFilesLines
* Code to alter/check feature properties in Lua.Jude Brown2010-01-171-16/+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.
* Trim unnecessary #includes.Adam Borowski2010-01-131-1/+0
|
* Add -script option to Crawl to run a Lua script. Scripts are similar to ↵Darshan Shaligram2010-01-091-2/+18
| | | | | | tests, but can be parameterised. Add a script to generate 150 level at a named place and report on all the monsters generated there.
* New minimap colour option for peaceful monsters, by default same as friendly.Johanna Ploog2010-01-071-0/+1
|
* clean up one more warningJesse Luehrs2009-12-261-0/+2
|
* Add new inventory menu type for item knowledge.Robert Vollmert2009-12-251-1/+2
| | | | | | | This means the knowledge menu is not affected by the main inventory sort options. In particular, this fixes item knowledge sort order breaking down once you know a lot of items of a given type.
* Fix label at an end of block.Adam Borowski2009-12-141-2/+3
|
* allow -save-version to take actual filenames tooJesse Luehrs2009-12-121-32/+42
|
* add a --save-version option for checking a player's save file versionJesse Luehrs2009-12-121-1/+70
|
* Tidy up bracket placement according to our coding conventions.Johanna Ploog2009-12-101-1/+2
|
* dLua "mark_summoned" wrapper for monsters.Jude Brown2009-12-041-0/+23
|
* Reduce minimum message window height to 5.Robert Vollmert2009-12-031-0/+2
| | | | | | | | | | This is FR 2814313. This required adding a new option msg_min_height defaulting to 6 to keep the same default layout. I don't believe anything requires a message window of more than 5 lines (acquirement is fine with that).
* Clean up window size option handling.Robert Vollmert2009-12-031-21/+5
| | | | | view_{min,max}_width now use INT_OPTION (hope I didn't miss anything there), and msg_max_height gets an explicit minimum.
* Don't mistake Hurd for some fruit, both use Mach (Pino Toscano).Adam Borowski2009-12-021-2/+2
|
* Remove FPROP_FORCE_EXCLUDE.Robert Vollmert2009-12-021-2/+0
| | | | | It's not used anymore, and has issues, such as revealing information on the level map.
* Remove last traces of interruptible passwall.Robert Vollmert2009-12-011-1/+0
|
* Optionally display message window at top of terminal.Robert Vollmert2009-11-291-0/+2
| | | | | | | | | | | | Set messages_at_top=true to use. This is not quite aesthetically pleasing since character name and title which form a kind of heading for the screen are now in the middle. It might be better to display them in an extra line across the top. Also, the layout should really be moved out to lua and made completely user configurable.
* Add an option to draw the player cursor manually.Robert Vollmert2009-11-281-0/+2
| | | | | | | | | | | | | Set use_fake_player_cursor = true to use this. This allows defaulting the cursor to off, which means less cursor blinking say when travelling. This patch also moves the cursor control closer to where it's used, so that the cursor is only turned on for actual input prompts. I've definitely missed some prompts here: almost anything that prompts for a single character and reads it using getch() will not have a cursor with use_fake_player_cursor set at the moment.
* Default delay_message_clear to true (dpeg).Robert Vollmert2009-11-241-1/+1
|
* Remove options target_oos and target_los_first.Robert Vollmert2009-11-241-4/+0
|
* Remove unused option target_wrap.Robert Vollmert2009-11-241-1/+0
|
* Remove option target_zero_exp.Robert Vollmert2009-11-241-2/+0
| | | | | | The same effect can now be achieved by overriding ch_target_monster. If anyone wants this, I'm happy to provide lua code.
* Give a message and FX when you banish people.Adam Borowski2009-11-231-1/+1
|
* Remove multi-purpose Options.mlist_targetting.Robert Vollmert2009-11-231-1/+1
| | | | | | | | The option is now just a boolean option, and whether we're actively targetting with the mlist is stored in crawl_state.mlist_targetting. Also remove some duplication of mlist logic from direction().
* Counterpart fprop for NO_RTELE_INTO: NO_CTELE_INTO.Jude Brown2009-11-231-0/+4
| | | | | | | | | | | | NO_CTELE_INTO causes grid-cells marked as such to reject controlled teleport into them, with the message: "A strong magical force throws you back!". NO_TELE_INTO combines both of these flags (NO_RTELE_INTO and NO_CTELE_INTO) to prevent both controlled and random teleports into a specific cell. Also document both of these.
* Add an option, -builddb, to build the database and exit.Adam Borowski2009-11-221-2/+9
|
* add save file information to crawl --versionJesse Luehrs2009-11-221-2/+3
|
* explore_stop: new condition greedy_pickup_thrownMatthew Cline2009-11-221-0/+2
| | | | | | | explore_stop condition greedy_pickup_smart no longer stops for items which were thrown by the player. The new condition greedy_pickup_thrown can be used by those who wish to stop auto-explore when thrown items are auto-pickup'd.
* Add formatting fixes.David Lawrence Ramsey2009-11-211-3/+4
| | | | This mostly puts && and || on the proper lines, per the style guide.
* explore_stop: greedy_pickup_smart, pickup_ignoreMatthew Cline2009-11-191-2/+9
| | | | | | | | | | | | | | | | | | | * Added the explore_stop option "greedy_pickup_smart", which is like greedy_pickup, but only stops for thrown items and items different than any in your inventory (and for fruit if you worship Fedhas). * Added the option explore_stop_pickup_ignore. Any items matching any of the regexes in the list will *not* cause "explore_stop = greedy_pickup" (or greedy_pickup_smart) to stop auto-explore. * "explore_stop = greedy_pickup" no longer stops when picking up gold. * "explore_stop = greedy_pickup" (or greedy_pickup_smart) now stops auto-explore after auto-pickup has happened, rather than right before it happens. * Removed obsolete ES_PICKUP.
* Revert to stop auto-explore on greedy-pickupMatthew Cline2009-11-171-1/+1
|
* Simplify out-of-range darkening.Robert Vollmert2009-11-161-3/+2
| | | | | | | | | | | | | | | Also fixes the range_view_annotator destructor clobbering option "darken_beyond_range". Options.target_range is now really an option, and called Options.darken_beyond_range. Current darkening range is now stored in crawl_state.darken_range. I can't reproduce SIGHUP retaining darkened range (BR 2151183) (why would it be saved?), so range_view_annotator is not a crawl_exit_hook anymore. crawl_exit_hook is not used anymore, but still present.
* luaterp (&^T): load files via terp_file optionMatthew Cline2009-11-151-1/+8
| | | | | | | You can now specify Lua files to be loaded for use in the wizard Lua interpreter via "terp_file = file_path" in your init file. These files will be run in the context of dlua, as opposed to the clua context of files included with "lua_file = file_path".
* By default, don't stop explore for greedy pickupMatthew Cline2009-11-131-2/+2
|
* Remove arena AI forcing option.Robert Vollmert2009-11-131-4/+0
| | | | | | | It's not strictly necessary anymore to have sensible fights with recent AI changes, and could easily be restored if required. Better to improve non-arena AI, however.
* 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
|
* Adjust SAVE_DIR_PATH to work with DGL.Marc H. Thoben2009-11-101-0/+6
|
* Fix typo (twb).Jude Brown2009-11-091-1/+1
|
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-0/+1
| | | | | | | | 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.
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-1/+4
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-132/+21
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Convert player::your_name to std::string.Robert Vollmert2009-10-241-1/+1
| | | | Doesn't seem to break anything...
* Specify arbitrary options on the command lineMatthew Cline2009-10-231-3/+90
| | | | | | | | | | 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.
* Moving data out of newgame.cc.Robert Vollmert2009-10-231-0/+2
| | | | Also move species<->string translation from player.cc to species.cc.
* Updated levdes.vim for KPROP. NO_RTELE_INTO property.Jude Brown2009-10-221-0/+2
| | | | | | NO_RTELE_INTO restricts random teleport from choosing a specific grid square marked with this. This does not stop controlled teleport onto specific grid squares; controlled teleport is completely unrestricted. Updated documentation for new property. Do not apply to branch ends/Orb chamber yet, please!
* FPROP_NO_CLOUD_GEN, stop specific lava and shallow water grids generating ↵Jude Brown2009-10-211-0/+2
| | | | | | relevant clouds. Signed-off-by: Adam Borowski <kilobyte@angband.pl>
* Documentation for KPROP. "force_exclude" for stopping auto-explore and ↵Jude Brown2009-10-211-0/+2
| | | | auto-travel across a single square.