I wonder mutation conlfict number meaning


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

Dungeon Dilettante

Posts: 4

Joined: Wednesday, 19th November 2014, 06:27

Post Monday, 28th September 2015, 14:58

I wonder mutation conlfict number meaning

tatic const int conflict[][3] =
{
#if TAG_MAJOR_VERSION == 34
{ MUT_STRONG_STIFF, MUT_FLEXIBLE_WEAK, 1},
#endif
{ MUT_STRONG, MUT_WEAK, 1},
{ MUT_CLEVER, MUT_DOPEY, 1},
{ MUT_AGILE, MUT_CLUMSY, 1},
{ MUT_SLOW_HEALING, MUT_NO_DEVICE_HEAL, 1},
{ MUT_ROBUST, MUT_FRAIL, 1},
{ MUT_HIGH_MAGIC, MUT_LOW_MAGIC, 1},
{ MUT_WILD_MAGIC, MUT_SUBDUED_MAGIC, 1},
{ MUT_CARNIVOROUS, MUT_HERBIVOROUS, 1},
{ MUT_SLOW_METABOLISM, MUT_FAST_METABOLISM, 1},
{ MUT_REGENERATION, MUT_SLOW_HEALING, 1},
{ MUT_ACUTE_VISION, MUT_BLURRY_VISION, 1},
{ MUT_FAST, MUT_SLOW, 1},
{ MUT_REGENERATION, MUT_SLOW_METABOLISM, 0},
{ MUT_REGENERATION, MUT_SLOW_HEALING, 0},
{ MUT_ACUTE_VISION, MUT_BLURRY_VISION, 0},
{ MUT_FAST, MUT_SLOW, 0},
{ MUT_BREATHE_FLAMES, MUT_SPIT_POISON, -1},
{ MUT_FANGS, MUT_BEAK, -1},
{ MUT_ANTENNAE, MUT_HORNS, -1},
{ MUT_HOOVES, MUT_TALONS, -1},
{ MUT_TRANSLUCENT_SKIN, MUT_CAMOUFLAGE, -1},
{ MUT_MUTATION_RESISTANCE, MUT_EVOLUTION, -1},
{ MUT_ANTIMAGIC_BITE, MUT_ACIDIC_BITE, -1},
{ MUT_HEAT_RESISTANCE, MUT_HEAT_VULNERABILITY, -1},
{ MUT_COLD_RESISTANCE, MUT_COLD_VULNERABILITY, -1},
{ MUT_SHOCK_RESISTANCE, MUT_SHOCK_VULNERABILITY, -1},
{ MUT_MAGIC_RESISTANCE, MUT_MAGICAL_VULNERABILITY, -1},

What is different between 1 , 0 , -1 ?

Would you explain with an example?
(lf i drink potion of mutaitons)

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Monday, 28th September 2015, 16:37

Re: I wonder mutation conlfict number meaning

It seems a bit complicated, but the code that uses these numbers is here.

  Code:
// Tries to give you the mutation by deleting a conflicting
// one, or clears out conflicting mutations if we should give
// you the mutation anyway.
// Return:
//  1 if we should stop processing (success);
//  0 if we should continue processing;
// -1 if we should stop processing (failure).


I think basically the numbers correspond to ways of resolving the conflict in the simplest case: "1" means that one mutation will lower the level of the other (the mutations are on the same scale, and are like the negations of each other), "0" means that one will be removed in order to actually add the other, and "-1" means that the two conflict but the conflict can't normally be resolved. It looks like there's quite a bit more to it than this, especially for the -1 case, depending on the source/type of the mutation (gods, transient mutations, etc), but I haven't tried to parse out the details.
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Monday, 28th September 2015, 21:30

Re: I wonder mutation conlfict number meaning

The return values don't exactly correspond to the entries in conflict[], though they are related.

deleted inaccurate explanations

Edit: There was a bug with the order, now fixed; and I added a comment explaining the meaning of the numbers in more detail. That explanation is better than what I had written in this message, so please read that commit for details on what the conflict levels mean.

For this message the author neil has received thanks:
advil

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 58 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.