summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix 440: beam path display improperly initialized in Tiles.Haran Pilpel2010-01-161-1/+7
|
* Fix tiles compilation.Johanna Ploog2010-01-151-1/+1
|
* Merge Firing and Aim lines, per dcss:messagespam.Haran Pilpel2010-01-151-107/+153
|
* Mara's summoned ghosts are "illusions".Jude Brown2010-01-081-1/+6
|
* Change "wrath" needles to "frenzy".Jude Brown2010-01-071-0/+1
| | | | | | | | | This introduces a new monster enchantment: ENCH_INSANE (or frenzy), sends the monster neutral and berserk at the same time. The needle now has the effect of causing this enchantment, instead of just sending monsters berserk. It now actually has some use, even if it is slightly risky.
* Add a comment.Johanna Ploog2010-01-041-0/+1
|
* Fix 2903951: duplicate letters in the Ctrl-X menu.Johanna Ploog2010-01-041-3/+3
|
* Ignore obscured items in the UIStefan O'Rear2009-12-301-7/+7
| | | | I probably missed a few spots.
* Rename MF_CREATED_FRIENDLY to MF_NO_REWARD, since that's all it's used for ↵Stefan O'Rear2009-12-281-2/+2
| | | | these days.
* Customisable clouds!Jude Brown2009-12-281-2/+1
| | | | | | | | | | | | | | | | | | | | | cloud_struct now has members for colour, name, and tile; colour will be used instead of the default colour of the cloud type, and will be used to recolour the tile of the cloud (if it exists). Name will be used to rebrand the cloud's description, and also alter the message generate while standing in a cloud. Finally, tile can be used to completely customise the tile used for the cloud. The value is stored as a string in order to maintain save compatibility across ASCII and tiles. A random tile (found using tile_main_count) from that set will also be used, however, no duration effects will be applied. Recoloured cloud tiles using just the colour code should be possible, though aren't yet fully tested. This commit bumps TAG_MAJOR_VERSION: changing marshalling of the FogMachine Lua code causes nasty crashes on reloading saved games. Otherwise, I don't think I broke anything else. :-)
* Save Shoals heightmap in level tag, increment tag minor version.Darshan Shaligram2009-12-271-2/+7
|
* New (rakshasa) unique: Mara, Lord of Ilusions.Jude Brown2009-12-241-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | This re-uses several ideas from the Emerald Eye FR, and implements the spell "Mislead": this grants the "Misled" status effect to the player, and causes on-level monsters to appear (glyph, name and tile) to be other monsters. Only their appearance is changed. Healing potions and rain remove this status effect. Mara also has a beefed-up version of the Rakshasa clone spell: it instead creates an "exact" clone (slightly altered spells list, and non-unique status for his clones). Only two will ever be created at once. Finally, he has the spell "Summon Player Ghost". This spell creates a ghost of the player (though marked as a summon, meaning that it (shouldn't) register a milestone, though it will be treated as a self-ghost kill) that is hostile. Only one of these should be existant at any one point in time. I'm pretty sure that I haven't broken anything, but would definitely appreciate someone sanity-checking this commit. Known minor issue: Kirke's summon ugly things being cast while having the Misled status causes them to show up with no glyph.
* A wizard command "x,", to bring a mon down to 1hp.Adam Borowski2009-12-181-0/+10
| | | | | It could be made to ask for a specific number, but I'm too lazy to code that right now.
* Fix 2916323: move an ASSERT inside a DEBUG #ifdef.Johanna Ploog2009-12-171-1/+1
| | | | The variable wasn't even declared outside the DEBUG check.
* Make mimics hold the item they're mimicking, instead of fragile hacks with ↵Adam Borowski2009-12-151-13/+3
| | | | saving RNG state.
* Remove messages about monsters "peering into the shadows".Johanna Ploog2009-12-131-29/+0
| | | | | With sense/see invisible being included in monster descriptions it's not necessary any more and only serves in making monster status longer.
* Describe good_neutral monsters differenly from neutral (hostile to you) ones.Adam Borowski2009-12-131-0/+2
|
* Add further door_XXX properties for opening, closing, etc.Jude Brown2009-12-061-5/+29
| | | | | See documentation. This is somewhat hackish (or at least, hackier), but I think there's a precendent for it at least.
* Add an option to draw the player cursor manually.Robert Vollmert2009-11-281-1/+1
| | | | | | | | | | | | | 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.
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Add third menu action type ACT_MISCMatthew Cline2009-11-271-1/+1
| | | | | | | | To the menu actions ACT_EXECUTE and ACT_EXAMINE add the third action type ACT_MISC, for things like deleting menu entries. The member "allow_toggle" has been changed to "action_cycle", with the possible values CYCLE_NONE (default) , CYCLE_TOGGLE (allow_toggle == true), and CYCLE_CYCLE (cycle through all three possible action types).
* Fix tiles compile.Robert Vollmert2009-11-251-1/+2
|
* Make object targetting heed range and needs_path.Robert Vollmert2009-11-241-15/+6
| | | | Also simplify mimic handling by referring to map_knowledge.
* Make different direction targets independent; cleanup.Robert Vollmert2009-11-241-70/+54
| | | | | | | If you first cycle to a monster, then to some object, the object will be searched starting at the center. Also use coord_def& mfp for both input and output.
* Remove options target_oos and target_los_first.Robert Vollmert2009-11-241-9/+6
|
* Remove unused option target_wrap.Robert Vollmert2009-11-241-3/+3
|
* Remove unused default arguments.Robert Vollmert2009-11-241-4/+4
|
* Remove option target_zero_exp.Robert Vollmert2009-11-241-6/+2
| | | | | | The same effect can now be achieved by overriding ch_target_monster. If anyone wants this, I'm happy to provide lua code.
* Allow overriding of monster target selection through Lua.Robert Vollmert2009-11-241-0/+11
| | | | | | | | | | | _find_monster now calls ch_target_monster with coordinates of a possible target. Currently ch_target_monster is only passed the relative coordinates of the possible target. It could easily be passed flags like need_path. Eventually, it should be able to check what the targetting is about (which spell, etc.), but that's not so easy to do currently.
* Remove redundant check.Robert Vollmert2009-11-241-2/+2
|
* Remove multi-purpose Options.mlist_targetting.Robert Vollmert2009-11-231-36/+20
| | | | | | | | 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().
* Mark read-only parameters to direction() const.Robert Vollmert2009-11-231-5/+5
|
* Extract target mode description.Robert Vollmert2009-11-231-5/+18
|
* Give "struct dist" a constructor, for initingMatthew Cline2009-11-231-0/+7
| | | | | Fix Valgrind warnings about uninialized values in the dist struct (now class) by giving it a constrcutor which initializes all values.
* Fix targeting do-command-againMatthew Cline2009-11-231-0/+4
| | | | Oops.
* tiles: Make mod-L-click actions do-again-ableMatthew Cline2009-11-221-5/+4
| | | | | | | If you fire/cast/zap at a monster with mod-L-click, then you can do the command over again with the "`" key. Doesn't work yet with spells cast via the spell pane (toggled on with "_"), or with items fired via clicking on the inventory pane.
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* Remove trailing whitespace.David Lawrence Ramsey2009-11-201-1/+1
|
* Remove unused crawl_exit_hook.Robert Vollmert2009-11-201-13/+0
|
* directn.cc: Handle CMD_TARGET_CENTERMatthew Cline2009-11-181-0/+6
|
* Avoid triggering an assert when firing while standing on a plantCharles Otto2009-11-171-0/+1
| | | | | | | | | | | An assert in ray_blocker was being triggered off of a call to _get_monster_desc when attempting to cast targeted spells while standing on a plant (as a Fedhas worshiper). find_ray returns false when the target square is equal to the source, which triggers the assert in ray_blocker. I added a check for the monster being on the same square as the player prior to the call to _blocked_ray in _get_monster_desc, although this may not be the right way to deal with the issue.
* tiles: Fix "show beam path" hiding monstersMatthew Cline2009-11-171-1/+1
|
* 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.
* Expose invisible monsters in opaque clouds.Robert Vollmert2009-11-161-2/+22
| | | | Implements FR 2898414.
* Move tutorial state out of Options.Robert Vollmert2009-11-161-2/+2
|
* Simplify out-of-range darkening.Robert Vollmert2009-11-161-12/+9
| | | | | | | | | | | | | | | 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.
* Make some viewwindow show update requirements explicit, remove others.Robert Vollmert2009-11-161-3/+3
|
* Replace get_show_symbol by get_show_glyph.Robert Vollmert2009-11-151-7/+4
|
* Actually use monster_info in full_describe_view.Robert Vollmert2009-11-151-32/+13
|
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|