summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix swamp drakes not getting effective meph cloud in Swamp.Darshan Shaligram2010-01-171-2/+6
|
* Burning trees in Swamp produces shallow water. Fire clouds adjacent to ↵Darshan Shaligram2010-01-171-4/+26
| | | | watery squares now produce steam.
* Trim unnecessary #includes.Adam Borowski2010-01-131-1/+0
|
* Add new killer_type KILL_MISCAST whose clouds don't autoexclude.Johanna Ploog2010-01-121-1/+2
| | | | | | | Not to be confused with KILL_MISC, which is used, among other for the flamethrower vaults. Aside from spell miscasts, KILL_MISCAST also applies to Zot traps and Xom effects.
* Make haloes interact sanely with gloom.Jude Brown2010-01-111-0/+4
|
* New type of cloud: thick gloom.Jude Brown2010-01-101-0/+27
| | | | | | | | | | | | | | | It's a fast-moving, long-lasting cloud that clumps together. It will dissipate very quickly unless it is near other clouds. It is opaque, and blocks line of sight with two or more clouds, but unlike other clouds, it does not actually use the '#' glyph. Instead, it colours the ground underneath it magenta. It's currently unused, and while it's an interesting visual effect that will have some great potential in portal vaults and specific branches, should probably be used very rarely. Also includes a tile for these, though I'm not too happy with the effect.
* A new cloud type: magical condensation trails, used by IOOD.Adam Borowski2009-12-301-0/+7
|
* Use the old message for rain, "You are engulfed in the rain." is bad.Adam Borowski2009-12-271-1/+4
|
* Customisable clouds!Jude Brown2009-12-281-28/+82
| | | | | | | | | | | | | | | | | | | | | 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. :-)
* New (rakshasa) unique: Mara, Lord of Ilusions.Jude Brown2009-12-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Tidy up bracket placement according to our coding conventions.Johanna Ploog2009-12-101-3/+2
|
* Fix reversed logic in is_damaging_cloud (bug #80).Jude Brown2009-11-281-1/+1
| | | | | | Was returning you.res_rotting() instead of !you.res_rotting(), meaning that you don't get a prompt for entering miasma clouds when you don't have rotting resistance, and that you do get a prompt when you do.
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Re-add Purple Smoke cloud type (sorear).Jude Brown2009-11-281-16/+25
| | | | | This is visually identical to translocational energy, but will have uses in portal vaults (specifically, wizlabs).
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-0/+2
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Remove obsoleted los.h includes.Robert Vollmert2009-11-131-1/+0
|
* Replace observe_cell by you.see_cell.Robert Vollmert2009-11-131-1/+1
|
* cloud.cc: KC_OTHER -> KILL_MISCMatthew Cline2009-11-121-1/+1
| | | | cloud_struct::whose_to_killer() maps KC_OTHER to KILL_MISC
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Remove some obsolete view.h-includes.Robert Vollmert2009-11-101-1/+0
|
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Fix broken steam cloud damage (Kyrris)Stefan O'Rear2009-11-091-2/+1
|
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-1/+2
| | | | | | | | 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.
* Replace uses of player_AC with player::armour_class.Vsevolod Kozlov2009-11-081-2/+2
|
* Rename purple smoke to clouds of translocational energyStefan O'Rear2009-11-061-10/+7
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-1/+1
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Move player_res_asphyx/rotting to player::res_asphyx/rotting.Vsevolod Kozlov2009-11-051-3/+3
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-0/+75
| | | | | | | | | | | | | 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.
* Implement "Passive Freeze" mutation (DS)Stefan O'Rear2009-11-021-1/+7
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Naming consistency.Robert Vollmert2009-10-171-2/+2
| | | | | 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-1/+1
|
* Merge branch 'trees'.Adam Borowski2009-10-131-3/+41
|\ | | | | | | | | There's still the issue of glyph choice, and cutting them down with an axe is not coded yet.
| * Merge branch 'master' into treesAdam Borowski2009-10-121-4/+70
| |\
| * | Trees -- a new wall type, can be seen through (2nd square blocks LOS).Adam Borowski2009-10-091-3/+41
| | | | | | | | | | | | | | | Available as 't' for vault builders. Can be ignited using wands of fire, but the fire can't be controlled.
* | | Add whitespace fixes.David Lawrence Ramsey2009-10-121-1/+1
| |/ |/|
* | kill some DEBUG/WIZARD compiler warnings about unused functionsSteven Noonan2009-10-101-0/+2
| | | | | | | | | | | | | | | | cloud.cc:45: warning: "bool _killer_whose_match(kill_category, killer_type)" defined but not used mutation.cc:1923: warning: "bool _is_random(mutation_type)" defined but not used ouch.cc:891: warning: "void _wizard_restore_life()" defined but not used Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* | Patch 2873911 by Jude: add rain cloudsCharles Otto2009-10-101-2/+68
| |
* | Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-2/+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.
* Mutagenic fog. Comes from Evaporate and fog generators. (due)Adam Borowski2009-10-071-0/+22
|
* Comment on duration of mephitic cloud confusion.Robert Vollmert2009-10-061-0/+2
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Make miasma and miasma resistance more consistent. It no longer dependsDavid Lawrence Ramsey2009-09-291-10/+6
| | | | on negative energy resistance, but on rotting resistance.
* As per FR 2795134, nerf damage reduction of elemental resistances.j-p-e-g2009-08-161-4/+15
| | | | | | | | | | | | Damage is now reduced to 50% (level 1, unchanged), 33% (level 2, was 20%), and 20% (level 3, was 10%), respectively. This only applies to players, monster resists are unchanged. The purpose of this change is to make the mid and late game harder without unduly affecting the early game. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10554 c06c8d41-db1a-0410-9941-cceddc491573
* Bug 2820876: don't do a big cloud miscast in non-lethal mode if two playerzelgadis2009-07-201-1/+89
| | | | | | | turns in the cloud could kill the player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10344 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fixes.dolorous2009-04-301-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9709 c06c8d41-db1a-0410-9941-cceddc491573
* For 2089989, reallow friendlies to walk into your damaging clouds inharanp2009-02-211-26/+13
| | | | | | | some cases, regardless of god. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9145 c06c8d41-db1a-0410-9941-cceddc491573
* Code cleanups, mainly in clouds.haranp2009-01-311-70/+59
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8865 c06c8d41-db1a-0410-9941-cceddc491573