summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove a few placeholders from enum.hStefan O'Rear2009-11-041-22/+16
|
* Add minor cosmetic fixes.David Lawrence Ramsey2009-11-041-5/+8
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Fix Vp crashStefan O'Rear2009-11-031-0/+7
| | | | | Unused mutations still need a placeholder entry, or else the vampire mutation capping gets very confused.
* Enable the new Ice/Fire I/II demon facetsStefan O'Rear2009-11-031-18/+43
|
* Comment fix.David Lawrence Ramsey2009-11-031-1/+1
|
* Implement "Passive Freeze" mutation (DS)Stefan O'Rear2009-11-021-0/+7
|
* Fix converse potions mutation text.Eino Keskitalo2009-11-021-1/+1
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Remove mapping abilities from the gameStefan O'Rear2009-11-021-17/+1
| | | | | Mapping still exists on cards, scrolls, Xom, and as the passive mutation. The ball of seeing exists, but will have to be dealt with.
* Implement conservation mutations for new DSStefan O'Rear2009-11-021-0/+14
|
* Implement 'Icemail' mutation for new DSStefan O'Rear2009-11-021-0/+17
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-1/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Reword passive map descriptionStefan O'Rear2009-10-291-6/+6
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Implement passive mappingStefan O'Rear2009-10-261-1/+27
| | | | | | | | | | As you explore, a halo of mapping tracks you. The halo includes a percentage of tiles within a distance of every seen tile; optimal play dictates seeing every tile, which just happens to be what autoexplore does. Added as random generation and to the demonspawn tier-2 list. Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Add stochastic torment resistance per dpegStefan O'Rear2009-10-261-2/+14
| | | | | | | | | The mutation comes in three levels and blocks 20%, 40%, or 60% (shown to the user) of torments. Right now, you can cast Symbol of Torment with it; I doubt this is too good. It is on the tier-1 list for demonspawn mutations, and I expect it to be balanced appropriately. Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Nerf early mutation gainStefan O'Rear2009-10-261-5/+18
| | | | | | | | | | | | | After concerns from James Meickle and watching a few characters on CDO, I've instated two small nerfs: * It is not possible to have a long run of mutations in the early game; you are capped at 3 mutations per 4 levels. * Tier 1 mutations do not start to appear until level 12; tier 2 mutations do not start until level 6. Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Add comment fixes.David Lawrence Ramsey2009-10-251-10/+8
|
* New slot-based demonspawn generator.Stefan O'Rear2009-10-251-297/+107
| | | | | This generator divides facets into body, awesome, great, and good ranks and assigns a fixed number of each.
* mutation.cc: fix compiler warning about 'mdef' being unused in non-DEBUG buildsSteven Noonan2009-10-241-3/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Roll demonspawn mutations at the start of the game.Stefan O'Rear2009-10-241-103/+71
| | | | | | | All demonspawn mutations are now stored in the player data, and are determined at the same time. This makes a lot of things a lot simpler. On the other hand, it means that the influence of skills and gods on demonspawn mutations is now broken.
* Revert "Add still more minor cosmetic fixes."Steven Noonan2009-10-241-51/+96
| | | | This reverts commit 6d62ab1b7cf0fbf6dda50f86f27822a9551da8ae.
* Add still more minor cosmetic fixes.David Lawrence Ramsey2009-10-241-96/+51
|
* New demonspawn core mechanic (from dpeg on IRC)Stefan O'Rear2009-10-231-66/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Demonspawn gain all mutations at level 1, and the levels increase over time, such that at level 27 5 mutations are level 3 and the 6th is level 2. At 17 (6 * 3 - 1) randomly chosen levellups, the PC gains one level in a current or new mutation; the chance of raising an existing mutation is (# of demon mutations) / 6, so the number of total mutations will reach 6 around level 15 and stay there, but the levels of the mutations will increase. This is the first part of the DS rework; it is applicable as is, and has been tested (raising 8 demonspawn to level 27 in debug mode and sanity checking the results). However, it is not fully balanced as is for two reasons: 1. Not all demonspawn mutations have 3 levels yet, so you sometimes run out of available mutations before level 27. When this happens, this patch gives a bonus mutation. 2. Some demonspawn mutations are very broken at level 3, such as fire resistance and teleport at will (level 3 is instantaneous). So demonspawn will get a lot stronger until the rest of the changes come in. Signed-off-by: Stefan O'Rear <stefanor@cox.net> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Yank some god invocations from religion.cc into godabil.ccAdam Borowski2009-10-221-0/+1
|
* Add minor cosmetic fixes.David Lawrence Ramsey2009-10-201-6/+6
|
* Fix bug [2880266] permanent stat loss when mutatingCharles Otto2009-10-201-5/+22
| | | | | | Fix a bug where getting a mutation that restricts equipment slots could cause permanent stat loss by subtracting the stat bonuses from a piece of equipment being removed twice.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* kill some DEBUG/WIZARD compiler warnings about unused functionsSteven Noonan2009-10-101-0/+2
| | | | | | | | cloud.cc:45: warning: "bool _killer_whose_match(kill_category, killer_type)" defined but not used mutation.cc:1923: warning: "bool _is_random(mutation_type)" defined but not used ouch.cc:891: warning: "void _wizard_restore_life()" defined but not used Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Show racial AC on the mutations/innates screen.Adam Borowski2009-10-111-0/+17
|
* Remove unnecessary includes of view.h.Robert Vollmert2009-10-091-1/+0
| | | | | Compilation of console crawl on Linux succeeds; please complain if other platforms break.
* Properly remove MUT_SLOW_HEALING from the given bad mutations.Robert Vollmert2009-10-071-2/+2
| | | | | | | | give_bad_mutation doesn't heed the probabilities in mutation_defs, so MUT_SLOW_HEALING could be obtained but not cured. This is a quick fix; give_bad_mutation should reallly be integrated with mutation_defs at some point.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Commit several patches:j-p-e-g2009-09-131-0/+4
| | | | | | | | | | | | * patch 2849505 by weyrava: make submerged monsters use the correct colour * patch 2857771 by caotto: another Feawn update * patch 2838771 by camedo: add potions of brilliance/agility * BR 2841651 by bookofjude: allow Merfolk to control-tele into deep water Now we need tiles for the new potions! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10669 c06c8d41-db1a-0410-9941-cceddc491573
* Set rarity of the slow healing mutation to 0. It is now only availabledploog2009-08-261-1/+2
| | | | | | | to Deep Dwarves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10606 c06c8d41-db1a-0410-9941-cceddc491573
* Allow Vehumetite demonspawn to get the "strength from death and dolorous2009-08-121-2/+1
| | | | | | | destruction" mutation, since Vehumet only restores MP. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10523 c06c8d41-db1a-0410-9941-cceddc491573
* * Don't give the CHANNEL_HELL mutation to Demonspawns worshipping Trog.j-p-e-g2009-08-061-3/+6
| | | | | | | * Check for mummy genus rather than species, in the can_drink_potion check. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10492 c06c8d41-db1a-0410-9941-cceddc491573
* Describe the poison resistance mutation as resistance to poison instead dolorous2009-07-271-1/+1
| | | | | | | of immunity, as e.g. Venom Bolt can poison you in spite of it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10431 c06c8d41-db1a-0410-9941-cceddc491573
* * Change rElec mutation description to "resistant" rather than "immune".j-p-e-g2009-07-271-1/+1
| | | | | | | | | * Make monsters of I_ANIMAL or higher and vulnerable to a cloud type avoid to enter such clouds. For example, for fire clouds, this affects ice beasts and mummies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10426 c06c8d41-db1a-0410-9941-cceddc491573
* Ensure the the Helix card only removes bad mutations, and that Zin's dolorous2009-07-181-3/+3
| | | | | | | | | retribution only removes good mutations, by adding a parameter to delete_mutation() to disallow mismatches of random good and bad mutations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10287 c06c8d41-db1a-0410-9941-cceddc491573
* Make mutations from god-given spell miscasts count as god-given dolorous2009-07-131-0/+21
| | | | | | | mutations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10207 c06c8d41-db1a-0410-9941-cceddc491573
* Resimplify again.dolorous2009-07-121-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10199 c06c8d41-db1a-0410-9941-cceddc491573
* Resimplify ghoul claw display.dolorous2009-07-121-2/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10197 c06c8d41-db1a-0410-9941-cceddc491573
* Really fix the display of ghouls' claws on the "A" screen.dolorous2009-07-121-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10195 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify the display of ghouls' claws on the "A" screen.dolorous2009-07-121-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10193 c06c8d41-db1a-0410-9941-cceddc491573
* * Let Ghouls wear gloves again (they have the equivalent of MUT_CLAWS 1)evktalo2009-07-121-0/+1
| | | | | | * Have Ghouls' mutation screen mention the claws git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10191 c06c8d41-db1a-0410-9941-cceddc491573
* Give Zin a one-shot ability at piety > 160 (cf. TSO's/Lugonu's weapon dolorous2009-07-121-0/+11
| | | | | | | blessings) to remove all mutations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10173 c06c8d41-db1a-0410-9941-cceddc491573
* Add missing blank line.dolorous2009-07-111-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10157 c06c8d41-db1a-0410-9941-cceddc491573
* Move the non-random part of mutation removal into its own function.dolorous2009-07-111-66/+72
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10155 c06c8d41-db1a-0410-9941-cceddc491573
* Allow the mutation resistance mutation to be god-gifted again, since dolorous2009-07-111-4/+0
| | | | | | | god-gifted mutations now ignore it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10153 c06c8d41-db1a-0410-9941-cceddc491573