summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a few last miscellaneous minor fixes.dolorous2008-06-091-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5626 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up the routines to animate the dead.dolorous2008-06-091-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5621 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up yet more.dolorous2008-06-071-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5550 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-06-071-7/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5514 c06c8d41-db1a-0410-9941-cceddc491573
* Consolidate summon_ugly_thing() into summon_ice_beast_etc(), and rename dolorous2008-06-061-2/+1
| | | | | | | the latter summon_general_creature(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5511 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1986252: double "Blech! You need xy!" messagej-p-e-g2008-06-061-9/+15
| | | | | | | | | | | | | | Fix 1966204: make non-amphibious undead capable of drowning or the equivalent thereof When you see a weapon with the returning ego return (to you or a monster) set the properties known along with the brand (because artefacts can't be id'd by throwing alone, anyway). This helps alleviate BR 1958616, but doesn't solve the problem with the curse status being unknown. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5499 c06c8d41-db1a-0410-9941-cceddc491573
* Fix mimics not teleporting when attacked by reaching or airstrike, and aj-p-e-g2008-06-051-1/+9
| | | | | | | few (really) minor adjustments on monster pathfinding. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5487 c06c8d41-db1a-0410-9941-cceddc491573
* Don't allow "Summon Wraiths" to summon shadow wraiths anymore, as dolorous2008-06-041-2/+1
| | | | | | | | | | they're invisible, nothing else seems to allow summoning invisible monsters, and handling of such is a can of worms due to the visual messages when summoning ("A shadowy figure forms in the air before you [that you can't see]."). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5470 c06c8d41-db1a-0410-9941-cceddc491573
* Fix summoned monsters spattering blood.j-p-e-g2008-06-031-2/+5
| | | | | | | Fix menu colouring giving away unknown evil items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5456 c06c8d41-db1a-0410-9941-cceddc491573
* Add more miscellaneous minor fixes.dolorous2008-06-021-1/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5426 c06c8d41-db1a-0410-9941-cceddc491573
* Reduce the chance of summoning a very ugly thing a bit more.dolorous2008-06-011-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5419 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1962147: Move the comments on the food you eat at the end of DELAY_EAT.j-p-e-g2008-05-311-24/+22
| | | | | | | | | | | | | | | | Fix 1971216: Kills by confused undead use LIVING_KILLED_BY_SERVANT instead because the message ("collateral kill") fits better and, though it's basically a hack, the distinction does fit somehow. Fix 1914948: Tweak message when you resist a spell cast by an invisible monster. Fix 1946608: Print "Nothing appears to happen." if reading ?EWI when unarmed. I guess that's it, plus probably some more cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5378 c06c8d41-db1a-0410-9941-cceddc491573
* Allow the monster version of "Summon Undead" to summon spectral dolorous2008-05-301-1/+2
| | | | | | | warriors, just as the player version does. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5345 c06c8d41-db1a-0410-9941-cceddc491573
* Outsource more miscellaneous names besides colors (glowing color types, dolorous2008-05-261-1/+1
| | | | | | | | | writing types for Tomes of Destruction), and move them into their own file. Also, tweak the message for glowing colors used by scrolls of random uselessness so that they no longer have to start with consonants. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5269 c06c8d41-db1a-0410-9941-cceddc491573
* Force fleeing monsters to "turn to fight" before breathing at you.j-p-e-g2008-05-251-15/+12
| | | | | | | | (Fixes 1967981: TSO punishes fighting back against "helpless" fleeing monsters.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5236 c06c8d41-db1a-0410-9941-cceddc491573
* Rename SPELL_SUMMON_SMALL_MAMMAL and SPELL_SWARM to dolorous2008-05-231-3/+3
| | | | | | | | SPELL_SUMMON_SMALL_MAMMALS and SPELL_SUMMON_SWARM, respectively, to match their user descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5188 c06c8d41-db1a-0410-9941-cceddc491573
* Pull code from mon->can_see(target) into a new function mon->see_grid()j-p-e-g2008-05-181-3/+0
| | | | | | | | | | | | | and use it in the checks for monster/monster visibility. I didn't have the time to test it but it should at least solve part of the problem of monsters firing through walls (if monster visibility is even checked there, which I don't know). Also (as usually), more code cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5117 c06c8d41-db1a-0410-9941-cceddc491573
* Dial down the power of monsters' Dispel Undead a bit.dolorous2008-05-181-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5116 c06c8d41-db1a-0410-9941-cceddc491573
* Add a tutorial hint for encountering an invisible monster and offer a j-p-e-g2008-05-151-2/+2
| | | | | | | | | | | different healing message if you recently met an invisible monster, as suggested in FR 1964267. Killing an invisible monster does not yet reset the counter, though I guess it should. Also, disallow randart weapons to be named after Sif Muna. (Vehumet, too, maybe?) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5052 c06c8d41-db1a-0410-9941-cceddc491573
* FR 1962016: Make hydra headedness more obvious.j-p-e-g2008-05-141-19/+22
| | | | | | | | | | | | | | You now get messages like "The seven-headed hydra bites." and "You slice the 12-headed hydra." FR 1963606: Take a note when you pick up a rune (or the Orb!) for the first time. There are a couple of other files I changed, but I can't remember any big stuff, so it was probably just cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5029 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up monster generation functions, separate monster zombie type from ↵dshaligram2008-05-051-45/+50
| | | | | | | | | monster number. May be buggy. Allow hydra zombies (they currently do not get the right number of heads). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4872 c06c8d41-db1a-0410-9941-cceddc491573
* Add two new channels, MSGCH_FRIEND_SPELL and MSGCH_FRIEND_ENCHANT,j-p-e-g2008-04-291-23/+47
| | | | | | | | | | | | | | | | | | whose sole purpose is to not interrupt resting if it's a friend doing the spellcasting or enchanting. Unspam the message handling for orcs going in a battle frenzy, and allow the message back into normal game. Fix 1953632: Named monsters' names are shown for unseen invisible monsters. Change general monster name handling to refer to friendly monsters as "your monster" rather than "the monster", like was already the case for monster speech. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4769 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-04-251-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4633 c06c8d41-db1a-0410-9941-cceddc491573
* Allow monsters to pick up and exchange armour if they find somethingj-p-e-g2008-04-251-483/+480
| | | | | | | | | | | | | | | | | | | | | | better. This will only happen if the armour will fit the monster (correct size) and if the new armour has a better AC, or both items have the same AC but the new armour has a higher value (uses shopping values). Matching racial type (orcish for orcs, elven for elves) doubles an item's value, so between two plain +0 ring mails, one orcish one not, an orc will always prefer the former. Friendly monsters now may pick up items dropped by other friendlies. This means that they can re-collect their own thrown missiles, and that they can upgrade from stuff dropped by their fallen comrades. Hey, that's monster AI in action! :) They still won't pick up stuff randomly lying around, and neutrals or enslaved monsters never will pick up anything. And of course, friendly jellies (should that be possible) won't ever devour items. Cleanup of mstuff2.cc, and reduce chances for Beogh orcs' chattiness (again). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4632 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust the power of the "Summon Ugly Thing" spell again.dolorous2008-04-221-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4465 c06c8d41-db1a-0410-9941-cceddc491573
* And adjust it again.dolorous2008-04-191-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4389 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust the probability of summoning very ugly things again. It now dolorous2008-04-191-2/+4
| | | | | | | | properly goes up with spell power for players, or with hit dice for monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4388 c06c8d41-db1a-0410-9941-cceddc491573
* Add cosmetic fix.dolorous2008-04-191-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4387 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust the probability of summoning a very ugly thing.dolorous2008-04-191-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4370 c06c8d41-db1a-0410-9941-cceddc491573
* Implement "Summon Ugly Thing" as a player spell, in the Book of dolorous2008-04-191-2/+2
| | | | | | | | | Summonings just before Shadow Creatures. Also make it available to player ghosts, so that it can be seen in action from monsters, and put it in the list of Xom spells. This will probably need adjustment. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4369 c06c8d41-db1a-0410-9941-cceddc491573
* For consistency, rename the "Summon Ugly Things" spell to "Summon Ugly dolorous2008-04-191-2/+2
| | | | | | | Thing". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4365 c06c8d41-db1a-0410-9941-cceddc491573
* For abjuration purposes, treat good neutral monsters like friendly dolorous2008-04-191-4/+4
| | | | | | | monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4354 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1933066: Ghosts not being poison resistant.j-p-e-g2008-04-161-15/+19
| | | | | | | | | Fix part of 1940994: Identify scrolls now get properly identified if applied on an unID'd item right away, so that if you get more rounds it isn't offered to you *again*. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4257 c06c8d41-db1a-0410-9941-cceddc491573
* Another one of those pesky spacing changes.j-p-e-g2008-04-151-2/+2
| | | | | | | | One of these days Crawl *will* win the Cleanest Code Championship, just you wait... :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4242 c06c8d41-db1a-0410-9941-cceddc491573
* Apply Horst von Brand's (first) patch 1887488: gcc-4.3 compile failures.j-p-e-g2008-04-141-39/+40
| | | | | | | I'm not sure what to do about the rest of that tracker item. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4233 c06c8d41-db1a-0410-9941-cceddc491573
* Allow autotargeting of monsters hiding in shallow water ("You see a j-p-e-g2008-04-011-1/+1
| | | | | | | | | | | | | strange disturbance here"), assuming them to be enemy monsters. Fix Daevas being so incredibly chatty. Friendly holy beings will now give the holy_being speech with a chance of 1/20, and else stay silent. This is rare! Neutrals have the same behaviour but speak with a chance of 1/11 since you won't be around them as often as around friendlies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4005 c06c8d41-db1a-0410-9941-cceddc491573
* Prevent shafts from being created in corridors, at least untilj-p-e-g2008-03-291-1/+1
| | | | | | | | | | | | | | | | | around dungeon level 7. Rename ROCK_STAIRS to ESCAPE_HATCH, as well as the corresponding function, since I think that the escape hatches are such a cool concept that we won't be going back, and the current coding name is a bit confusing. Clean up dungeon.cc. I'll probably have to add stuff into our new conventions file as I've been making up a lot of new rules in trying to make the code more readable. (Rules concerning nested brackets, and function indentation, etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3927 c06c8d41-db1a-0410-9941-cceddc491573
* Implement "Summon Ugly Things" as a monster spell, roughly equivalent to dolorous2008-03-271-2/+12
| | | | | | | | "Summon Demon" in many ways, as they have similar hit dice, but aren't evil, undead, or demonic. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3890 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes again.dolorous2008-03-241-7/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3859 c06c8d41-db1a-0410-9941-cceddc491573
* Minor type fixes.dolorous2008-03-231-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3825 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes again.dolorous2008-03-221-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3805 c06c8d41-db1a-0410-9941-cceddc491573
* Fix typo in mons_thrown_object_destroyed() that let non-missiles instead dolorous2008-03-221-1/+1
| | | | | | | of missiles be destroyed (oops). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3804 c06c8d41-db1a-0410-9941-cceddc491573
* Fix some more compile warnings that look like they were pointing out bugs.pauldubois2008-03-101-1/+1
| | | | | | | (don't compare bool to int; don't << a variable number of bits) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3575 c06c8d41-db1a-0410-9941-cceddc491573
* Lower dragon slaying effect on dragon breath accuracy:j-p-e-g2008-03-031-4/+4
| | | | | | | to-hit is reduced by 25% rather than 50% now, as suggested by Darshan. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3512 c06c8d41-db1a-0410-9941-cceddc491573
* [FR 1733318] Draconian ghosts (non-grey, xl >= 7) get a draining breath j-p-e-g2008-03-031-0/+8
| | | | | | | | | | | | | | | | | | | | | attack. The message ("John Doe's ghost breathes.") may have to be tweaked, ghosts being undead etc. The chance for a ghost actually breathing increases with its experience (1/2 at xl 7, 2/3 at xl 8, 3/4 at xl 9, and so forth). [FR 1826165] !restore ability also resets DUR_BREATH_WEAPON, so it becomes more useful to draconians and demonspawn with hellfire. To make up for it, the breath weapon durations might have to increased. They're currently: 3 + random2(5) for Spit Poison 3 + random2(5) + random2(30 - xp) for Hellfire 3 + random2(4) + random2(30 - xp)/2 for Breath Weapons [Bug 1879466] The step into lava/deep water safety prompt bails out unless the player answers "yes". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3510 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1892007: (oklob) plants being confusablej-p-e-g2008-02-241-4/+4
| | | | | | | | | | | | | | | | | (There's probably some source of poison or other where I forgot to add the mons_class_is_confuseable check. Feel free to add as needed.) Fix 1897271: potions of poison being treatened like poisoned ammo (There's actually a much bigger issue: now that randart names are configurable players could name half of their randarts "poisoned" and make them *be* poisoned. In short, the beam string comparison find("poison") needs to be replaced with something more sensible.) Also some more comment clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3461 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented dispel undead for monsters.dshaligram2008-01-271-0/+10
| | | | | | Cold resistance was broken, fixed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3349 c06c8d41-db1a-0410-9941-cceddc491573
* Refixed monster self-teleport duration.dshaligram2008-01-271-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3346 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed unique demon lord stats so they're more of a challenge. May need some ↵dshaligram2008-01-271-1/+11
| | | | | | | | | | tweaks, some of them may be too nasty now (such as Gloorx Vloq). Fixed broken monster self-teleport. Players do not get to resist dispel undead - may need to revisit this, low level necro ghosts could destroy undead characters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3345 c06c8d41-db1a-0410-9941-cceddc491573
* [1832114] Fixed more prompts for mostly offscreen ball lightning detonation.dshaligram2008-01-251-4/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3328 c06c8d41-db1a-0410-9941-cceddc491573