summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
Commit message (Collapse)AuthorAgeFilesLines
* * Copy zebez' and atastypie's installation instructions to INSTALL.txt.j-p-e-g2009-07-281-27/+0
| | | | | | | | | * Change version to 0.5.1. * Apply a patch by Adam Borowski to make /dir and *dir work with the arrow keys in the console version. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10454 c06c8d41-db1a-0410-9941-cceddc491573
* * Another magic mapping fix in cooperation with zebez. Thanks! :)j-p-e-g2009-07-281-10/+54
| | | | | | | | | * Don't make Detect creatures "detect" monsters you can currently see. * Replace rock stair tiles with Eino's escape hatch tiles. * Update change log once again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10447 c06c8d41-db1a-0410-9941-cceddc491573
* Backport r10443: generalized way of dealing with "disconnect at --more--"zelgadis2009-07-281-0/+10
| | | | | | | hacks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10444 c06c8d41-db1a-0410-9941-cceddc491573
* * Another patch by zebez: Display fountain tiles for magic mapping.j-p-e-g2009-07-241-3/+7
| | | | | | | | * Fix 2826781: Black background for Detect Items/Creatures tiles after magic mapping. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10393 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2826452: clearing the map after magic mapping giving features awayj-p-e-g2009-07-241-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10391 c06c8d41-db1a-0410-9941-cceddc491573
* * Change spell range display to something like @----->..j-p-e-g2009-07-231-1/+2
| | | | | | | | | This should be a bit clearer and is closer to the power display that also uses dots for potential not yet reached. * Fix 2824220: Magic mapping revealing real terrain tiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10388 c06c8d41-db1a-0410-9941-cceddc491573
* * Call viewwindow after placing an autoexclusion.j-p-e-g2009-06-161-1/+9
| | | | | | | * Fix monsters "bursting forth from the realm of bugdom". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9991 c06c8d41-db1a-0410-9941-cceddc491573
* Plug a couple of memory holes. Unfortunately, between libSDL andj-p-e-g2009-06-151-16/+28
| | | | | | | libfreetype there's loads of leakage that I can't do anything about. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9983 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug 2803113: mutant jackals swiveling their eyestalks towards you if youzelgadis2009-06-101-2/+7
| | | | | | | use the 0.3.4 glyph settings. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9938 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix double prompts for inscription warnings when clicking on the tilesj-p-e-g2009-06-071-2/+3
| | | | | | | | | inventory. * Change exclusions from buggy los back to full radius, so as not to delay the release any further. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9916 c06c8d41-db1a-0410-9941-cceddc491573
* Added some new tutorial events (not tested with the tile build):zelgadis2009-05-251-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | * Auto-explore hint (200 turns after level map hint). * Explanation of the "Your equipment suddenly weighs less" message. * Explanations of trap and heap branding (non-tile builds only). * A note that monsters that have moved out of LOS haven't just vanished. * Events for gaining an ability from a mutation and gaining one from an item which was just equipped, separate from the event for the first divinely granted ability. * An explanation that shouting monsters have just noticed you, plus that their shout is likely to attract the attention of other monsters. * A "seen portal vault entrance" event, since the entry to the sewers can appear on DL 3 through 6, and there's also a very small chance of a Zigguart entrance apearing as early as DL 3. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9823 c06c8d41-db1a-0410-9941-cceddc491573
* Make some of the new uniques appear earlier.j-p-e-g2009-05-121-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9759 c06c8d41-db1a-0410-9941-cceddc491573
* * Monsters shout only when they notice you (i.e. you are in sight).j-p-e-g2009-05-091-2/+5
| | | | | | | | | * Add a tile for out of range grids (lighter shade than out of sight). * Make Xom's repel stairs effect only happen during tension. * Add Z to keybind.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9755 c06c8d41-db1a-0410-9941-cceddc491573
* * Replace the range_view_annotator loop with an simple check for thej-p-e-g2009-05-051-0/+9
| | | | | | | | | | | | | | 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
* * Some more tweaks to the spellcasting interface.j-p-e-g2009-05-041-2/+3
| | | | | | | | | * Colour items out of range darkgrey, like we do for floor/monsters. * Fix berserk monsters choosing one of the nearest monsters randomly. (Seriously, I must have been half asleep when I wrote that.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9733 c06c8d41-db1a-0410-9941-cceddc491573
* [2784933] Fix monsters sometimes not stopping travel.dshaligram2009-05-031-3/+1
| | | | | | This may break messaging for monsters coming into view. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9725 c06c8d41-db1a-0410-9941-cceddc491573
* Some debugging fixes, once again.j-p-e-g2009-04-261-4/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9697 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix _place_monster_aux() not interrupting autoexplore.j-p-e-g2009-04-261-9/+14
| | | | | | | | Apparently, monsters can be directly placed at the edge of los, after all. * Change Ctrl-X -> Ctrl-S, V -> Ctrl-X, not documented yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9696 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow panlords to have the chaos-branded weapons.j-p-e-g2009-04-131-1/+1
| | | | | | | | * update stash tracker after Xom's teleportation journey. * A few tweaks to Xom debug noting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9599 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix compilation.j-p-e-g2009-04-121-2/+2
| | | | | | | | | | | | | * Fix wording of stair slide chaos effect. * Add new stimulation triggers for Xom (monsters being polymorphed, accidentally hasted/healed, or going berserk) which has the side effect of keeping Xom's interest up if you actually use the chaos branded weapon he gifted you. * Greatly reduce stimulation possible from deliberately quaffing bad potions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9596 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2726027: Warpwright card being broken.j-p-e-g2009-04-051-1/+4
| | | | | | | | Fix 2731677: Sleeping "patrolling" monsters being unwakable. Fix 2729898: Debugging markers on the level map showing up in nonwizmode games. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9586 c06c8d41-db1a-0410-9941-cceddc491573
* * Merfolk may wear heavy armour while swimming, though their armourj-p-e-g2009-03-291-1/+1
| | | | | | | | | | | | penalty is doubled in deep water. * Change "zombified ally" -> "mindless thrall" (and only count friendly monsters). * Call trackers_init_new_level() earlier, in load(), so that TileNewLevel() can use the correct travel information when drawing exclusions on the minimap. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9566 c06c8d41-db1a-0410-9941-cceddc491573
* * When Xom decides to cast Magic Mapping or send you on a teleportationj-p-e-g2009-03-291-9/+16
| | | | | | | | | | | | journey, use a random sample of level grids as a guesstimate of the explored portion of the level, and reduce chances for mostly explored levels. * Don't attempt to cast spells you wouldn't be able to cast (e.g. the transformations for undead). * Tweak random uselessness messages as per FR 2595700. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9565 c06c8d41-db1a-0410-9941-cceddc491573
* Remove vestiges of a debugging attempt.j-p-e-g2009-03-231-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9542 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow viewing of card descriptions from Triple Draw and Stack Deck.j-p-e-g2009-03-231-7/+8
| | | | | | | | | | * Sort items in 'V' screen according to pickup menu sort order. * Name Xom's randart book gifts more randomly. * Colour items seen by 'x' with message colour tags and same for pickup messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9541 c06c8d41-db1a-0410-9941-cceddc491573
* Remove references to unimplemented branches (Caverns, Pit, Inferno).j-p-e-g2009-03-141-6/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9474 c06c8d41-db1a-0410-9941-cceddc491573
* Remove more references to the now-unused Repel Undead.dolorous2009-03-091-7/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9400 c06c8d41-db1a-0410-9941-cceddc491573
* Remove unused demonspawn mutation to gate yourself to Pandemonium.dolorous2009-03-071-9/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9364 c06c8d41-db1a-0410-9941-cceddc491573
* [Tiles] Keep track of which dungeon grid the player last clicked andj-p-e-g2009-03-041-1/+1
| | | | | | | | | don't display the grid description (feature, item, monster) for that grid. Fixes (part of) 2660578, i.e. monster descriptions hiding fighting messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9330 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2646326]: restore LOS properly after using the applicator functionsharanp2009-02-271-13/+18
| | | | | | | to visit a different level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9264 c06c8d41-db1a-0410-9941-cceddc491573
* Implement a very basic attempt at message condensation: Store the most j-p-e-g2009-02-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | recent message in prev_message and only output it when another non-matching message rolls in or the player gets a turn. Matching messages (must be identical and issued in direct succession, like is the case with the message history condensation) increase the counter, so you end up with messages like: You feel sick. The killer bee misses you. (x3) The killer bee stings you. The killer bee stings you but doesn't do any damage. The killer bee misses you. (x5) ...instead of the 11 lines it would have been in total. This behaviour is controlled by the same option as the condensation in the message history, msg_condense_repeats. There's definitely room for improvement. At the moment the bracketed information is written into the message itself, which will prevent further merging in the message history, or, probably worse, cause ugly double-merging like "The killer bee misses you. (x3) (x2)". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9262 c06c8d41-db1a-0410-9941-cceddc491573
* Fix second half of [2628480]: monsters that shout while in view willharanp2009-02-251-0/+4
| | | | | | | | instantly be tagged as seen so that you get the appropriate message if they then move out of sight. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9216 c06c8d41-db1a-0410-9941-cceddc491573
* Don't give shout/talk messages if they're on the TALK_VISUAL channelharanp2009-02-251-2/+5
| | | | | | | | | (e.g., "The jelly quivers", "The jelly jiggles") and you can't see the relevant monster. Fixes half of [2628480]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9215 c06c8d41-db1a-0410-9941-cceddc491573
* Fix silly monster AI bug introduced in r9129. Oops. Fixes [2635574].haranp2009-02-251-5/+2
| | | | | | | Also fix mons_near() to be more correct. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9213 c06c8d41-db1a-0410-9941-cceddc491573
* Partial fix for [2628480]: use you.can_see() instead ofharanp2009-02-241-2/+0
| | | | | | | | | | | | | | | player_monster_visible() in monsters::name() and do_mon_str_replacements(), so that noninvisible monsters which shout when out of sight are handled correctly. This isn't really the bug that's there, but it needed to be done sometime. Note that this is a change: if a monster is too far away to see and you want to get its name, you'll have to set force_vis. I hope this doesn't break anything. Also, make the mgrd-out-of-sync message trigger outside of DEBUG_DIAGNOSTICS. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9195 c06c8d41-db1a-0410-9941-cceddc491573
* For 2089989, reallow friendlies to walk into your damaging clouds inharanp2009-02-211-1/+1
| | | | | | | some cases, regardless of god. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9145 c06c8d41-db1a-0410-9941-cceddc491573
* Implement [2535038]: monsters now have a chance of shouting wheneverharanp2009-02-171-5/+1
| | | | | | | | | they are woken up, unless it's by a successful stab. (The previous behaviour made them shout only when they were woken up by the player walking around.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9121 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2604363]: stashes and autoexplore leaked information about mimics.haranp2009-02-171-4/+9
| | | | | | | | (Incidentally, if you walk into a mimic by accident, the stash won't go away until the next turn. Technically a bug, but a minor one.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9118 c06c8d41-db1a-0410-9941-cceddc491573
* Change elemental type colour enum to use ETC_ prefix instead of EC_haranp2009-02-171-23/+23
| | | | | | | | 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
* Fix warning.haranp2009-02-151-13/+13
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9096 c06c8d41-db1a-0410-9941-cceddc491573
* More mgrd elimination and moving to coord_def().haranp2009-02-141-4/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9084 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-02-121-6/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9040 c06c8d41-db1a-0410-9941-cceddc491573
* Better fix for [2478607]: colours leaking information about trap status.haranp2009-02-091-1/+7
| | | | | | | | | | | | | | | There is still a bug in that 'x'ing over a former trap will describe the feature as 'floor' rather than 'trap'. This is because _describe_feature() looks at the actual grid, not the envmap. However, there is currently no perfect way to prevent this: map_cell only stores an appearance, not the actual feature layer. So if a monster was on a trap when you last saw it, and then the trap gets disarmed, there is no way to know that there was once a trap there. The correct fix is to have map_cell remember the object, feature and monster layers separately, but since this will break savefiles and require some work, I'm not fixing it yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9020 c06c8d41-db1a-0410-9941-cceddc491573
* Fix level map, and travel, knowing too much about the level. Hopefullyharanp2009-02-091-9/+4
| | | | | | | | this didn't break anything which travel depends on. Fixes [2051248]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9012 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-051-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8908 c06c8d41-db1a-0410-9941-cceddc491573
* Don't consider user options when deciding monster behaviour and whenharanp2009-02-041-1/+1
| | | | | | | | | giving a bonus for escaping nets due to dangerous monsters nearby. Don't give a bonus to escaping nets if nondangerous monsters (allies, plants, etc.) are nearby. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8896 c06c8d41-db1a-0410-9941-cceddc491573
* Move a bit more things to use coord_defs and iterators instead of x,y.haranp2009-02-041-44/+40
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8892 c06c8d41-db1a-0410-9941-cceddc491573
* Typos and other minor issues.haranp2009-02-011-39/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8874 c06c8d41-db1a-0410-9941-cceddc491573
* Code cleanups, mainly in clouds.haranp2009-01-311-29/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8865 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2541331]: monster blinking only looked to the southeast.haranp2009-01-291-2/+2
| | | | | | | | | | Also fix a subtle bug causing monsters to be able to teleport through walls if there was clear rock there too. (This is because num_feats_between() is not symmetrical in its first two arguments.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8847 c06c8d41-db1a-0410-9941-cceddc491573