summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Combine player_knows_spell, player_has_spell into player::has_spell.Vsevolod Kozlov2009-11-051-5/+5
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+2
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* tilereg.cc: add missing includesSteven Noonan2009-10-231-0/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* More renaming and reorganization of feature checks.Robert Vollmert2009-10-171-3/+3
| | | | | | | | | There were a couple of functions is_something(dgn_feature_type feat) defined in travel.cc that were otherwise independent of travel. For consistency, move these to terrain.cc and rename to feat_is_something. One might also consider renaming the various feat_is_whatever functions to just is_whatever.
* Naming consistency.Robert Vollmert2009-10-171-11/+11
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Globally replace see_grid by see_cell.Robert Vollmert2009-10-171-2/+2
|
* MSVC: add tiles build supportSteven Noonan2009-10-121-0/+8
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: fix msvc compile breakageSteven Noonan2009-10-121-0/+4
| | | | | | MSVC is like a chimp with Down's syndrome. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-1/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.
* Fix tiles compile (missing includes after view.cc split).Robert Vollmert2009-10-091-0/+1
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Add spelling fixes.David Lawrence Ramsey2009-09-231-3/+3
|
* * Fix 2862312: examination of items in shops not working after buyingj-p-e-g2009-09-211-2/+13
| | | | | | | | | | | | | | | something * FR 2836364 : Make controlled blink contaminate the player. * Fix 2841232: display "very slow" in the % screen. * FR 2858960 : Re-add mouseover descriptions for previously seen (but not detected) features out of sight, and for plain floor the stash description like when using 'x'. * Disallow placement of corpses within walls, and allow rock worms to leave corpses elsewhere. * Minor tweaks to the documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10766 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2860301: armour acquirement failing when transformed.j-p-e-g2009-09-171-1/+2
| | | | | | | | | | | | * Fix 2829495: certain missiles and large weapons not being marked as useless. * Post-berserk exhaustion cancels Haste even wearing an amulet of RS. If you've got a lot of speed piled up it will last 2-3 more turns, but that's it. * Make tiles spell clicking use Z rather than z behaviour. (Assuming that mindless mouseclicks are more difficult to do than mindless keyboard bashing. That, and macros don't take into account mouseclicks.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10690 c06c8d41-db1a-0410-9941-cceddc491573
* Experimentally use Denzi and/or Mitsuhiro's water tiles for the Shoals.j-p-e-g2009-09-161-0/+4
| | | | | | | | | | | | It's possible that they make the water look too busy, but maybe I only need to get used to it. Also add some more alternative tiles for the plain dungeon floor and walls, and move around some spell tiles again. Also fix 2844278: melding stacks stat bonuses for Merfolk. Update change log for the starting stat and exclusion changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10688 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2841668: Crawl segfaulting when attempting to use mpr() within thej-p-e-g2009-09-141-10/+26
| | | | | | | | DollEditRegion. Also, if the target file (dolls.txt) within settings/ is writing protected create the file locally instead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10678 c06c8d41-db1a-0410-9941-cceddc491573
* Jump from the memorisation display back to spells if you cannot memorisej-p-e-g2009-09-141-2/+3
| | | | | | | any further spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10677 c06c8d41-db1a-0410-9941-cceddc491573
* Fix multiple mouseclicks causing the same spell to be memorised severalj-p-e-g2009-09-141-2/+1
| | | | | | | times. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10676 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2858572: tiles spell memorisation crashes.j-p-e-g2009-09-141-5/+5
| | | | | | | Also handles dangerous spellbooks correctly now, prompts and all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10675 c06c8d41-db1a-0410-9941-cceddc491573
* * Show item type shortcuts in inventory. I think it's too intrusive forj-p-e-g2009-09-141-10/+27
| | | | | | | | | | ASCII even though it works well in tiles. * Always display memorise button because it's less confusing that way. I still can't work out why the error messages disappear right away. *sighs* * Add a short document on tiles creation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10673 c06c8d41-db1a-0410-9941-cceddc491573
* Adapt Matthew's new memorisation interface for tiles, using the samej-p-e-g2009-09-121-24/+61
| | | | | | | | 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 a button to memorise spells to the new spell display. All this doesj-p-e-g2009-09-111-9/+37
| | | | | | | | at the moment is call learn_spell(), but I'm planning to reuse the spell display for this purpose. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10655 c06c8d41-db1a-0410-9941-cceddc491573
* Move around a couple of spell tiles, reorder spells in the tiles code,j-p-e-g2009-09-111-1/+6
| | | | | | | | and document the missing tiles. Also add a tile for small skeletons, and update the change log. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10653 c06c8d41-db1a-0410-9941-cceddc491573
* ...and draw these new spell tiles too.ennewalker2009-09-111-1/+12
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10652 c06c8d41-db1a-0410-9941-cceddc491573
* Adding spell images, rltiles build script, and a tileidx_spell function. ↵ennewalker2009-09-111-0/+3
| | | | | | There are quite a few spells that don't have images (marked as TODO in tileidx_spell) and about three images that are named "unknown" because I can't figure out what they map to. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10651 c06c8d41-db1a-0410-9941-cceddc491573
* Display spell cost, success chance, schools, power, range, and hunger inj-p-e-g2009-09-101-1/+5
| | | | | | | | the new tiles display (in the title, quantity, mouse-over description, and right-click description). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10649 c06c8d41-db1a-0410-9941-cceddc491573
* Add an inventory-like region for the Tiles version to make spellsj-p-e-g2009-09-101-2/+67
| | | | | | | | 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
* Another minor doll edit screen tweak.j-p-e-g2009-08-211-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10590 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak the doll edit screen some more.j-p-e-g2009-08-201-16/+24
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10583 c06c8d41-db1a-0410-9941-cceddc491573
* Fix draconians not being handled correctly in the doll edit screen.j-p-e-g2009-08-191-11/+33
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10579 c06c8d41-db1a-0410-9941-cceddc491573
* More doll changes:j-p-e-g2009-08-191-4/+71
| | | | | | | | | | | | | | * Restrict BASE to species-fitting dolls after all. (We may want to add this once we've worked out a way to distinguish between species-dependent differences, and those the player wishes to apply to all characters. For now, it's just terribly confusing to have all characters look like Centaurs just because I prefer the brown tiles over the grey ones.) * Allow the old gnome tiles as alternative for Mountain Dwarf. * Using Enter in the doll menu confirms the current choice and automatically changes equip to the current index and mode to custom. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10576 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow choice of "none" for species/base in the doll edit screen.j-p-e-g2009-08-191-10/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10574 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak the doll edit screen.j-p-e-g2009-08-181-16/+60
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10570 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing blurriness on some tiles textures. This may fix the related issue on SF.ennewalker2009-08-181-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10569 c06c8d41-db1a-0410-9941-cceddc491573
* Reimplementing playing with dolls ('-' command). Keys are mostly the same ↵ennewalker2009-08-181-232/+490
| | | | | | | | | | | | | | as the 0.4 version and are documented. Dolls are no longer limited in what features they can force, so your character can always look like a flaming centaur with wings if that's how you want to present yourself. This shouldn't cause any major breakage with save games or dolls.txt files, although expect some weirdness. Sorry. Also, fixed a bug where barding wasn't appearing on nagas or centaurs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10568 c06c8d41-db1a-0410-9941-cceddc491573
* Apply patch 2825337 by zebez: move trapping net tile to player.png toj-p-e-g2009-07-221-5/+1
| | | | | | | | | | save on memory and only load title.png if Options.tile_title_screen is true. Also: delete m_region_title once the title screen was shown. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10376 c06c8d41-db1a-0410-9941-cceddc491573
* Reduce the chance for the new alternative water tiles as they make themj-p-e-g2009-07-161-5/+11
| | | | | | | | | a bit too unruly for my taste. We might even want to remove the alternative for shallow water entirely, seeing how they're often just puddles, but for now I think it's okay. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10243 c06c8d41-db1a-0410-9941-cceddc491573
* Apply patch by zebez to add variants for a number of tiles (mostlyj-p-e-g2009-07-151-5/+7
| | | | | | | | | | mirrored) as well as some nicer tiles for disturbance in water and the entrance to Pan. Thanks! Also, update commandline options help to use of species/job. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10228 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak Shoals algorithm to place the islands a bit more central and away from j-p-e-g2009-07-141-1/+1
| | | | | | | | | | | | | | | the border (so they're not cut off anymore). Also add a new feature type DNGN_OPEN_SEA that is an impassible feature only intended for the Shoals border. Will need special handling for confusion, I guess. I've also tweaked the level generation, so Shoals vaults don't need to be connected anymore (the algorithm just adds superfluous floor corridors), but I still get loads of corridors on the bottom level - frustratingly enough only inside the map border, and they (usually) don't even contain any stairs or other features. It's maddening! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10213 c06c8d41-db1a-0410-9941-cceddc491573
* * Add a tile for detected secret doors as suggested by zebez, then turnedj-p-e-g2009-07-131-24/+32
| | | | | | | | | | | | | the idea on its head. * Fix corpses getting the wrong blood stain background tile (also a patch by zebez), and change around the colours a bit: a red blood stain now shows that Vampires can drain the corpse, undrainable corpses get the green background instead * Apply a small patch by Josh Triplett to give more appropriate messages when glowing weapons are sacrificed and disappear "without a glow" git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10209 c06c8d41-db1a-0410-9941-cceddc491573
* Detected secret doors are now treated as a distinct new door type, soj-p-e-g2009-07-111-11/+3
| | | | | | | | | | | | that stupid monsters will continue to ignore them as long as they've never been opened. Shifts wall and door types of existing save files. Also apply patch by one the "nobodies" to make bloody tiles show up again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10167 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles: Save per-character equipment setting and use it in the characterj-p-e-g2009-07-071-0/+35
| | | | | | | | | | | | | | | | selection menu. TODO: Use this instead of dolls.txt for initialising dolls, falling back on dolls.txt if name.tdl cannot be found and for new characters. I've tried displaying floor type but found it resulted in an information overload, and also distracts from the main information (species, equipment), esp. since it's mostly floor and most of the tile is covered anyway. I left it in (though commented out), so it's in the repository, but will remove it afterwards. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10122 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix centaur/naga tiles not being displayed correctly in the characterj-p-e-g2009-07-031-2/+5
| | | | | | | | | | | | | | | | | 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
* Add player icons (default species/job tile) to the selection menu for j-p-e-g2009-07-011-2/+2
| | | | | | | | | | | | | | | | | | | | saved games. Bugs/issues: * cannot handle more lines than fit the screen [*] * does not show actual equipment * probably should respect dolls.txt settings I guess the equipment problem could be solved by yet another per-character save file similar to dolls.txt, so newgame.cc could read directly from this rather than have to open the save to calculate equipment tiles or any such insanity. *) presumably because maxpagesize() assumes the entire screen is available for use by the menu git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10083 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my previous commit to trunk.j-p-e-g2009-06-241-3/+14
| | | | 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/+24
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10015 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my tile doll fixes to trunk.j-p-e-g2009-06-201-6/+11
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10011 c06c8d41-db1a-0410-9941-cceddc491573