Update friendship/memory logic

This commit is contained in:
Kurt 2015-11-26 19:07:20 -08:00
parent 28390758e6
commit d2103a96b3

View file

@ -262,11 +262,23 @@ namespace PKHeX
RIB4_4 = RIB1_0, // World Champ Ribbon RIB4_4 = RIB1_0, // World Champ Ribbon
// Memories // Memories
CurrentFriendship = PKX.getBaseFriendship(Species), OT_Friendship = PKX.getBaseFriendship(Species),
Geo1_Country = SAV.Country,
Geo1_Region = SAV.SubRegion,
}; };
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.IsNicknamed = IsNicknamed;
pk.Nickname = IsNicknamed ? Nickname : PKX.getSpeciesName(Species, pk.Language); pk.Nickname = IsNicknamed ? Nickname : PKX.getSpeciesName(Species, pk.Language);