summaryrefslogtreecommitdiffstats
path: root/crawl-ref
Commit message (Collapse)AuthorAgeFilesLines
* Shaft traps (trap doors) [1792195] and level annotation [1769009]zelgadis2007-10-0530-63/+939
| | | | | | | | | | added, with the shaft traps changed as per comments on SF; shafts aren't randomly generated yet, so this doesn't change gameplay. Changed DNGN_TRAP_III to DNGN_TRAP_NATURAL, of which trap type the shaft traps are the only current member. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2328 c06c8d41-db1a-0410-9941-cceddc491573
* Add documentation for weapon noises and update comments.j-p-e-g2007-10-043-7/+36
| | | | | | | Also update information about Throwing crosstraining. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2325 c06c8d41-db1a-0410-9941-cceddc491573
* Another cleanup of dungeon features. Adding general markersj-p-e-g2007-10-046-72/+70
| | | | | | | | for first branch/last branch and first altar/last altar that should hopefully make adding new ones easier. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2324 c06c8d41-db1a-0410-9941-cceddc491573
* Unicode support tweak: always set locale to what's specified in ↵dshaligram2007-10-043-1/+14
| | | | | | UNICODE_LOCALE, defaulting to en_US.UTF-8. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2322 c06c8d41-db1a-0410-9941-cceddc491573
* Lots more keywords, plus hiliting for numbers, ranges, weights andzelgadis2007-10-041-3/+23
| | | | | | | slashes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2321 c06c8d41-db1a-0410-9941-cceddc491573
* [1804502] Fixed undead pretending to resist dispel undead.dshaligram2007-10-041-1/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2319 c06c8d41-db1a-0410-9941-cceddc491573
* Makhleb accepts undead and demon kills once again, matching b26 behaviour ↵dshaligram2007-10-041-0/+2
| | | | | | (Iaido). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2318 c06c8d41-db1a-0410-9941-cceddc491573
* Wizard commands should never use up a turn.zelgadis2007-10-041-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2317 c06c8d41-db1a-0410-9941-cceddc491573
* Quiet a compile warning.zelgadis2007-10-041-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2316 c06c8d41-db1a-0410-9941-cceddc491573
* ROCKCOL and FLOORCOL changes for the prebuilt parser/lexer.zelgadis2007-10-043-2629/+2315
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2315 c06c8d41-db1a-0410-9941-cceddc491573
* Moved all of the bazaar specific logic/code to dat/bazaar (or turned thezelgadis2007-10-0414-138/+518
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code into Lua utility functions which can be reused by things other than bazaars). Related changes: * Portal vault entrances now work if they have destinations ("dst" property) besides "bazaar" (though it still causes an assert if no matchng maps for the destination can be found). * The floor and rock colour for a level are generated once and then stored in the save file, rather than being constantly regenerated (which means that bazaar floor colours are now truly random, rather than being tied to the depth of the bazaar entrance). * The floor and rock colour for a portal vault (or for any level containing any vault) can be set with ROCKCOL and FLOORCOL (which currently only accepts a single colour, unlike COLOUR); there are also Lua functions for querying and setting the colours. * Each portal vault level_type_name can have an associated Lua callback which is called when level generation is complete; it can be used for things like stair fixup. I also moved the Halls of Zot rock/floor colour special casing to the dat/zot.des file, since it was easy once ROCKCOL and FLOORCOL had been implemented. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2314 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed equipment slot assignment check.dshaligram2007-10-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2312 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up newgame item creation code, fixed MuFi starting with bad items as ↵dshaligram2007-10-032-651/+159
| | | | | | shields (cbus), and corrected Rupert's description. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2311 c06c8d41-db1a-0410-9941-cceddc491573
* Outsourcing weapon noises to speak.txt, and adding morej-p-e-g2007-10-033-100/+569
| | | | | | | messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2310 c06c8d41-db1a-0410-9941-cceddc491573
* Corrected INSTALL.dshaligram2007-10-031-12/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2308 c06c8d41-db1a-0410-9941-cceddc491573
* Make element_cols static.dshaligram2007-10-031-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2305 c06c8d41-db1a-0410-9941-cceddc491573
* Updated colour names in initfile.cc for the new elemental colours.dshaligram2007-10-032-7/+12
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2304 c06c8d41-db1a-0410-9941-cceddc491573
* Don't assert-fail due to a buggy rune being in the player's inventoryzelgadis2007-10-031-2/+14
| | | | | | | | when constructing a score-file entry, since checks for buggy runes are done elsewhere in the game. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2303 c06c8d41-db1a-0410-9941-cceddc491573
* Runes and the Orb now have elemental (flickering/shifting) colours.zelgadis2007-10-033-18/+60
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2302 c06c8d41-db1a-0410-9941-cceddc491573
* Added svn properties svn:keywords and svn:eol-style to files which werezelgadis2007-10-0318-18/+18
| | | | | | | missing them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2301 c06c8d41-db1a-0410-9941-cceddc491573
* Made Xom be smarter about being amused at losing/missing runes, andzelgadis2007-10-0214-64/+248
| | | | | | | | | | | | | | | | | made Xom also be amused at runes being destroyed. Related changes: * Keep track of which items have ever been held by the player with ISFLAG_BEEN_IN_INV. * item_was_destroyed() is called when an item is destroyed (as in dropped in lava, not destroy_item() being called), and item_was_lost() is called if the item was lost (i.e., being left behind in the Abyss). * Keeps track of the number of runes that the character has collected, and how many have been left in the Halls of Zot. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2300 c06c8d41-db1a-0410-9941-cceddc491573
* Replaced inc_god_acting/dec_god_acting pairing with god_acting objects.dshaligram2007-10-023-52/+40
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2299 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed elven fighters getting Armour skill instead of Dodging. Fixed deep elf ↵dshaligram2007-10-022-1/+4
| | | | | | bow aptitude (Anym). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2297 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed segfault in explore discovery reporting (syllogism).dshaligram2007-10-024-6/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2295 c06c8d41-db1a-0410-9941-cceddc491573
* Xom is stimulated/amused if a harmful beam ricochets and hits the originatorzelgadis2007-10-021-2/+17
| | | | | | | of the beam. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2294 c06c8d41-db1a-0410-9941-cceddc491573
* Added floor_special and floor_reserved to dngn_feature_names[], to makezelgadis2007-10-028-34/+97
| | | | | | | | | | | | | | | | | | the array match up with the enums. Don't describe the weapon with which an unseen monster is attacking. Added methods can_see() and visible_to() to the actor, player and monster classes, which take care of calling mons_player_visible(), player_monster_visible(), mons_monster_visible() and mons_near(). Re-arranged the first 12 dungeon_feature_type enumerations so that similar features are contiguous (i.e., closed door and secret door are next to each other), and added DNGN_MAXOPAQUE (one less than DNGN_MINSEE), DNGN_MINWALL and DNGN_MAXWALL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2293 c06c8d41-db1a-0410-9941-cceddc491573
* Restored 0.2's character combinations, fixed crash when killing a monster ↵dshaligram2007-10-012-54/+4
| | | | | | using Pain. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2290 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed bad species name (eg: deep elves with the bows title) in dump because ↵dshaligram2007-10-0112-75/+80
| | | | | | of reuse of static buffers (Iaido). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2288 c06c8d41-db1a-0410-9941-cceddc491573
* Wanderers could start with items equipped in the wrong slots, fixed.dshaligram2007-10-011-7/+12
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2287 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, check_buggy_deck() was itself buggy; fixed.zelgadis2007-10-011-6/+9
| | | | | | | | | Also, fixed the deck stacking interface so that all available cards are always visible, rather than sometimes being split across a '-more-' prompt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2286 c06c8d41-db1a-0410-9941-cceddc491573
* The player now dies if the Focus card causes any stat to go below 1.zelgadis2007-10-011-1/+37
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2285 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed vampiric healing on death using raw damage instead of actual damage, ↵dshaligram2007-10-013-22/+17
| | | | | | which produced super-healing for stabbing (jarpiain). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2283 c06c8d41-db1a-0410-9941-cceddc491573
* [1804917] Berserkers no longer get Polearms skill for their throwing spears, ↵dshaligram2007-10-012-22/+9
| | | | | | since the spears use only Throwing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2282 c06c8d41-db1a-0410-9941-cceddc491573
* Restore vampiric healing for killing blows (jarpiain).dshaligram2007-10-011-2/+24
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2280 c06c8d41-db1a-0410-9941-cceddc491573
* Overhaul trapping net escape functions.j-p-e-g2007-10-013-37/+139
| | | | | | | | | | With the help of several factors (such as size, wielded weapon or stats) the game decides whether you should try to destroy the net to come free, or try to slip out of it. The same calculation also influences how long this will take. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2278 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, had some code placed after a "return" statement; why didn't thezelgadis2007-10-011-1/+1
| | | | | | | compiler catch that? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2277 c06c8d41-db1a-0410-9941-cceddc491573
* Some paranoia checks for buggy decks when evoking or stacking them.zelgadis2007-10-011-0/+166
| | | | | | | | | | | | If the deck has no cards left yet still exists, the deck is destroyed and Nemelexites are awarded a brownie point for using up a deck. If a stacked deck has holes in it, the holes are removed. If a stacked deck has buggy cards in it, they are discarded. If a deck had problems with it, the user is asked if s/he is sure about using the (now fixed) deck, and no turns are used if the answer is "no". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2276 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed broken 64-bit compile.dshaligram2007-10-011-22/+25
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2275 c06c8d41-db1a-0410-9941-cceddc491573
* Tweak command can now accept hexadecimal values.zelgadis2007-10-011-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2274 c06c8d41-db1a-0410-9941-cceddc491573
* Better interface for creating runes and decks.zelgadis2007-10-011-5/+249
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2273 c06c8d41-db1a-0410-9941-cceddc491573
* Fix wizard mode cheating-death from losing experience or levels whenzelgadis2007-10-011-0/+8
| | | | | | | level 1, so you won't end up as a level 0 character with 0 HP. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2272 c06c8d41-db1a-0410-9941-cceddc491573
* The Shuffle card now kills the player if any stats are lowered belowzelgadis2007-10-011-1/+37
| | | | | | | 1. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2271 c06c8d41-db1a-0410-9941-cceddc491573
* [1804879] Fixed bad time-elapsed events being generated for new levels, also ↵dshaligram2007-09-301-1/+1
| | | | | | fixes labyrinths/bazaars not being generated correctly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2268 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed regex escapes for "." stash search.dshaligram2007-09-305-29/+43
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2266 c06c8d41-db1a-0410-9941-cceddc491573
* Introducing shortcut for searching the current level asj-p-e-g2007-09-303-10/+39
| | | | | | | | | | requested in FR 1801705. Also adding feedback when auto-travel fails to kick in. And trying to get out of a net no longer stops travel, only being caught in one does (FR 1800821). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2263 c06c8d41-db1a-0410-9941-cceddc491573
* Trog's bookburning invocation only costs a turn and food j-p-e-g2007-09-303-12/+9
| | | | | | | if it's actually successful. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2262 c06c8d41-db1a-0410-9941-cceddc491573
* Monster centaurs now sometimes (rarely) wear barding.j-p-e-g2007-09-302-1/+18
| | | | | | | | | | The chances are lower even than for naga as I believe that centaurs occur more frequently than naga. As I've been completely disregarding the Snake Pit I could be entirely wrong. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2260 c06c8d41-db1a-0410-9941-cceddc491573
* Add redraw_hp to the "Elixir" card.j-p-e-g2007-09-302-1/+3
| | | | | | | Hide Xom piety on status screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2258 c06c8d41-db1a-0410-9941-cceddc491573
* A few improvements to banished() and entry cause tracking.zelgadis2007-09-302-6/+90
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2257 c06c8d41-db1a-0410-9941-cceddc491573
* This commit breaks save file compatability.zelgadis2007-09-3042-99/+1053
| | | | | | | | | | | | | | | | | | | | | | | | | Lots of new things that amuse/stimulate Xom, and a few things which don't amuse him as much anymore. Among the new things is a corpse turning into a skeleton while butchering it; if this is too harsh to do just for Xom's amusement (previously turning into a skeleton while butchering was an ignored case and still produced chunks of flesh) it can be changed back. Also, if a Xom worshiper draws the Blank card, Xom makes it act like a Xom card, since a plain old Blank card is boring. Keep track of which branch the Orb is in, if the player isn't carrying it. Keep track of how/why the player ended up in a particular level type (Abyss, Pan, etc). Changed most "a distortion effect" cause strings for distortion caused tranlsocation miscast effects to something more specific. Added new wizard commands 'C' to curse or uncruse an item, and 'Ctrl-A' to re-generate the Abyss. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2256 c06c8d41-db1a-0410-9941-cceddc491573