summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
Commit message (Collapse)AuthorAgeFilesLines
* Amulet of stasis, first cut.Darshan Shaligram2010-01-111-0/+9
| | | | | | | | | | | | | | | Amulets of stasis blocks: - Teleport self - Blink in all forms - Slowing - Hasting - Paralysis - Petrify - Berserker rage The amulet auto-ids the first time it triggers. The amulet does not affect existing conditions (such as an existing Haste spell or an existing post-berserk Slow).
* Reduce berserk hp scaling to 1.5.Darshan Shaligram2010-01-101-1/+1
|
* Make unknown potions of rage override clarity. Drugs > being focused > anger.Adam Borowski2010-01-071-2/+2
|
* Rename transfor.{cc,h} to transform.{cc,h}.Adam Borowski2010-01-071-1/+1
|
* Give move/copy_item_to_grid responsibility for hazardous terrainStefan O'Rear2009-12-291-17/+12
| | | | We now have much less duplication of logic, yay.
* Make clarity allow intentional berserk.Adam Borowski2009-12-291-2/+2
| | | | | | Unknown potions of rage override it as well. This is a debatable thing, but since other sources of involuntary berserk are caused by "being angry", it makes sense a drug is not affected by merely being calm.
* Rename MF_CREATED_FRIENDLY to MF_NO_REWARD, since that's all it's used for ↵Stefan O'Rear2009-12-281-1/+1
| | | | these days.
* Customisable clouds!Jude Brown2009-12-281-2/+3
| | | | | | | | | | | | | | | | | | | | | 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. :-)
* Add tides to the Shoals.Darshan Shaligram2009-12-271-0/+2
|
* Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-8/+2
| | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* Make clarity prevent berserk. Only Trog may override this, and even then,Adam Borowski2009-12-201-2/+2
| | | | there's a penalty to success rate.
* Don't make monsters fully encaged in glass increase the tension.Johanna Ploog2009-12-191-5/+23
|
* Rehide triggered shaft traps.Robert Vollmert2009-12-151-6/+0
| | | | | | This should fix shaft milestones not being reported (bug #157), and also make the shaft destination logic work as apparently intended.
* Revert "Allow worshippers of good gods to kill hostile-neutral beings."Adam Borowski2009-12-141-3/+3
|
* Allow worshippers of good gods to kill hostile-neutral beings.Adam Borowski2009-12-131-3/+3
| | | | | This is still an unchivalric act for TSO since they don't seek you out as aggressively as normal hostiles.
* Properly use you.level_type_origin instead.Jude Brown2009-12-051-11/+4
| | | | | | | When changing levels and generating a note, misc.cc uses you.level_type_origin. place_name uses you.level_type__name instead. As you.level_type_origin is set to a variant of you.level_type_name, use that instead! That makes no sense.
* Add shaft milestone.Robert Vollmert2009-11-281-0/+6
|
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+1
|
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Only destroy shaft traps if they exist.Robert Vollmert2009-11-241-5/+10
| | | | Fixes crash for example when shafted by chaos weapons.
* Tutorial: fix brands being explained for first monster.Robert Vollmert2009-11-231-2/+0
| | | | | tutorial_first_monster is now called from fewer places, and doesn't issue TUT_MONSTER_BRAND itself anymore.
* Make monster-info pane work in arenaMatthew Cline2009-11-231-0/+2
|
* Remove some exclamation marks.Robert Vollmert2009-11-211-1/+1
|
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* Shaft trap behavior modified. They now are one-time use and pre-knowledge of ↵Alex MacDonald2009-11-181-1/+5
| | | | | | shaft traps (i.e. using them intentionally) will improve the chances of the player landing fewer levels away. Shaft traps also now randomly determine their destination. Monsters cannot follow the player through shaft traps. Signed-off-by: David Ploog <dploog@users.sourceforge.net>
* 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.
* Move tutorial state out of Options.Robert Vollmert2009-11-161-3/+3
|
* Make some viewwindow show update requirements explicit, remove others.Robert Vollmert2009-11-161-1/+1
|
* Wrap view flashing in flash_view.Robert Vollmert2009-11-161-2/+1
| | | | This also removes env.show updates when flashing.
* Split monster_pathfind out into mon-pathfind.cc.Robert Vollmert2009-11-161-0/+1
|
* Adjust slow and haste durationsCharles Otto2009-11-151-3/+11
| | | | | | | | Attempt to keep the number of slowed/hasted turns a player gets constant by doubling/halving the total amount of delay needed for the effects to wear off. Also adjust durations for berserk.
* Don't penalise Xom amusement for Minotaurs leaving labyrinths.Jude Brown2009-11-151-5/+3
| | | | | As they can no longer map the labyrinth, this penalty doesn't make that much sense now.
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|
* Fix blood spatter bloodifying water.Robert Vollmert2009-11-141-4/+8
| | | | | Blood is still allowed to spread via non-bloodifiable cells, but it doesn't stay there.
* Ballistomycete behavior improvementsCharles Otto2009-11-131-0/+1
| | | | | | Don't show wandering/dormant etc. for ballistomycetes. Consider inactive ballistomycetes harmless for travel purposes.
* Move most Royal Jelly code to dat/lair.desMatthew Cline2009-11-131-16/+0
|
* New door Lua marker propertiesMatthew Cline2009-11-121-0/+21
| | | | | | door_description_prefix: String to prefix to door name. door_open_prompt: Prompt user if they really want to open the door.
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-2/+2
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Convert another 45 monster loops to monster_iterator.Robert Vollmert2009-11-111-7/+5
| | | | | | | A total of 53 have been converted; 39 left, of which some should stay. Now at a net loss of lines of code for monster_iterator. Occurrences of MAX_MONSTERS down to 65 from 116 in *.cc.
* misc.cc: Extra leave-dungeon prompt in tutorialMatthew Cline2009-11-101-0/+9
| | | | | During tutorial mode, ask a second time if the player is *sure* they want to leave the dungeon.
* Add conditional bloodifying function and use it in some places.Robert Vollmert2009-11-101-2/+10
| | | | | This might help the reported blood-covered deep water, though I didn't see any obvious case that was a likely cause.
* Remove redundant bleeding check.Robert Vollmert2009-11-101-2/+1
|
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* CrawlHashTable: reduce RAM overheadMatthew Cline2009-11-101-8/+4
| | | | | | | The RAM overhead for an unused CrawlHash table has been reduced from 32 to 4 (on 32 bit systems), with an increased overhead of 4 bytes for ones which are used. This leads to a 35% RAM reduction for item_def instances with an unused props field.
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-5/+5
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Add an is_holy() function to the actor interface.David Lawrence Ramsey2009-11-091-1/+1
| | | | | | | | | | | | This is consistent with similar functions in that it checks not only for MH_HOLY holiness, but whether the monster is a priest of a good god (currently, there are none) and whether it uses holy spells (currently, there are none after the changes described below). Minor and Major Healing are now enchantments rather than holy spells. The beam code treats them as such; wands of healing aren't holy items the way e.g. wands of draining are evil items; and unholy monsters (among others, Lom Lobon!) can cast these spells.
* Replace mons_is_pacified with monsters::pacified.Vsevolod Kozlov2009-11-091-1/+1
|
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-2/+2
|
* Can't enter Hell from outside the dungeonMatthew Cline2009-11-091-0/+7
| | | | | | | | A bit of paranoia: only allow the player to enter a Hell entrance inside the dungeon (you.level_type == LEVEL_DUNGEON), since otherwise doing so generates a weird Vestibule level and then crashes when saving. I don't think anyone is ever going to think about putting a Hell entry in a portal vault, but just in case...