summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
Commit message (Collapse)AuthorAgeFilesLines
* Trim unnecessary #includes.Adam Borowski2010-01-131-1/+0
|
* Don't make slimes split if they could instead move closer to their foe.Johanna Ploog2010-01-121-7/+23
|
* Add a coinflip() to slimes splitting, so it's not as reliable.Johanna Ploog2010-01-121-3/+3
|
* Make slime creatures split in open space.Johanna Ploog2010-01-121-9/+13
| | | | | | | | | | | | | I removed an "unoccupied" because a comment claimed this shouldn't matter for splitting and also because doing so seemed to have the desired effect. I also added a check to make sure that splitting only takes place if it doesn't increase the distance to the foe, other adjacent cells are fine of course. With these changes, luring merged slime creatures into open areas causes them to split.
* Merge branch 'master' into ioodAdam Borowski2009-12-301-13/+1
|\
| * Merge branch 'shoals++'Darshan Shaligram2009-12-291-11/+1
| |\
| | * Boost Ilsuiw stats and give her Call Tide, which strongly boosts the tide in ↵Darshan Shaligram2009-12-291-11/+1
| | | | | | | | | | | | Shoals, pegs it towards high tide, and includes a local high tide maximum centered on Ilsuiw, which can be double the height of the normal high tide.
| * | Add purge's ballistomycete tiles, thanks!Johanna Ploog2009-12-281-2/+0
| |/
* | Merge branch 'master' into ioodAdam Borowski2009-12-271-0/+2
|\|
| * New (rakshasa) unique: Mara, Lord of Ilusions.Jude Brown2009-12-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Make the "killing friend" conduct, slouch and swapping place treat ↵Adam Borowski2009-12-201-0/+1
|/ | | | projectiles as non-monsters.
* Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-3/+1
| | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* Reduce siren and orc warlord noise to LOS radius.Robert Vollmert2009-12-171-2/+2
| | | | After all, that's the area they affect.
* If you can't move (paralyzed or slept), you won't move towards sirens.Adam Borowski2009-12-101-1/+2
|
* Rename "firedrake" to "fire drake".Jude Brown2009-12-021-1/+1
| | | | | | This brings it in line with all the other "drake" monsters: "swamp drake", "death drake", etc. I don't believe this change is contentious, and I hopefully haven't broken tiles build.
* Fix compilation.David Lawrence Ramsey2009-11-271-0/+2
|
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+3
|
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Use actor::can_see in ball lightning's special ability.Vsevolod Kozlov2009-11-261-9/+1
|
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* Remove trailing whitespace.David Lawrence Ramsey2009-11-201-1/+1
|
* Tweak ballistomycete activationCharles Otto2009-11-181-5/+20
| | | | | When an active ballistomycete dies activate a number of other ballistos equal to its count + 1, instead of just activating one other.
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-0/+1
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Wrap view flashing in flash_view.Robert Vollmert2009-11-161-2/+1
| | | | This also removes env.show updates when flashing.
* Message for unseen eyes starting at youMatthew Cline2009-11-151-5/+15
| | | | | If an eye you can't stares at you, you get the message "You feel you are being watched by something" before the effect happens.
* Bug #2896412: Breath broken after polymorphMatthew Cline2009-11-151-4/+10
| | | | | | | | | | | | If a wizard or priest is polymorphed into a monster without hands, then when it casts a spell preserved across the polymorph (rather than any innate ability or spell) then to avoid getting weird messages (like "Harold breaths UNSEEN BEAM at you") the first lookup key for dat/database/monspell.txt is "polymorphed wizard" or "polymorphed priest." NOTE: There should probably be a greater variety of messages depending on shpae, like "quadruped wizard" and "blob wizard".
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|
* Change ballistomycete spawn mechanics (again)Charles Otto2009-11-131-41/+20
| | | | | | | | | | | When a spore pops or a ballistomycete is killed randomly select a single ballisto to activate instead of activating the entire level's worth. Along with this, only deactivate the ballisto that produced a spore instead of deactivating the entire level. Rationale: since inactive ballistos don't interrupt travel anymore it's nicer from an interface perspective to keep most of the ballistos on the level inactive.
* Change ballistomycete messagingCharles Otto2009-11-131-15/+7
| | | | | Drop the deactivation message, simplify and change the activation messaging.
* Replace monster_index with monsters::mindex.Vsevolod Kozlov2009-11-131-5/+5
|
* Use monster_iterator in ballistomycete functionsCharles Otto2009-11-131-25/+24
| | | | Also some comment and whitespace changes.
* Messaging and code formatting (+comment) improvements.Charles Otto2009-11-131-13/+24
|
* Fix a couple compile errors caused by the merge.Charles Otto2009-11-131-1/+2
|
* Merge spore experiments branch.Charles Otto2009-11-131-0/+105
|\
| * Change ballistomycete spore mechanics againCharles Otto2009-11-121-4/+75
| | | | | | | | | | | | | | | | New status: if a ballistomycete or giant spore dies any ballistos on the level get +1 to a counter. Ballistos with a count higher than zero get spore production on a short (~150 turn) timer. When a spore is spawned (by a ballisto) the count of all ballistos on the level is decreased by 1.
| * Change the ballistomycete activation mechanicCharles Otto2009-11-111-2/+1
| | | | | | | | | | | | | | Give ballistomycetes a counter, when it's at zero they have the slow spawn rate (are considered inactive), when it's greater than zero they have the fast spawn rate. Killing a ballisto gives +1 to any others on the level, a ballisto spawning a spore subtracts 1 from its own counter
| * Give giant spores a chance of spawning ballistos while wanderingCharles Otto2009-11-111-0/+35
| | | | | | | | | | | | Give giant spores a chance of creating a ballistomycete when they move while wandering. This ability is on a timer, so they can't create more than 1 ballisto per 20 turns. Numbers may need tweaking.
* | Add summoner and non_actor_summoner to mgen_dataStefan O'Rear2009-11-121-1/+4
| | | | | | | | | | Monsters now know who summoned them. This will be important later. Probably breaks something; saves are not one of them.
* | Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-3/+3
| | | | | | | | | | 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-38/+27
| | | | | | | | | | | | | | 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.
* | Move monster speech calculations to monspeak.cc. Make Yiuf chattier.Jude Brown2009-11-111-40/+1
|/ | | | | | | | | Crazy Yiuf now speaks with more regularity than normal; this is a special case, and could probably be converted to a flag (M_CHATTY) or something similar for other uniques. The monster-speaking chance code seems to make more sense being in monspeak.cc, so moved it there under maybe_mons_speaks.
* Make actor::heal return bool; move heal_monster to monsters::heal.Vsevolod Kozlov2009-11-101-1/+1
| | | | | | | | monsters::heal and heal_monster used to have slightly different logic for increasing maximum HP. Now the heal_monster logic is used everywhere. player::heal always returns true at the moment, but since its return value is never checked, that does not affect anything.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-1/+0
| | | | Also add a few previously indirect includes.
* Remove inside_level_bounds.Robert Vollmert2009-11-101-1/+1
| | | | | This was a weird mix of in_bounds and map_bounds (exclusive top-left, inclusive top-right). Replaced with in_bounds.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-1/+1
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Replace mons_is_pacified with monsters::pacified.Vsevolod Kozlov2009-11-091-2/+2
|
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-1/+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 mons_cannot_act with monsters::cannot_act.Vsevolod Kozlov2009-11-081-1/+1
|