mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-02 23:34:13 -05: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
|
|
@ -411,6 +411,18 @@ public uint BP
|
|||
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 @@ public uint FestaCoins
|
|||
|
||||
if (TotalFestaCoins < value)
|
||||
TotalFestaCoins = value;
|
||||
|
||||
FestaCoinsDisplayed = value;
|
||||
}
|
||||
}
|
||||
private uint TotalFestaCoins
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user