Ejemplo n.º 1
0
 /// <summary>
 /// Sets a random memory specific to <see cref="GameVersion.Gen6"/> locality.
 /// </summary>
 /// <param name="pk">Pokémon to modify.</param>
 public static void SetRandomMemory6(this PK6 pk)
 {
     // for lack of better randomization :)
     pk.OT_Memory    = 63;
     pk.OT_Intensity = 6;
     pk.OT_Feeling   = MemoryContext6.GetRandomFeeling6(pk.OT_Memory);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets a Link Trade memory to the <see cref="ht"/>.
 /// </summary>
 public static void SetTradeMemoryHT6(this IMemoryHT ht, bool bank)
 {
     ht.HT_Memory    = 4;                                                   // Link trade to [VAR: General Location]
     ht.HT_TextVar   = bank ? (byte)0 : (byte)9;                            // Somewhere (Bank) : Pokécenter (Trade)
     ht.HT_Intensity = 1;
     ht.HT_Feeling   = MemoryContext6.GetRandomFeeling6(4, bank ? 10 : 20); // 0-9 Bank, 0-19 Trade
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets the Memory details to a Hatched Egg's memories.
 /// </summary>
 /// <param name="pk">Pokémon to modify.</param>
 public static void SetHatchMemory6(this PKM pk)
 {
     if (pk is IMemoryOT o)
     {
         o.OT_Memory    = 2;
         o.OT_Feeling   = MemoryContext6.GetRandomFeeling6(2);
         o.OT_Intensity = 1;
         o.OT_TextVar   = pk.XY ? (ushort)43 : (ushort)27; // riverside road : battling spot
     }
     if (pk is IAffection a)
     {
         a.OT_Affection = 0;
     }
 }