0-31, should fit all possible dates.
This commit is contained in:
Kaphotics
2016-01-20 20:40:52 -08:00
parent 025b5a3c52
commit a8a89c3bb2

View File

@@ -425,7 +425,7 @@ public int Vivillon
public uint AdventureStart { get { return BitConverter.ToUInt32(Data, PlayTime + 0x4); } set { BitConverter.GetBytes(value).CopyTo(Data, PlayTime + 0x4); } }
public int AdventureStartYear { get { return (int)(AdventureStart & 0xFFF); } set { AdventureStart = AdventureStart & 0xFFFFF000 | (uint)value; } }
public int AdventureStartMonth { get { return (int)(AdventureStart >> 12 & 0xF); } set { AdventureStart = AdventureStart & 0xFFFF0FFF | ((uint)value & 0xF) << 12; } }
public int AdventureStartDay { get { return (int)(AdventureStart >> 16 & 0xF); } set { AdventureStart = AdventureStart & 0xFFF0FFFF | ((uint)value & 0xF) << 16; } }
public int AdventureStartDay { get { return (int)(AdventureStart >> 16 & 0xF); } set { AdventureStart = AdventureStart & 0xFFE0FFFF | ((uint)value & 0x1F) << 16; } }
public int PlayedHours{
get { return BitConverter.ToUInt16(Data, PlayTime); }
set { BitConverter.GetBytes((ushort)value).CopyTo(Data, PlayTime); }