mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 05:45:52 -05:00
5bit day
0-31, should fit all possible dates.
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user