mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 08:17:14 +00:00
Add coins displayed
as per post 30587882 on vp no idea why gamefreak did it this way; the 0x50C is accessed for get/add but apparently the other is used for the display. just update both
This commit is contained in:
parent
0a06a1999c
commit
fbbe9ecd94
1 changed files with 14 additions and 0 deletions
|
@ -411,6 +411,18 @@ namespace PKHeX
|
|||
BitConverter.GetBytes(value).CopyTo(Data, Misc + 0x11C);
|
||||
}
|
||||
}
|
||||
public uint FestaCoinsDisplayed
|
||||
{
|
||||
get { return BitConverter.ToUInt32(Data, JoinFestaData + 0x508); }
|
||||
set
|
||||
{
|
||||
if (value > 9999999) value = 9999999;
|
||||
BitConverter.GetBytes(value).CopyTo(Data, JoinFestaData + 0x508);
|
||||
|
||||
if (TotalFestaCoins < value)
|
||||
TotalFestaCoins = value;
|
||||
}
|
||||
}
|
||||
public uint FestaCoins
|
||||
{
|
||||
get { return BitConverter.ToUInt32(Data, JoinFestaData + 0x50C); }
|
||||
|
@ -421,6 +433,8 @@ namespace PKHeX
|
|||
|
||||
if (TotalFestaCoins < value)
|
||||
TotalFestaCoins = value;
|
||||
|
||||
FestaCoinsDisplayed = value;
|
||||
}
|
||||
}
|
||||
private uint TotalFestaCoins
|
||||
|
|
Loading…
Reference in a new issue