mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 08:56:40 -05:00
Add Batch Editor datetime cases
Thanks AvantGourd !
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
@@ -262,7 +263,11 @@ private static ModifyResult ProcessPKM(PKM PKM, IEnumerable<StringInstruction> F
|
||||
{
|
||||
try
|
||||
{
|
||||
if (cmd.PropertyName == "EncryptionConstant" && cmd.PropertyValue == CONST_RAND)
|
||||
if (cmd.PropertyName == "MetDate")
|
||||
PKM.MetDate = DateTime.ParseExact(cmd.PropertyValue, "yyyyMMdd", CultureInfo.InvariantCulture, DateTimeStyles.None);
|
||||
else if (cmd.PropertyName == "EggMetDate")
|
||||
PKM.EggMetDate = DateTime.ParseExact(cmd.PropertyValue, "yyyyMMdd", CultureInfo.InvariantCulture, DateTimeStyles.None);
|
||||
else if (cmd.PropertyName == "EncryptionConstant" && cmd.PropertyValue == CONST_RAND)
|
||||
ReflectUtil.SetValue(PKM, cmd.PropertyName, Util.rnd32().ToString());
|
||||
else if(cmd.PropertyName == "PID" && cmd.PropertyValue == CONST_RAND)
|
||||
PKM.setPIDGender(PKM.Gender);
|
||||
|
||||
Reference in New Issue
Block a user