summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgrow.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add a function x_chance_in_y(x,y) to replace the variousj-p-e-g2008-07-061-1/+1
| | | | | | | | random2(y) < x checks, e.g. x_chance_in_y(weight, totalweight). This should make things a bit more readable. Apply it to a number of files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6428 c06c8d41-db1a-0410-9941-cceddc491573
* Misc. minor cleanups. (Yes, a huge amount of them but still...)j-p-e-g2008-06-261-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
* Monster per-level XP cap was off by an order of magnitude, fixed.dshaligram2008-04-271-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4693 c06c8d41-db1a-0410-9941-cceddc491573
* Fix compilation.dolorous2008-04-241-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4589 c06c8d41-db1a-0410-9941-cceddc491573
* Allow christening (beoghening?) of plain orcs, after all, but make itj-p-e-g2008-04-241-2/+2
| | | | | | | rare and let the chance depend on max hp. Clean up naming some. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4588 c06c8d41-db1a-0410-9941-cceddc491573
* Fixes to compile with Visual C++. Moved direct.cc and direct.h to directn.* ↵dshaligram2008-04-191-1/+1
| | | | | | to avoid conflict with VC++ direct.h header. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4390 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-03-241-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3861 c06c8d41-db1a-0410-9941-cceddc491573
* Add priest promotion-re;ated fixes. Rename monsters::change_type() to dolorous2008-03-241-2/+10
| | | | | | | | | monsters::upgrade_type(), as it's more accurate, allow it to adjust HD as well as HP, and do the latter when promoting to a priest, to make sure that it ends up with the proper HD. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3860 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes again.dolorous2008-03-241-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3859 c06c8d41-db1a-0410-9941-cceddc491573
* Expand bless_follower() to allow explicitly picking the follower as well dolorous2008-03-231-6/+8
| | | | | | | | | | | | | as picking one randomly, fix a potential problem with the display of the blessing message, and add a piety-dependent chance that followers will be specifically blessed when gaining levels. Hook the last of these up to Beogh for now (since the random chance on piety gain occurs less and less often as piety goes up). TSO should also get this eventually. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3821 c06c8d41-db1a-0410-9941-cceddc491573
* More changes to which monsters are marked as evil, based on their spell dolorous2008-03-211-2/+5
| | | | | | | | | | | | | | | | | | | repertoires. If they can cast spells like Summon Demon, Banishment, Hellfire, or Bolt of Draining, they're evil. Additions: draconian shifter, draconian scorcher, deep elf mage, deep elf summoner, deep elf conjurer, ogre-mage, wizard, Josephine, Louise, and Wayne. Removals: deep elf annihilator. It has no evil spells, and if Vehumet, the god who gives you the Book of Annihilations, is no longer considered evil, then neither should it. Also, allow deep elf conjurers to level up into deep elf sorcerers, and deep elf summoners to level up to deep elf demonologists. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3790 c06c8d41-db1a-0410-9941-cceddc491573
* Revert the splitting out of monster_change_type() from dolorous2008-03-211-26/+31
| | | | | | | | | | | monster_polymorph(), as it still doesn't do everything needed. Replace it with monsters::change_type(), split out from monsters::level_up_change(), which does do everything needed, and in a cleaner way. Unfortunately, it's still a hack, but it should be easier to deal with for now. Sorry for the mess. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3783 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
* Increased experience needed for monsters to level up, bumped orc sorcerers ↵dshaligram2007-10-271-8/+10
| | | | | | up one HD, and factored in XL in Beogh orc spontaneous conversion. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2607 c06c8d41-db1a-0410-9941-cceddc491573
* Orcs may surrender to Beogh worshippers when beaten up. Adjusted experience ↵dshaligram2007-10-261-3/+7
| | | | | | | | gain for monsters, duration of orc battle cries and removed use of invocations to determine the success of spontaneous orc conversion. Fixed monsters getting bad experience values. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2586 c06c8d41-db1a-0410-9941-cceddc491573
* Monsters can gain experience and level-up. Breaks saves.dshaligram2007-10-261-0/+206
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2584 c06c8d41-db1a-0410-9941-cceddc491573