summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/colour.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-0/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* The great mon-stuff migration.Shmuale Mark2014-06-221-1/+0
| | | | | | | | | A good deal of functions move to the two new files, mon-poly and mon-message. Of the others, some go to where they are used, some to mon-util, and a few are made member methods of monster. This probably breaks Xcode compilation, and I'm not able to test the changes I made to MSVC that will (hopefully) keep it working.
* Chance function(void) to function()reaverb2014-05-241-1/+1
|
* Qazlal: enums, initial descriptions.Steve Melenchuk2014-05-071-0/+24
|
* Restore Swamp tree colours; remove ETC_MANGROVEShmuale Mark2014-03-291-14/+2
|
* Allow minimap colour options to be set with hex codes and used in WebTiles.Pekka Lampila2014-02-171-25/+53
| | | | | | | | | | | | | | | | This changes the default WebTiles minimap colours to match local tiles. To get the previous default values use: tile_floor_col = #a9a9a9 tile_door_col = #a52a2a tile_item_col = #008000 tile_friendly_col = #ee9090 tile_peaceful_col = #ee9090 tile_plant_col = #006400 tile_upstairs_col = #0000ff tile_downstairs_col = #ff00ff tile_excl_centre_col = #00008b tile_excluded_col = #008b8b
* s/Dithmengos/Dithmenos/ (dpeg).Steve Melenchuk2014-02-101-1/+1
| | | | | At least three devs are probably waiting for this to be pushed if they're not about to push it themselves. So now it's done.
* Add a coloured flash when picking up a runePekka Lampila2014-01-301-0/+25
|
* Give the shadow god a non-placeholder name: Dithmengos.Steve Melenchuk2014-01-101-1/+1
|
* Recolour the shadow god's altar.Steve Melenchuk2014-01-101-0/+6
| | | | | | It was too readily confused with Zin and Kiku altars previously. Hopefully this will end up being a bit more distinctive.
* 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.
* More formatting fixes for return (...);Neil Moore2013-11-151-2/+2
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-5/+5
|
* Don't allocate pointless iterators.Adam Borowski2013-11-151-1/+1
| | | | | map or set.count() can test the presence of a given key and return 0 or 1 outright.
* Don't crash when using ETC_WAVES outside of Shoals.Neil Moore2013-10-261-0/+4
| | | | | | | | It could happen if there's a redraw in the middle of leaving shoals, after the heightmap is reset but before tile flavours have been reinitialised. This commit doesn't fix that problem, but there are other cases as well (such as a player giving something the "waves" colour).
* s/random3/ui_random/Adam Borowski2013-10-061-1/+1
| | | | Blame SamB for the name! It's all his fault.
* Use random3() for colour flicker and tile animations.Adam Borowski2013-10-061-1/+1
| | | | | These get called a different number of times if the window size changes, breaking reprocibility of games with the same random seed.
* Make elven walls even more eye-gouging, but less stony.Adam Borowski2013-06-101-1/+1
| | | | | This shed next repainting, badly. This is the least change from status quo, which doesn't make it good.
* Make Leda's red for visibility in more branches than just SwampChris Campbell2013-03-251-1/+2
|
* Disjunction aura tiles.ontoclasm2013-01-121-6/+11
|
* Restrict kraken colours to non-overlapping onesChris Campbell2012-12-091-8/+4
| | | | | Not that they'll ever really get mixed up with other X monsters, but just in case!
* Indentation fixes.Adam Borowski2012-12-051-4/+4
|
* DisjunctionBrendan Hickey2012-11-181-0/+35
| | | | | | | | | Level 8 translocation spell. Blinks away everything with diminishing probability with: P(~blink) = 0.8^(1/(dist+1)/(dist-1)) Over 10 ticks, a monster adjacent to the caster will blink with probability 0.9. Monsters may be blinked repeatedly.
* Properly fix the monster list health indicator under windows.Raphael Langella2012-10-211-2/+0
| | | | | | | | | The previous fix inverted the player glyph (how could I miss that?). This time, we're just not applying the heap_brand fix on windows since it doesn't seem to be affected by the bug anyway. This reverts commit 7b2d18452f1af3bec283ef3f6841d5fc5cc8da21. This reverts commit 80ba7f984ee2c939f3b4ddff4e5ca7016fe524a3.
* Whitespace fix.Raphael Langella2012-10-181-2/+2
|
* Fix monster list not displaying health indicator under windows (#6290).Raphael Langella2012-10-181-0/+2
|
* Use std namespace.Raphael Langella2012-08-261-13/+13
| | | | | | | | | | | | | 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.
* Drop a bunch of parentheses from return statements.Adam Borowski2012-08-081-1/+1
| | | | | This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
* Some more return deparenthesization.Adam Borowski2012-07-051-7/+7
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-13/+13
|
* Rename swamp trees to mangroves.Michael Gagno2012-07-031-2/+2
| | | | | Since these are opaque (and therefore behave differently from normal trees), a renaming is warranted.
* Drop TAG_MAJOR_VERSION == 32 ifdefs.Adam Borowski2012-04-251-24/+0
|
* Make a few functions static.Adam Borowski2012-04-201-3/+2
|
* Drop pointless braces after if/for/while everywhere.Adam Borowski2012-04-201-2/+0
|
* Declare an explicit type for colours.Adam Borowski2012-03-131-10/+10
| | | | | | | | | | An imperial buttload of places assumes these to be 8 bits, which makes it impossible to add support for 256 (or more!) colours. This commit tries to allow expanding it in the future; sadly, it is badly incomplete. At least, new code can use the new type. Also, beware of "branded" colours which use bits above 8 for inverse, underline, etc.
* New ctrl+V command to show monster HP, and other HP colouring improvements. ↵Michael Gagno2012-03-071-0/+22
| | | | | | | | | | | | | | | | | | (nfogravity) https://crawl.develz.org/mantis/view.php?id=5376 Pressing ctrl+v in console will colour all monsters based on their HP. This can be useful when fighting large groups. This mode deactivates itself the next turn, or you can toggle it off manually by pressing ctrl+v again. Zombies and skeletons are given lightgrey colouring, since you can't determine their HP. There is also a new option, enemy_hp_colour, which lets you define custom colours (applies to the ctrl+v display and the regular monster list). The old ctrl+v command (show equipped weapons) has been removed.
* Subtract more of subtractor stuff.Adam Borowski2012-01-021-0/+2
|
* Use a regular elemental colour rather than recolouring hacks for subtractors.Adam Borowski2011-12-271-0/+8
| | | | It'd be nice to have a flowing rainbow tile as well.
* Fix a few more console/webtiles discrepancies and USE_TILE where it should ↵Florian Diebold2011-12-141-1/+1
| | | | be USE_TILE_LOCAL.
* Fix a warning.Adam Borowski2011-10-261-1/+1
|
* Make Webtiles output happen in parallel to the console display, and make the ↵Florian Diebold2011-10-151-1/+1
| | | | | | | | | | | | | | | | | | server record ttyrecs. Crawl compiled with WEBTILES=y should now be playable normally (i.e. indistinguishable from one compiled without WEBTILES) when run from a terminal. (This is not yet completely the case.) The Webtiles data is written on a Unix-domain datagram socket; the Crawl parameter -webtiles-socket determines a path on which the Crawl process receives control messages. The Webtiles server then runs Crawl in a pseudo-terminal and records its console output into a ttyrec file. The goal of all this is of course to be able to watch Webtiles games from ssh, and later the reverse.
* Orb glow in tiles.Adam Borowski2011-08-271-2/+7
|
* Make the Orb glow pulse visually.Adam Borowski2011-08-251-0/+9
|
* Make a bunch of functions static or non-existant.Adam Borowski2011-08-171-5/+7
|
* Get rid of an useless std::map<uint8_t>.Adam Borowski2011-08-171-11/+10
|
* Fix a slight memory leak on restart_after_game.Adam Borowski2011-08-101-4/+10
|
* Require explicit enums for Lua colours.Adam Borowski2011-08-091-0/+4
| | | | | In theory, we could allow defining them with a floating name, marshalling that by string and so on, but that'd be a large pile of useless work.
* Adjust some whitespace and formatting.Adam Borowski2011-07-081-1/+2
|
* Rename element color ETC_GILA to ETC_FLASH.David Lawrence Ramsey2011-07-041-1/+1
| | | | | | Gila monsters are no longer in the game, the color is primarily used for the Cloak of Flash artefact, and the colors in it are rather flashy anyway, so this is a more appropriate name.
* Remove duplicate element color by subsuming ETC_NECRO into ETC_DEATH.David Lawrence Ramsey2011-07-041-1/+3
| | | | ETC_NECRO will be removed on the next major binary compatibility bump.