summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
Commit message (Collapse)AuthorAgeFilesLines
* Apply caotto's neat patch to make toadstools grow on or around corpses.j-p-e-g2009-06-291-0/+10
| | | | | | | | Obviously, this might affect food balance and Necromancy. Tweaks may be necessary, but overall this looks good. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10077 c06c8d41-db1a-0410-9941-cceddc491573
* Add Eino's totally awesome Grum tile, as well as my own significantly less j-p-e-g2009-06-291-1/+1
| | | | | | | | | | | | | | | | | awesome tile for Kirke. Thanks, Eino, you rock! Some modifications for Kirke: * reduce the size of Kirke's hog band * replace Summon Ice Beasts with another instance of the "porkalator" * give the porkalator a 33% chance of upgrading a nearby hostile monster to hog Also, open a new category in dc-mon.txt for transformations, so specific tiles are easier to add. The player's pig form now looks subtly different from the other hogs, some greater difference would be better, though. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10076 c06c8d41-db1a-0410-9941-cceddc491573
* Add new unique gnoll Grum, courtesy of Eino's patch. Thanks!j-p-e-g2009-06-281-0/+4
| | | | | | | Also added a preliminary tile. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10070 c06c8d41-db1a-0410-9941-cceddc491573
* Apply patch by Adam Borowski, introducing new unique enchantress Kirke.j-p-e-g2009-06-271-1/+3
| | | | | | | | | | | This includes a new transformation TRAN_PIG that the player can not end at will but rather will have to time out. Pigs (or rather hogs) are fast but cannot use any equipment except amulets, or cast spells. If the transformation would cause death by stat loss (due to equipment loss) the player is paralysed instead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10061 c06c8d41-db1a-0410-9941-cceddc491573
* Apply crash fixes to trunk.j-p-e-g2009-06-221-1/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10017 c06c8d41-db1a-0410-9941-cceddc491573
* Apply tiles inscription fixes to trunk.j-p-e-g2009-06-081-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9922 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-04-281-4/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9700 c06c8d41-db1a-0410-9941-cceddc491573
* Some debugging fixes, once again.j-p-e-g2009-04-261-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9697 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix _place_monster_aux() not interrupting autoexplore.j-p-e-g2009-04-261-5/+6
| | | | | | | | Apparently, monsters can be directly placed at the edge of los, after all. * Change Ctrl-X -> Ctrl-S, V -> Ctrl-X, not documented yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9696 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Xom's piety wrapping around from 0 -> 255.j-p-e-g2009-04-181-2/+3
| | | | | | | | | | | | | | | | * Fix Xom piety 100 (initial state) favouring bad effects. * Limit tension bonus for good effects to 199. * Add penalty for tension 0, so bad effects become more likely without tension. * Revert order of Xom's amusement to actually match the amusement gain. (Was getting "roars with laughter" for gain of 2, etc.) * Add damage shaving to Deep Dwarf ghosts. * Add 'o' to pickup list commands -> stop prompting, start autoexplore. * Default menu_colour_item_class to true in initfile.cc. * Allow autopickup of chunks in Lich form. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9634 c06c8d41-db1a-0410-9941-cceddc491573
* * Don't offer rotten chunks for wearers of "otG since it doesn'tj-p-e-g2009-03-221-2/+1
| | | | | | | | | actually allow eating of rotten stuff. * Tweak Xom's mood descriptions -> shortened to 7. * Increase chance of Xom acting under tension: 5% -> 10% git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9535 c06c8d41-db1a-0410-9941-cceddc491573
* Really fix monster speed handling, so that enslaved intact souls can dolorous2009-03-141-4/+3
| | | | | | | have their speed properly overridden. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9457 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few last monster speed cleanups.dolorous2009-03-091-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9388 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-03-081-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9378 c06c8d41-db1a-0410-9941-cceddc491573
* And use it in one more place.dolorous2009-03-081-5/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9375 c06c8d41-db1a-0410-9941-cceddc491573
* Properly calculate speed on the level of individual monsters.dolorous2009-03-061-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9362 c06c8d41-db1a-0410-9941-cceddc491573
* Fix miscalculation of zombie downgrades (oops).dolorous2009-03-061-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9361 c06c8d41-db1a-0410-9941-cceddc491573
* Put monster speed calculation back in _define_zombie(), and fix problem dolorous2009-03-061-14/+12
| | | | | | | where the speed was being downgraded for zombies twice. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9359 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-03-061-17/+15
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9358 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-03-061-16/+18
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9357 c06c8d41-db1a-0410-9941-cceddc491573
* Remove zombified speed downgrade from _define_zombie(), as dolorous2009-03-061-5/+0
| | | | | | | define_monster() now does it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9356 c06c8d41-db1a-0410-9941-cceddc491573
* Add more zombie speed-related fixes.dolorous2009-03-061-2/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9355 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2009-02-271-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9267 c06c8d41-db1a-0410-9941-cceddc491573
* Add Deep Dwarves patch, with some minor changes.haranp2009-02-231-0/+1
| | | | | | | | | | | | | | | | Add a new mutation, MUT_SLOW_HEALING, which at level 3 blocks all healing; it can't be acquired randomly, but deep dwarves start with it at level 3. This overrides regeneration, including the god-given kind (Trog's Hand.) Fix mutation listings (hopefully I got this right.) There are still some cases where DD HP shaving is not applied: ability HP costs, Staff of Dispater effect, vampiric draining backlash, Sublimation of Blood spell. Fix dancing weapons leaving mgrd incorrect if their weapon can't be generated. Breaks saves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9173 c06c8d41-db1a-0410-9941-cceddc491573
* For 2089989, reallow friendlies to walk into your damaging clouds inharanp2009-02-211-2/+2
| | | | | | | some cases, regardless of god. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9145 c06c8d41-db1a-0410-9941-cceddc491573
* Lots more cleanups. haranp2009-02-151-12/+15
| | | | | | | | | Remove the sound-strength #defines because they're not used anymore (except for SL_SPLASH, which has been replaced by its value.) Change some #defines to const variables. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9087 c06c8d41-db1a-0410-9941-cceddc491573
* Dancing weapons fix for trunk.haranp2009-02-121-3/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9033 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-02-091-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9009 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2009-02-091-6/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9008 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust odds of Xom-worshipping holy beings in the Abyss again.dolorous2009-02-091-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9007 c06c8d41-db1a-0410-9941-cceddc491573
* Rarely, allow holy beings in the Abyss to worship Xom instead of TSO.dolorous2009-02-091-2/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9006 c06c8d41-db1a-0410-9941-cceddc491573
* Implement [2546032]: Aside from orc priests and orcs, which can worship dolorous2009-02-091-7/+1
| | | | | | | | | | Beogh, and holy beings, which can worship TSO (or, specially, Xom), give other priestly monsters that need gods the new god GOD_NAMELESS. Monsters with this god will produce messages like "The monster invokes the aid of its god against you." git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9004 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-02-071-3/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8946 c06c8d41-db1a-0410-9941-cceddc491573
* Fix leftover comment from r8130: since water monsters can now beharanp2009-01-311-3/+1
| | | | | | | generated in (blue) fountains, don't pretend they can't be. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8868 c06c8d41-db1a-0410-9941-cceddc491573
* Don't allow rock worms to be placed in permanent rock.zelgadis2009-01-281-0/+9
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8833 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify checks for grids containing water.dolorous2009-01-261-3/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8763 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, a monster might be hit with a mutation attack or a Polymorph Other beamzelgadis2009-01-221-0/+8
| | | | | | | | while MF_JUST_SUMMONED is still set, so handle polymorphing just-placed shifters slightly differently. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8695 c06c8d41-db1a-0410-9941-cceddc491573
* Overload MF_KNOWN_MIMIC to also mean "a shapeshifter the player has seenzelgadis2009-01-221-0/+4
| | | | | | | | | | | | | | shift", append "shaped shifter" to the end of the name of known shifters, and give a special death message when a non-known shifter dies to let the player know it was a shifter. Immediately polymorph shifters as soon as they are placed (with no messages to the player) so that if the player enters a new level with a shifter in LOS (or if a shifter is summoned in LOS) the player will never see it as a plain/raw shifter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8693 c06c8d41-db1a-0410-9941-cceddc491573
* Remove a few more unnecessary casts.haranp2009-01-211-2/+2
| | | | | | | Don't cheat on constness in _mons_has_path_to_player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8651 c06c8d41-db1a-0410-9941-cceddc491573
* Always call _arena_set_foe() for arena monsters whose target is (0, 0).zelgadis2009-01-181-8/+1
| | | | | | | | Obviates the need for setting the monster's target via an ME_ALERT event in mons_place(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8538 c06c8d41-db1a-0410-9941-cceddc491573
* In arena mode, if a monster is summoned against a specific foe then alert thezelgadis2009-01-171-1/+8
| | | | | | | monster the foe's presence and location, rather than using ME_EVAL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8497 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug #2512419: game crashing when there isn't any room to place god-sentzelgadis2009-01-171-1/+6
| | | | | | | monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8493 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2498711]: In arena mode, mark monsters duplicated by chaos as dolorous2009-01-161-1/+1
| | | | | | | having entered the arena. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8475 c06c8d41-db1a-0410-9941-cceddc491573
* Fix bug #2089989: only place friendly god gifts after the player's turn iszelgadis2009-01-121-0/+26
| | | | | | | | | | over, so that any in-progress effects won't hurt them, thus turning them hostile and angering the player's god. Also try to avoid placing god gifts (friendly or hostile) in a damaging cloud, and if it's unavoidable and placing a friendly god gift there would anger the god then don't place them at all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8426 c06c8d41-db1a-0410-9941-cceddc491573
* Fix the name of Lernaean hydra zombies by adding special handling for namedzelgadis2009-01-091-0/+5
| | | | | | | | | | | hydras; kind of hackish. During arena mode don't give "You see a puff of smoke" message if the arena vetoed the placement of a monster, don't brand item stacks, and always use full names for zombified uniques. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8348 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-01-081-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8333 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another fix to the arena win/loss/tie logic.zelgadis2009-01-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | During arena mode don't reserve any of mitm[] when creating new items, and when mitm[] fills up call arena_cull_items() instead of _cull_items(), since in arena mode we can cull via how boring/interesting the items are rather than having to consider game balance and fairness to the player. Allow the arena to veto monster placement, rather than culling them immediately after they're placed. New arena tags: * "no_bands" prevents band members from being placed. * "move_spawners" teleports test spawners every turn to spread their summons randomly over the arena. * "ban_glyphs:" lists a set of text glyphs of types of monsters which shouldn't be allowed in the arena. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8300 c06c8d41-db1a-0410-9941-cceddc491573
* Greatly improve eating interface, as suggested in FRs 1923273 and 2018733.j-p-e-g2009-01-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you now press 'e' the following takes place: 1) If you can eat chunks, the game builds a list out of all chunks on the floor and in your inventory, sorted by age [1], and prompts you to eat them [2]. 2) If none are found, or you decline all of them you get prompted for non-chunk food items on the floor. 3) Prompt for non-chunk food in your inventory. 4) Open up the food menu of your inventory. Because of the way lua works, there's currently a problem that in the early stages (1-3) "q" (now also accepts Escape) will cause to skip ahead to the next stage rather than leaving the process entirely, which is of course less than optimal. I also added two new options [1] prefer_safe_chunks (defaults to true) which will offer clean chunks before contaminated ones, even if the latter happens to be older [2] easy_eat_chunks (defaults to false) which causes the prompting to be skipped for safe (i.e. clean) chunks, so you will automatically eat the oldest chunk that applies. This is ignored for undead characters. I also got rid of the outdated safechnk.lua and chnkdata.lua seeing how chunk effects are no longer spoily information. Added a new wizmode command: Ctrl-H, which allows you to set your character's hunger state. (Hopefully this will make Vampire testing easier.) Also fix 2488374: "Controlled Flight being named upon levitation even if its type is already known. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8282 c06c8d41-db1a-0410-9941-cceddc491573
* Determine if an orc is an unbeliever when it's generated, and use an orc's godzelgadis2009-01-051-0/+14
| | | | | | | | | | | | field to determine whether to use a believer speech or an unbeliever speech. This prevents orc priests from using unbeliever speech, and has the side benefit of preventing other orcs from flip-flopping on whether they believe. If a band leader is a priest then make all band members have the same god (so that Saint Roka won't have any unbelievers among his entourage). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8231 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573