Skip to content

Commit

Permalink
Update friendship/memory logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed Nov 27, 2015
1 parent 2839075 commit d2103a9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions Misc/WC6.cs
Expand Up @@ -262,11 +262,23 @@ public PK6 convertToPK6(SAV6 SAV)
RIB4_4 = RIB1_0, // World Champ Ribbon

// Memories
CurrentFriendship = PKX.getBaseFriendship(Species),
Geo1_Country = SAV.Country,
Geo1_Region = SAV.SubRegion,
OT_Friendship = PKX.getBaseFriendship(Species),
};
pk.TradeMemory(Bank: false);
if (pk.CurrentHandler == 0) // OT
{
pk.OT_Memory = 3;
pk.OT_TextVar = 9;
pk.OT_Intensity = 1;
pk.OT_Feeling = Util.rand.Next(0, 9);
}
else
{
pk.HT_Memory = 3;
pk.HT_TextVar = 9;
pk.HT_Intensity = 1;
pk.HT_Feeling = Util.rand.Next(0, 9);
pk.HT_Friendship = pk.OT_Friendship;
}
pk.IsNicknamed = IsNicknamed;
pk.Nickname = IsNicknamed ? Nickname : PKX.getSpeciesName(Species, pk.Language);

Expand Down

0 comments on commit d2103a9

Please sign in to comment.