summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded methods (including the old resistance screen), renamej-p-e-g2008-06-121-84/+39
| | | | | | | debugging functions, and some other clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5757 c06c8d41-db1a-0410-9941-cceddc491573
* Implement pathfinding for monsters, using the A* algorithm.j-p-e-g2008-06-041-0/+1
| | | | | | | | | | | | | | | | It's not actually used anywhere yet, but I've implemented a wizmode testing function (x on monster, then 'w') that calculates the shortest path to any playerchosen destination on the level, and it seems to work quite well. The monsters tend to take zigzag paths but that should be easy enough to smooth out and in any case doesn't matter all that much since the player usually won't witness this. Oh, and though I tested the whole thing in a labyrinth, it went ridiculously fast! I'd rather doubted that but Darshan was completely right, as usually. :p Please don't remove the debugging output yet, I still need them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5476 c06c8d41-db1a-0410-9941-cceddc491573
* Add new wizard targeting command 'm', to move monsters around (or tozelgadis2008-06-021-0/+1
| | | | | | | | | | move the player like wizard blink if there's no monster at the chosen square). Two monsters can be made to swap positions, and unseen monsters/squares can be targeted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5423 c06c8d41-db1a-0410-9941-cceddc491573
* Fix wizard mode being unable to create monsters of nonfloor habitat.j-p-e-g2008-06-011-1/+1
| | | | | | | | | | | | | | | | Changed labyrinth handling for minotaurs: Instead of being magic mappable, labyrinths are plain mappable. Yes, that makes everything much easier, but allowing magic mapping and yet you still have to trudge along by hand (rather than use autotravel) is worse. To make up for it, we might want to boost the monster minotaur (trying to defend its home against a rival?) Or we could just remove the difference altogether... Cleaned up debug.cc a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5401 c06c8d41-db1a-0410-9941-cceddc491573
* * Add a wizard function apply_monster_blessing to allow for easy testingj-p-e-g2008-04-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | of dolorous' fabulous blessing routines. * Allow the possibility of naming monsters: A monster's random name seed is stored in its number property, and the actual name gets picked from randname.txt. (Once this leaves the experimental stage I'll move them into a file of their own.) This means that monster types that already use number for something else (hydras for #heads, manticores for #spikes, or zombies for monster type) cannot be named. Use the new functions for naming orcs blessed by Beogh. Only non-generic orcs may get named, e.g. orcs promoted to priesthood or orc warriors that get their weapon enchanted. I tried to come up with a number of thematic orcish names, and if anyone would like to contribute, they're welcome to do so. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4586 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-0/+1
| | | | | | | | huge number of files. Also correct file name comments. No coding changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3539 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [ 1902141 ] Documentation wrongpauldubois2008-03-021-2/+2
| | | | | | | | | | | | - changed number comments on a few enums - added a few COMPILE_CHECKs so they'll get caught Other: - Fix COMPILE_CHECK macro so it doesn't cause a warning in gcc. - Replace ASSERT(...) with COMPILE_CHECK(...) where possible. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3501 c06c8d41-db1a-0410-9941-cceddc491573
* Add "item generations stats" (Ctrl-I) wizard command, which currentlyzelgadis2007-12-081-0/+1
| | | | | | | | | | | | | | only generates stats on items attained via acquirement. Move the acquirement logic of turning non-wearable headgear to wearable headgear from acquirement() to find_acquirement_subtype() so that it will happen before acquirement()'s can_wear_armour() check. The old way of doing it meant that players who couldn't wear helmets/helms had the armour acquirement chance for headgear reduced from the noraml 10% to around 1%. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3022 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, my "dismiss monsters by regex" change didn't take into account thatzelgadis2007-09-211-1/+1
| | | | | | | the "debug atuoexplore" debug command uses the dismiss-monsters command. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2169 c06c8d41-db1a-0410-9941-cceddc491573
* Identification overhaul part II. Okay, not really. ;)j-p-e-g2007-09-101-0/+1
| | | | | | | | Applying Matthew's latest patch (1789869): Identify items you see monsters use. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2068 c06c8d41-db1a-0410-9941-cceddc491573
* Implementing patch 1775415 (outsourcing monster speech) byj-p-e-g2007-09-041-0/+3
| | | | | | | | | | | zelgadis. Currently, shout.txt and speak.txt share in with the .des files in /dat. That should be changed, but I've no idea how to do this. Also implementing a bug fix by ennewalker (1787428). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2052 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented patch 1773718 (improved wizard commands) andj-p-e-g2007-09-021-1/+2
| | | | | | | patch 1783003 (ímproved menu sorting), both by zelgadis. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2041 c06c8d41-db1a-0410-9941-cceddc491573
* Item class name is now "jewellery", not "jewelry" for consistency (David).dshaligram2007-08-091-0/+2
| | | | | | | Added &O command to show the number of turns used by explore to fully-explore the (reachable areas of) the current level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1983 c06c8d41-db1a-0410-9941-cceddc491573
* Added wizmode &L command to place a map on the current level by name. Thisdshaligram2007-07-281-0/+1
| | | | | | | | only really works for non-encompass vaults, and dungeon fixups are not applied (so random deep water -> shallow water conversion, auto-placement of water creatures, etc. will not happen). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1942 c06c8d41-db1a-0410-9941-cceddc491573
* &^X allows you to set experience level directly in wizmode.dshaligram2007-07-151-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1877 c06c8d41-db1a-0410-9941-cceddc491573
* Beogh balancing:dshaligram2007-07-121-0/+1
| | | | | | | | | | | | | | | - Cut Beogh's racial armour bonus. - Reduced weapon damage bonus by 50% at low piety. - Increased smiting food and piety cost. The piety cost may still be too low given how easy it is to gain Beogh piety. Tweaked monster generation, which had become too bland. Reintroduced shoal vault (onia_ninara_012_swampy_vault_shoal) which seems to work now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1844 c06c8d41-db1a-0410-9941-cceddc491573
* [1734352] Added checks in the dungeon builder to ensure vaults placed at thedshaligram2007-07-111-0/+2
| | | | | | | | | | end of level generation do not isolate parts of the level that were not already isolated. This does not apply to weird level-types such as Labyrinths and the Abyss. Added level veto stats to -mapstat output. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1831 c06c8d41-db1a-0410-9941-cceddc491573
* Added debugging code to generate multiple dungeons (all branches and levels)dshaligram2007-07-081-0/+8
| | | | | | | | | and gather statistics on maps used and Lua errors encountered. To use it, run "crawl -mapstat" with a full-debug build. Output will be mapgen.log in the current directory. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1805 c06c8d41-db1a-0410-9941-cceddc491573
* Added a debug card command.haranp2007-05-151-0/+2
| | | | | | | Documented some of the debug commands in the help. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1475 c06c8d41-db1a-0410-9941-cceddc491573
* Added wizmode command to simulate monster vs player combat (&^F).dshaligram2007-03-211-1/+1
| | | | | | | | | | | | Apply 4.1ish monster to-hit calculations. M_FIGHTER monsters get bonus to-hit. Split melee and beam to-hit calculations again. Melee to-hit is now largely 4.1ish, but uses randomised player evasion. Applied 4.1 unique rebalancing. Higher level uniques now hit harder and have more hp. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1074 c06c8d41-db1a-0410-9941-cceddc491573
* Modified wizmode &" and &~ commands so that you can jump to any level of anydshaligram2007-02-091-1/+1
| | | | | | | branch instead of only up and down in the current branch. Wizmode &d, &u remains unchanged, although you can also hit &"> and &"< to do the same thing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@946 c06c8d41-db1a-0410-9941-cceddc491573
* 'C' creates monsters on a targeted square in wizmode. 'D' kill-resets targeteddshaligram2006-12-061-1/+1
| | | | | | monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@582 c06c8d41-db1a-0410-9941-cceddc491573
* Merged stone_soup r15:451 into trunk.dshaligram2006-11-221-0/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+147
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573