Skip to content

Backpropagation of inheritance #218

@Salier13

Description

@Salier13

In the case of a mon having obtained a pre-evolution later in the game, and by such the pre-evolution coming later in the dex than the mon. The types/ability inheritence system doesn't work as it goes through the dex with a linear process going only from basic to evolution and not the opposite (Example of Magby 240 / Magmar 126).

foreach (var evo in evos.PossibleEvolutions)
{
var ei = Table.GetFormeIndex(evo.Species, evo.Form);
if (AlreadyProcessed(evoindex))
return;
RandomizeSplitChain(evo, devolvedIndex);
ProcessEvolutions(evo.Species, evo.Form, ei);
}

This could be fixed by allowing the randomizer to inherit to an already randomized pokemon as i don't believe that there is a pokemon evolving into multiple pokemons and that come after those in the dex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions